Skip to content

Commit

Permalink
Merge pull request #3711 from uselagoon/cronjob-doc
Browse files Browse the repository at this point in the history
docs: add note about cronjobs being interrupted
  • Loading branch information
tobybellwood authored May 27, 2024
2 parents 4d0f14e + f2be668 commit 4531336
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/concepts-basics/lagoon-yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ cronjobs:
you need a complex or multiline cron command, you must put it in a
script that can be used as the command. Consider whether a [pre- or post-rollout task](#tasks) would work.

!!! danger
Cronjobs run in Kubernetes pods, which means they can be interrupted due to pod rescheduling.
Therefore when creating a cronjob you must ensure that the command can be safely interrupted and re-run at the next cron interval.

* `service`: Which service of your project to run the command in. For most
projects, this should be the `cli` service.

Expand Down

0 comments on commit 4531336

Please sign in to comment.