Manage workflow schedules
Schedule a workflow run¶
Directly on run:¶
You can directly add a schedule to a workflow run. For example, with Snowflake Miner:
Coming soon
Add schedule directly on run | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
- Begin by constructing the Snowflake miner workflow.
-
To create a new schedule for the workflow, specify:
cron schedule expression
, for example:45 5 * * *
(scheduled for tomorrow at04:05:00
).- time zone for the cron schedule, such as
Europe/Paris
.
-
Finally, use the
client.workflow.run()
method to add this new schedule. It will both add the schedule and execute the workflow in Atlan.
Coming soon
Existing workflow:¶
You can also add a schedule to an existing workflow run:
Coming soon
Schedule an existing workflow run | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
- You can retrieve workflows based on their type (prefix).
Note:
Only workflows that have been run will be found. -
To create a new schedule for an existing workflow, provide:
cron schedule expression
, e.g:45 5 * * *
(tomorrow at04:05:00
).- time zone for the cron schedule, e.g:
Europe/Paris
.
-
Finally, to apply this new schedule to the existing workflow, use
client.workflow.add_schedule()
method.
Coming soon
Retrieve a scheduled workflow run¶
Retrieve by name:¶
To retrieve an existing scheduled workflow run by its name:
Coming soon
Retrieve scheduled workflow run by its name | |
---|---|
1 2 3 4 5 6 7 |
|
-
To retrieve an existing scheduled workflow runs, specify:
- name of the workflow as displayed in the
UI (e.g:
atlan-snowflake-miner-1714638976
).
- name of the workflow as displayed in the
UI (e.g:
Retrieve all scheduled runs:¶
To retrieve all existing scheduled workflow runs:
Coming soon
Retrieve all scheduled workflow runs | |
---|---|
1 2 3 4 5 |
|
- To retrieve all scheduled runs for workflows,
use
client.workflow.get_all_scheduled_runs()
method.
Coming soon
Remove a schedule from workflow run¶
To remove a schedule from an existing workflow run:
Coming soon
Remove a schedule from an existing workflow run | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 |
|
-
You can retrieve workflows based on their type (prefix).
Note:
Only workflows that have been run will be found. -
Finally, to remove a schedule from this workflow, use the
client.workflow.remove_schedule()
method.
Coming soon