@@ -8,20 +8,23 @@ npm_version: 2
88
99# for cron job
1010# this is the list of queues we want to enqueue a job into
11- cron_queues : khronos:containers:orphan:prune khronos:context-versions:prune-expired khronos:images:prune khronos:weave:prune
11+ main_cron_queues : " \
12+ khronos:containers:orphan:prune \
13+ khronos:context-versions:prune-expired \
14+ khronos:images:prune \
15+ khronos:weave:prune"
16+
17+ canary_cron_queues : " \
18+ khronos:canary:build \
19+ khronos:canary:github-branch \
20+ khronos:canary:log \
21+ khronos:canary:network \
22+ khronos:metrics:container-status"
23+
1224# a nice version of the rabbitmq host
1325cron_rabbit_host_address : " {{ rabbit_host_address }}:{{ rabbit_port }}"
1426# a quick version of authentication for rabbit for cron
1527cron_rabbit_auth : --username {{ rabbit_username }} --password {{ rabbit_password }}
16- # this is the command we want to run in the container.
17- cron_command : " bash -c \" for QUEUE in {{ cron_queues }}; do /khronos/bin/cli.js --queue \\ $QUEUE --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}; done\" "
18- # This is the build canary cron command
19- cron_build_canary_command : " /khronos/bin/cli.js --queue khronos:canary:build --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}"
20- # This is the log canary cron command
21- cron_log_canary_command : " /khronos/bin/cli.js --queue khronos:canary:log --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}"
22- # This is the github-branch canary cron command
23- cron_github_branch_canary_command : " /khronos/bin/cli.js --queue khronos:canary:github-branch --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}"
24- cron_container_metrics_command : " /khronos/bin/cli.js --queue khronos:metrics:container-status --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}"
2528
2629# for container settings
2730container_envs : >
@@ -61,5 +64,3 @@ container_run_opts: >
6164 -v /opt/ssl/mongo-client:/opt/ssl/mongo-client:ro
6265 --memory=1500m
6366 {{container_envs}}
64-
65- npm_start_command : run start-json-output
0 commit comments