Scaleway's Container Registry allows for a seamless integration with Serverless Containers and Jobs at a competitive price. Serverless products support external public registries (such as Docker Hub), but we do not recommend using them due to uncontrolled rate limiting, which can lead to failures when starting resources, unexpected usage conditions, and pricing changes.
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
- Created a Container Registry namespace and pushed a container image to it
How to create a job definition
-
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 Scaleway Container Registry.
- Select the appropriate Registry namespace from the drop-down list, then select the desired container and tag.
- 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!"
-
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.
- Click the «See more Icon» icon next to the last execution in the Job runs section, then click Logs to access your job’s logs.
Make sure that you have retrieved your Grafana credentials before accessing your job’s logs.
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.