Skip to content

Commit

Permalink
chore(docs): add note about cronjobs being interrupted
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Apr 18, 2024
1 parent 26f57ef commit f2be668
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 f2be668

Please sign in to comment.