-
Notifications
You must be signed in to change notification settings - Fork 0
split cron into only 2 tasks #421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,15 +2,12 @@ | |
| become: yes | ||
| tags: cron | ||
| template: | ||
| src: "{{ item }}" | ||
| src: "khronos-cron.sh" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. don't need quotes here |
||
| mode: 0744 | ||
| dest: /opt/runnable/{{ item }} | ||
| dest: /opt/runnable/{{ item.script }} | ||
| with_items: | ||
| - khronos-cron.sh | ||
| - build-canary.sh | ||
| - log-canary.sh | ||
| - github-branch-canary.sh | ||
| - container-metrics.sh | ||
| - { cron_queues: "{{ main_cron_queues }}", script: "main-cron.sh"} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. don't need quotes around the script name |
||
| - { cron_queues: "{{ canary_cron_queues }}", script: "canary-cron.sh"} | ||
|
|
||
| - name: Put Khronos script into crontab | ||
| become: yes | ||
|
|
@@ -25,22 +22,10 @@ | |
| - name: Khronos CLI - Daily Cleanup | ||
| minute: 13 | ||
| hour: 1,7,13,19 | ||
| script: khronos-cron.sh | ||
| script: main-cron.sh | ||
| - name: Khronos CLI - Canary | ||
| minute: "*/5" | ||
| script: build-canary.sh | ||
| state: "{% if node_env == 'production-delta' %}present{% else %}absent{% endif %}" | ||
| - name: Khronos CLI - Github Branch Canary | ||
| minute: "*/5" | ||
| script: github-branch-canary.sh | ||
| state: "{% if node_env == 'production-delta' %}present{% else %}absent{% endif %}" | ||
| - name: Khronos CLI - Log Canary | ||
| minute: "*/5" | ||
| script: log-canary.sh | ||
| state: "{% if node_env == 'production-delta' %}present{% else %}absent{% endif %}" | ||
| - name: Container Metrics | ||
| minute: "*/5" | ||
| script: container-metrics.sh | ||
| script: canary-cron.sh | ||
| state: "{% if node_env == 'production-delta' %}present{% else %}absent{% endif %}" | ||
|
|
||
| - name: make directory for mongo certificates | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah! this is easier to do like this:
turns into "queue\nqueue\n"