Skip to content

Commit

Permalink
credere: Use different container name (and log file) for each command
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 4, 2024
1 parent 7fd783c commit 93b4b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/credere/init.sls
Expand Up @@ -13,7 +13,7 @@ include:
{{ set_cron_env(pillar.docker.user, 'MAILTO', 'sysadmin@open-contracting.org') }}
{% for job in entry.cron|default([]) %}
cd {{ directory }}; /usr/bin/docker compose --progress=quiet run --rm --name credere-backend-cron cron python -m app.commands {{ job.command }}:
cd {{ directory }}; /usr/bin/docker compose --progress=quiet run --rm --name credere-backend-{{ job.command }} cron python -m app.commands {{ job.command }}:
cron.present:
- identifier: CREDERE_{{ job.identifier }}
- user: {{ pillar.docker.user }}
Expand Down

0 comments on commit 93b4b41

Please sign in to comment.