NavigationContentFooter
Jump toSuggest an edit

Jobs - Quickstart

Reviewed on 07 November 2023Published on 07 November 2023

Scaleway’s Serverless Jobs allow you to run recurring tasks in the cloud. A Job is composed of 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.

  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 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

    Refer to How to deploy a Job from an external container registry for more information on the different parameters.

  4. Click Create a job definition to finish.

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.

Note

Refer to How to monitor a job to see the logs of the job you just executed.

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.
Docs APIScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCarreer
© 2023-2024 – Scaleway