Le mirroring des dépôts vers Github est maintenant natif dans Gitlab (et donc Framagit). Merci de passer à la fonction native pour que nous puissions couper notre solution maison. Détails sur https://docs.gitlab.com/ee/workflow/repository_mirroring.html#pushing-to-a-remote-repository (pensez à supprimer le webhook de notre solution maison).

Commit 5e985d38 by Sylvain Thenault Committed by Philippe Pepiot

Add a supervisorctl entry for the scheduler instance

required with cubicweb 3.25
parent 7c2ef54f
......@@ -24,3 +24,12 @@ redirect_stderr=true
stdout_logfile=/home/{{ saemref.instance.user }}/{{ saemref.instance.name }}-oai.log
autorestart=true
startsecs=10
[program:saemref-scheduler]
command=/home/{{ saemref.instance.user }}/venv/bin/cubicweb-ctl scheduler {{ saemref.instance.name }}
environment=CW_MODE=user,HOME=/home/{{ saemref.instance.user }},CW_INSTANCE={{ saemref.instance.name }}
user={{ saemref.instance.user }}
redirect_stderr=true
stdout_logfile=/home/{{ saemref.instance.user }}/{{ saemref.instance.name }}-scheduler.log
autorestart=true
startsecs=10
......@@ -126,7 +126,11 @@ def test_saemref_running(host, supervisor_service_name):
assert supervisord.group == "root"
childs = host.process.filter(ppid=supervisord.pid)
assert [(c.comm, c.user, c.group) for c in childs] == 2 * [("gunicorn", "saemref", "saemref")]
# one cubicweb-ctl process to run looping task, one gunicorn process for the
# web ui, and another for the oai access point
assert sorted([(c.comm, c.user, c.group) for c in childs]) == [("cubicweb-ctl", "saemref", "saemref"),
("gunicorn", "saemref", "saemref"),
("gunicorn", "saemref", "saemref")]
assert host.socket("tcp://0.0.0.0:8080").is_listening
assert host.socket("tcp://0.0.0.0:8081").is_listening
......
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