Skip to content
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

DS-587: Added concept module to improve content on the supported cron format #214

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions assemblies/working-with-data-science-pipelines.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ include::modules/viewing-existing-pipelines.adoc[leveloffset=+2]

include::modules/overview-of-pipeline-runs.adoc[leveloffset=+2]

include::modules/scheduling-a-pipeline-run-using-a-cron-job.adoc[leveloffset=+2]

//include::modules/overview-of-pipeline-experiments.adoc[leveloffset=+2]

include::modules/scheduling-a-pipeline-run.adoc[leveloffset=+2]
Expand Down
34 changes: 34 additions & 0 deletions modules/scheduling-a-pipeline-run-using-a-cron-job.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
:_module-type: CONCEPT

[id='scheduling-a-pipeline-run-using-a-cron-job_{context}']
= Scheduling a pipeline run using a cron job

[role='_abstract']
You can use a cron job to schedule a pipeline run to execute at a specific time. Cron jobs are useful for creating periodic and recurring tasks, and can also schedule individual tasks for a specific time, such as if you want to schedule a run for a low activity period. To successfully execute runs in {productname-short}, you must use the supported format. See link:https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format[Cron Expression Format] for more information.

The following examples show the correct format:

[cols="1,1"]
|===
|Run occurrence |Cron format

|Every five minutes
|@every 5m

|Every 10 minutes
|0 */10 * * * *

|Daily at 16:16 UTC
|0 16 16 * * *

|Daily every quarter of the hour
|0 0,15,30,45 * * * *

|On Monday and Tuesday at 15:40 UTC
|0 40 15 * * MON,TUE
|===


[role="_additional-resources"]
.Additional resources
* link:https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format[Cron Expression Format]