Projet

Général

Profil

0001-hobo-agent-update-celery-launch-command-47554.patch

Nicolas Roche, 12 octobre 2020 11:25

Télécharger (1,94 ko)

Voir les différences:

Subject: [PATCH] hobo-agent: update celery launch command (#47554)

 roles/hobo-agent/templates/hobo-agent-supervisor.j2 | 2 +-
 roles/hobo-agent/templates/hobo-agent.j2            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
roles/hobo-agent/templates/hobo-agent-supervisor.j2
1 1
[program:{{agent_dash_name}}]
2 2
; Concurrency set to 1 because there is no lock around calls to hobo_notify
3
command={{venv_py3_bin}}/celery worker --hostname={{agent_dot_name}}.%%h --app=hobo.agent.worker --loglevel=INFO --concurrency=1
3
command={{venv_py3_bin}}/celery -A hobo.agent.worker worker --hostname={{agent_dot_name}}.%%h --loglevel=INFO --concurrency=1
4 4
environment=HOBO_AGENT_SETTINGS_FILE="{{agent_settings}}",THEMES_DIRECTORY="{{themes_dir}}"
5 5
process_name={{agent_dash_name}}
6 6
user={{user}}
7 7
numprocs=1
8 8
stdout_logfile=/var/log/{{agent_dash_name}}/stdout.log
9 9
stderr_logfile=/var/log/{{agent_dash_name}}/stderr.log
10 10

  
11 11
autostart=true
roles/hobo-agent/templates/hobo-agent.j2
1 1
#!/bin/bash
2
HOBO_AGENT_SETTINGS_FILE="{{agent_settings}}" THEMES_DIRECTORY="{{themes_dir}}" {{venv_py3_bin}}/celery worker --hostname={{agent_dot_name}}.%%h --app=hobo.agent.worker --loglevel=INFO --concurrency=1
2
HOBO_AGENT_SETTINGS_FILE="{{agent_settings}}" THEMES_DIRECTORY="{{themes_dir}}" {{venv_py3_bin}}/celery -A hobo.agent.worker worker --hostname={{agent_dot_name}}.%%h --loglevel=INFO --concurrency=1
3
-