How to manage the scheduling of a Serverless Job using triggers
A trigger allows you to invoke a Serverless Job on a recurring schedule, based on a cron expression, in the * * * * * format, using the desired time zone.
You can add multiple triggers on the same Job Definition.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- Created a Serverless Job
How to create a job trigger
-
Click Jobs in the Serverless section of the side menu. The jobs page displays.
-
Click the name of the job you want to manage, then click the Triggers tab.
-
Click + Create trigger. The trigger creation form displays.
-
Enter a name for the trigger, or use the automatically generated one.
-
Set a cron schedule in the
* * * * *format. -
Select the time zone.
-
Optionally, enter a startup command and arguments specifically for this trigger to override the default command and arguments of your job at runtime.
-
-
Click Create trigger to save your trigger.
How to edit a job trigger
-
Click Jobs in the Serverless section of the side menu. The jobs page displays.
-
Click the name of the job you want to manage, then click the Triggers tab.
-
Click more icon next to the trigger to edit, and select Edit in the menu that displays.
-
Edit the job trigger.
-
Click Apply changes to confirm.
How to delete a job trigger
-
Click Jobs in the Serverless section of the side menu. The jobs page displays.
-
Click the name of the job you want to manage, then click the Triggers tab.
-
Click more icon next to the trigger to delete, and select Delete in the menu that displays.
-
Click Delete trigger to confirm the deletion.