CreateJobDefinitionRequest: {
    command: string;
    cpuLimit: number;
    cronSchedule?: Jobs.v1alpha1.CreateJobDefinitionRequestCronScheduleConfig;
    description: string;
    environmentVariables?: Record<string, string>;
    imageUri: string;
    jobTimeout?: string;
    localStorageCapacity?: number;
    memoryLimit: number;
    name?: string;
    projectId?: string;
    region?: Region;
}

Type declaration

  • command: string

    Startup command. If empty or not defined, the image's default command is used.

  • cpuLimit: number

    CPU limit of the job.

  • OptionalcronSchedule?: Jobs.v1alpha1.CreateJobDefinitionRequestCronScheduleConfig

    Configure a cron for the job.

  • description: string

    Description of the job.

  • OptionalenvironmentVariables?: Record<string, string>

    Environment variables of the job.

  • imageUri: string

    Image to use for the job.

  • OptionaljobTimeout?: string

    Timeout of the job in seconds.

  • OptionallocalStorageCapacity?: number

    Local storage capacity of the job (in MiB).

  • memoryLimit: number

    Memory limit of the job (in MiB).

  • Optionalname?: string

    Name of the job definition.

  • OptionalprojectId?: string

    UUID of the Scaleway Project containing the job.

  • Optionalregion?: Region

    Region to target. If none is passed will use default region from the config.