Commit 04b4a3c5 by muhammad-ammar

misc changes

parent fe9639ae
......@@ -24,6 +24,7 @@ video_pipeline_home: "{{ COMMON_APP_DIR }}/{{ video_pipeline_service_name }}"
# TODO! Find some better way to do the below
video_pipeline_service_home: "{{ COMMON_APP_DIR }}/{{ video_pipeline_service_name }}"
video_pipeline_code_dir: "{{ video_pipeline_service_home }}/{{ video_pipeline_service_name }}"
video_pipeline_venv_dir: "{{ video_pipeline_service_home }}/venvs/{{ video_pipeline_service_name }}"
video_pipeline_ingest_worker: "{{ video_pipeline_service_name }}_ingest"
video_pipeline_deliver_worker: "{{ video_pipeline_service_name }}_deliver"
......
......@@ -3,4 +3,4 @@
# {{ ansible_managed }}
source {{ video_pipeline_service_home }}/{{ video_pipeline_service_name }}_env
python {{ video_pipeline_service_home }}/{{ video_pipeline_service_name }}/{{ worker_script }}
{{ video_pipeline_venv_dir }}/bin/python {{ video_pipeline_service_home }}/{{ video_pipeline_service_name }}/{{ worker_script }}
......@@ -4,6 +4,7 @@
[program:{{ worker_script }}]
command={{ video_pipeline_service_home }}/{{ worker_script }}.sh
environment=PYTHONPATH={{ video_pipeline_code_dir }}
user={{ common_web_user }}
directory={{ video_pipeline_code_dir }}
stdout_logfile={{ supervisor_log_dir }}/%(program_name)s-stdout.log
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment