Skip to main content

Scaleway Serverless Jobs

@sntxrr/scaleway-serverless-jobsv2026.07.19.1· 6d agoMODELS
01README

Manage a Scaleway Serverless Jobs job definition — sync state, create, update, delete, and run it (starting job runs), plus discover job definitions in a region, via the Serverless Jobs API with X-Auth-Token auth.

02Models1
@sntxrr/scaleway-serverless-jobsv2026.07.19.1scaleway_serverless_jobs.ts

Global Arguments

ArgumentTypeDescription
secretKeystringScaleway API secret key. Wire with ${{ vault.get(scaleway, SCW_SECRET_KEY) }}.
projectIdstringScaleway Project ID that owns the job definition.
regionstringRegion, e.g. fr-par, nl-ams, pl-waw.
jobDefinitionId?stringID of the Serverless Jobs job definition this model manages. Optional —
endpoint?stringOverride the API host. Defaults to https://api.scaleway.com.
fn sync()
Fetch the job definition's current state (GetJobDefinition).
fn create(name: string, cpuLimit: number, memoryLimit: number, localStorageCapacity: number, imageUri: string, startupCommand?: array, args?: array, environmentVariables?: record, description?: string, jobTimeout?: string)
Provision a new job definition (CreateJobDefinition) and snapshot it.
ArgumentTypeDescription
namestringName of the new job definition.
cpuLimitnumberCPU limit of the job (in mvCPU).
memoryLimitnumberMemory limit of the job (in MiB).
localStorageCapacitynumberLocal storage capacity of the job (in MiB).
imageUristringContainer image to run for the job, e.g. rg.fr-par.scw.cloud/ns/app:latest.
startupCommand?arrayStartup command (entrypoint) that overrides the image default.
args?arrayArguments passed to the startup command at runtime.
environmentVariables?recordEnvironment variables for the job. Sent to provision; never stored in a snapshot.
description?stringHuman-readable description of the job definition.
jobTimeout?stringTimeout of the job in seconds, e.g. '3600s'. Optional.
fn update(name?: string, cpuLimit?: number, memoryLimit?: number, localStorageCapacity?: number, imageUri?: string, startupCommand?: array, args?: array, environmentVariables?: record, description?: string, jobTimeout?: string)
Mutate a job definition's mutable fields (UpdateJobDefinition).
ArgumentTypeDescription
name?stringNew name for the job definition.
cpuLimit?numberNew CPU limit (in mvCPU).
memoryLimit?numberNew memory limit (in MiB).
localStorageCapacity?numberNew local storage capacity (in MiB).
imageUri?stringNew container image to run.
startupCommand?arrayNew startup command (entrypoint).
args?arrayNew arguments passed to the startup command.
environmentVariables?recordReplacement environment variables. Sent to update; never stored in a snapshot.
description?stringNew description.
jobTimeout?stringNew timeout of the job in seconds, e.g. '3600s'.
fn delete()
Deprovision the job definition (DeleteJobDefinition).
fn action(startupCommand?: array, args?: array, environmentVariables?: record, replicas?: number)
Run the job definition, starting one or more job runs (StartJobDefinition).
ArgumentTypeDescription
startupCommand?arrayContextual startup command for this specific job run.
args?arrayContextual arguments for this specific job run.
environmentVariables?recordContextual environment variables for this run. Sent to run; never stored in a snapshot.
replicas?numberNumber of parallel job runs to start. Optional; API default applies.
fn list()
Discover all job definitions in the region (factory).

Resources

job-definition(infinite)— Snapshot of the Serverless Jobs job definition's state
job-run(infinite)— Snapshot of a job run started from the job definition
03Previous Versions1
2026.07.18.1
04Stats
A
100 / 100
Downloads
0
Archive size
14.3 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms
06Labels