@@ -55,6 +55,7 @@ async def create_job_definition(
5555 description : str ,
5656 region : Optional [Region ] = None ,
5757 name : Optional [str ] = None ,
58+ local_storage_capacity : Optional [int ] = None ,
5859 project_id : Optional [str ] = None ,
5960 environment_variables : Optional [Dict [str , str ]] = None ,
6061 job_timeout : Optional [str ] = None ,
@@ -65,7 +66,8 @@ async def create_job_definition(
6566 :param region: Region to target. If none is passed will use default region from the config.
6667 :param name: Name of the job definition.
6768 :param cpu_limit: CPU limit of the job.
68- :param memory_limit: Memory limit of the job.
69+ :param memory_limit: Memory limit of the job (in MiB).
70+ :param local_storage_capacity: Local storage capacity of the job (in MiB).
6971 :param image_uri: Image to use for the job.
7072 :param command: Startup command.
7173 :param project_id: UUID of the Scaleway Project containing the job.
@@ -103,6 +105,7 @@ async def create_job_definition(
103105 description = description ,
104106 region = region ,
105107 name = name or random_name (prefix = "job" ),
108+ local_storage_capacity = local_storage_capacity ,
106109 project_id = project_id ,
107110 environment_variables = environment_variables ,
108111 job_timeout = job_timeout ,
@@ -235,6 +238,7 @@ async def update_job_definition(
235238 name : Optional [str ] = None ,
236239 cpu_limit : Optional [int ] = None ,
237240 memory_limit : Optional [int ] = None ,
241+ local_storage_capacity : Optional [int ] = None ,
238242 image_uri : Optional [str ] = None ,
239243 command : Optional [str ] = None ,
240244 environment_variables : Optional [Dict [str , str ]] = None ,
@@ -248,7 +252,8 @@ async def update_job_definition(
248252 :param job_definition_id: UUID of the job definition to update.
249253 :param name: Name of the job definition.
250254 :param cpu_limit: CPU limit of the job.
251- :param memory_limit: Memory limit of the job.
255+ :param memory_limit: Memory limit of the job (in MiB).
256+ :param local_storage_capacity: Local storage capacity of the job (in MiB).
252257 :param image_uri: Image to use for the job.
253258 :param command: Startup command.
254259 :param environment_variables: Environment variables of the job.
@@ -280,6 +285,7 @@ async def update_job_definition(
280285 name = name ,
281286 cpu_limit = cpu_limit ,
282287 memory_limit = memory_limit ,
288+ local_storage_capacity = local_storage_capacity ,
283289 image_uri = image_uri ,
284290 command = command ,
285291 environment_variables = environment_variables ,
0 commit comments