Skip to content

Commit

Permalink
fix(docker): configure cron tasks to persist running even in face of …
Browse files Browse the repository at this point in the history
…errors
  • Loading branch information
tuxpiper committed Aug 31, 2020
1 parent 947d723 commit e86664c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docker/run.tasks.conf
Expand Up @@ -25,37 +25,42 @@ platform.datasource.outgoing.service: {
directory: "/var/www",
command: "./artisan datasource:outgoing",
interval: "* * * * * */$(TASK_RUN_PERIOD_SECS:-300)",
enabled: "$(ENABLE_PLATFORM_TASKS:-false)"
enabled: "$(ENABLE_PLATFORM_TASKS:-false)",
ignore_failures: true
}

platform.datasource.incoming.service: {
type: cron,
directory: "/var/www",
command: "./artisan datasource:incoming",
interval: "* * * * * */$(TASK_RUN_PERIOD_SECS:-300)",
enabled: "$(ENABLE_PLATFORM_TASKS:-false)"
enabled: "$(ENABLE_PLATFORM_TASKS:-false)",
ignore_failures: true
}

platform.savedsearch.service: {
type: cron,
directory: "/var/www",
command: "./artisan savedsearch:sync",
interval: "* * * * * */$(TASK_RUN_PERIOD_SECS:-300)",
enabled: "$(ENABLE_PLATFORM_TASKS:-false)"
enabled: "$(ENABLE_PLATFORM_TASKS:-false)",
ignore_failures: true
}

platform.notification.queue.service: {
type: cron,
directory: "/var/www",
command: "./artisan notification:queue",
interval: "* * * * * */$(TASK_RUN_PERIOD_SECS:-300)",
enabled: "$(ENABLE_PLATFORM_TASKS:-false)"
enabled: "$(ENABLE_PLATFORM_TASKS:-false)",
ignore_failures: true
}

platform.webhook.send.service: {
type: cron,
directory: "/var/www",
command: "./artisan webhook:send",
interval: "* * * * * */$(TASK_RUN_PERIOD_SECS:-300)",
enabled: "$(ENABLE_PLATFORM_TASKS:-false)"
enabled: "$(ENABLE_PLATFORM_TASKS:-false)",
ignore_failures: true
}

0 comments on commit e86664c

Please sign in to comment.