Refer to How to deploy a Job from an external container registry for more information on the different parameters.
Jobs - Quickstart
Scaleway Serverless Jobs allows you to run recurring tasks in the cloud. A Job is based on a job definition, which is used as a template to create job runs.
Jobs are designed for autonomous and recurring tasks, and therefore do not offer automatic scaling or a web interface.
Refer to the differences between Jobs, Containers, and Functions for more information on Scaleway’s different Serverless products.
This page explains how to create a job definition with the latest Alpine Linux image, how to execute it, and delete it.
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
How to create a job definition
To keep this quickstart simple, we will create a job from a public external registry. To create a job from the Scaleway Container Registry, refer to this documentation.
-
Click Jobs in the Serverless section of the side menu. The Jobs page displays.
-
Click + Create job.
-
Complete the following steps in the wizard:
- Select the External container registry.
- Enter
docker.io/library/alpine:latest
in the image URL field. - Enter a name or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes.
- Enter a description (optional).
- Select the region in which your job will be created.
- Choose the smallest resources available to allocate to your job.
- Set the following startup command in the Advanced options:
echo "Hello world!"
Note -
Click Create a job definition to finish.
How to run a job
-
Click Jobs in the Serverless section of the side menu. The jobs page displays.
-
Click the name of the Job you want to run.
-
From the Overview tab, click Run job.
The execution appears in the Job runs section of the Overview tab.
Refer to How to monitor a job to see the logs of the job you just executed.
How to delete a job
- Click Jobs in the Serverless section of the side menu. The Jobs page displays.
- Click the «See more Icon» icon next to the job you want to delete, and select Delete job from the drop-down menu.
- Type DELETE in the pop-up, then click Delete job.