NavigationContentFooter
Jump toSuggest an edit

Jobs - Quickstart

Reviewed on 27 November 2024Published on 07 November 2023

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

  1. Click Jobs in the Serverless section of the side menu. The Jobs page displays.

  2. Click + Create job.

  3. 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!"
  4. Click Create a job definition to finish.

Important

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.

How to run a job

  1. Click Jobs in the Serverless section of the side menu. The jobs page displays.

  2. Click the name of the Job you want to run.

  3. From the Overview tab, click Run job.

The execution appears in the Job runs section of the Overview tab.

  1. 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.
Note

Make sure that you have retrieved your Grafana credentials before accessing your job’s logs.

How to delete a job

  1. Click Jobs in the Serverless section of the side menu. The Jobs page displays.
  2. Click the «See more Icon» icon next to the job you want to delete, and select Delete job from the drop-down menu.
  3. Type DELETE in the pop-up, then click Delete job.
Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2024 – Scaleway