-
Notifications
You must be signed in to change notification settings - Fork 250
/
Copy pathazure.batch.models.BatchJobCreateContent.yml
438 lines (355 loc) · 15.6 KB
/
azure.batch.models.BatchJobCreateContent.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
### YamlMime:PythonClass
uid: azure.batch.models.BatchJobCreateContent
name: BatchJobCreateContent
fullName: azure.batch.models.BatchJobCreateContent
module: azure.batch.models
summary: 'Parameters for creating an Azure Batch Job.
All required parameters must be populated in order to send to server.'
constructor:
syntax: 'BatchJobCreateContent(*args: Any, **kwargs: Any)'
variables:
- description: 'A string that uniquely identifies the Job within the Account. The
ID can contain any
combination of alphanumeric characters including hyphens and underscores, and
cannot contain
more than 64 characters. The ID is case-preserving and case-insensitive (that
is, you may not
have two IDs within an Account that differ only by case). Required.'
name: id
types:
- <xref:str>
- description: 'The display name for the Job. The display name need not be unique
and can
contain any Unicode characters up to a maximum length of 1024.'
name: display_name
types:
- <xref:str>
- description: 'Whether Tasks in the Job can define dependencies on each other.
The default is false.'
name: uses_task_dependencies
types:
- <xref:bool>
- description: 'The priority of the Job. Priority values can range from -1000 to 1000,
with
-1000 being the lowest priority and 1000 being the highest priority. The default
value is 0.'
name: priority
types:
- <xref:int>
- description: 'Whether Tasks in this job can be preempted by other high priority
jobs. If the value is set to True, other high priority jobs submitted to the system
will take
precedence and will be able requeue tasks from this job. You can update a job''s
allowTaskPreemption after it has been created using the update job API.'
name: allow_task_preemption
types:
- <xref:bool>
- description: 'The maximum number of tasks that can be executed in parallel for the
job. The value of maxParallelTasks must be -1 or greater than 0 if specified.
If not specified,
the default value is -1, which means there''s no limit to the number of tasks
that can be run at
once. You can update a job''s maxParallelTasks after it has been created using
the update job
API.'
name: max_parallel_tasks
types:
- <xref:int>
- description: The execution constraints for the Job.
name: constraints
types:
- <xref:azure.batch.models.BatchJobConstraints>
- description: 'Details of a Job Manager Task to be launched when the Job is started.
If the Job does not specify a Job Manager Task, the user must explicitly add Tasks
to the Job.
If the Job does specify a Job Manager Task, the Batch service creates the Job
Manager Task when
the Job is created, and will try to schedule the Job Manager Task before scheduling
other Tasks
in the Job. The Job Manager Task''s typical purpose is to control and/or monitor
Job execution,
for example by deciding what additional Tasks to run, determining when the work
is complete,
etc. (However, a Job Manager Task is not restricted to these activities - it is
a fully-fledged
Task in the system and perform whatever actions are required for the Job.) For
example, a Job
Manager Task might download a file specified as a parameter, analyze the contents
of that file
and submit additional Tasks based on those contents.'
name: job_manager_task
types:
- <xref:azure.batch.models.BatchJobManagerTask>
- description: 'The Job Preparation Task. If a Job has a Job Preparation Task, the
Batch service will run the Job Preparation Task on a Node before starting any
Tasks of that Job
on that Compute Node.'
name: job_preparation_task
types:
- <xref:azure.batch.models.BatchJobPreparationTask>
- description: 'The Job Release Task. A Job Release Task cannot be specified without
also specifying a Job Preparation Task for the Job. The Batch service runs the
Job Release Task
on the Nodes that have run the Job Preparation Task. The primary purpose of the
Job Release
Task is to undo changes to Compute Nodes made by the Job Preparation Task. Example
activities
include deleting local files, or shutting down services that were started as part
of Job
preparation.'
name: job_release_task
types:
- <xref:azure.batch.models.BatchJobReleaseTask>
- description: 'The list of common environment variable settings. These
environment variables are set for all Tasks in the Job (including the Job Manager,
Job
Preparation and Job Release Tasks). Individual Tasks can override an environment
setting
specified here by specifying the same setting name with a different value.'
name: common_environment_settings
types:
- <xref:list>[<xref:azure.batch.models.EnvironmentSetting>]
- description: The Pool on which the Batch service runs the Job's Tasks. Required.
name: pool_info
types:
- <xref:azure.batch.models.BatchPoolInfo>
- description: 'The action the Batch service should take when all Tasks in the Job
are in the completed state. Note that if a Job contains no Tasks, then all Tasks
are considered
complete. This option is therefore most commonly used with a Job Manager task;
if you want to
use automatic Job termination without a Job Manager, you should initially set
onAllTasksComplete to noaction and update the Job properties to set onAllTasksComplete
to
terminatejob once you have finished adding Tasks. The default is noaction. Known
values are:
"noaction" and "terminatejob".'
name: on_all_tasks_complete
types:
- <xref:str>
- <xref:azure.batch.models.OnAllBatchTasksComplete>
- description: 'The action the Batch service should take when any Task in the Job
fails.
A Task is considered to have failed if has a failureInfo. A failureInfo is set
if the Task
completes with a non-zero exit code after exhausting its retry count, or if there
was an error
starting the Task, for example due to a resource file download error. The default
is noaction.
Known values are: "noaction" and "performexitoptionsjobaction".'
name: on_task_failure
types:
- <xref:str>
- <xref:azure.batch.models.OnBatchTaskFailure>
- description: The network configuration for the Job.
name: network_configuration
types:
- <xref:azure.batch.models.BatchJobNetworkConfiguration>
- description: 'A list of name-value pairs associated with the Job as metadata. The
Batch
service does not assign any meaning to metadata; it is solely for the use of user
code.'
name: metadata
types:
- <xref:list>[<xref:azure.batch.models.MetadataItem>]
methods:
- uid: azure.batch.models.BatchJobCreateContent.as_dict
name: as_dict
summary: Return a dict that can be JSONify using json.dump.
signature: 'as_dict(*, exclude_readonly: bool = False) -> Dict[str, Any]'
keywordOnlyParameters:
- name: exclude_readonly
description: Whether to remove the readonly properties.
types:
- <xref:bool>
return:
description: A dict JSON compatible object
types:
- <xref:dict>
- uid: azure.batch.models.BatchJobCreateContent.clear
name: clear
signature: clear() -> None
- uid: azure.batch.models.BatchJobCreateContent.copy
name: copy
signature: copy() -> Model
- uid: azure.batch.models.BatchJobCreateContent.get
name: get
signature: 'get(key: str, default: Any = None) -> Any'
parameters:
- name: key
isRequired: true
- name: default
defaultValue: None
- uid: azure.batch.models.BatchJobCreateContent.items
name: items
signature: items() -> ItemsView[str, Any]
- uid: azure.batch.models.BatchJobCreateContent.keys
name: keys
signature: keys() -> KeysView[str]
- uid: azure.batch.models.BatchJobCreateContent.pop
name: pop
signature: 'pop(key: str, default: ~typing.Any = <object object>) -> Any'
parameters:
- name: key
isRequired: true
- name: default
- uid: azure.batch.models.BatchJobCreateContent.popitem
name: popitem
signature: popitem() -> Tuple[str, Any]
- uid: azure.batch.models.BatchJobCreateContent.setdefault
name: setdefault
signature: 'setdefault(key: str, default: ~typing.Any = <object object>) -> Any'
parameters:
- name: key
isRequired: true
- name: default
- uid: azure.batch.models.BatchJobCreateContent.update
name: update
signature: 'update(*args: Any, **kwargs: Any) -> None'
- uid: azure.batch.models.BatchJobCreateContent.values
name: values
signature: values() -> ValuesView[Any]
attributes:
- uid: azure.batch.models.BatchJobCreateContent.allow_task_preemption
name: allow_task_preemption
summary: 'Whether Tasks in this job can be preempted by other high priority jobs.
If the value is set to
True, other high priority jobs submitted to the system will take precedence and
will be able
requeue tasks from this job. You can update a job''s allowTaskPreemption after
it has been
created using the update job API.'
signature: 'allow_task_preemption: bool | None'
- uid: azure.batch.models.BatchJobCreateContent.common_environment_settings
name: common_environment_settings
summary: 'The list of common environment variable settings. These environment variables
are set for all
Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks).
Individual
Tasks can override an environment setting specified here by specifying the same
setting name
with a different value.'
signature: 'common_environment_settings: List[_models.EnvironmentSetting] | None'
- uid: azure.batch.models.BatchJobCreateContent.constraints
name: constraints
summary: The execution constraints for the Job.
signature: 'constraints: _models.BatchJobConstraints | None'
- uid: azure.batch.models.BatchJobCreateContent.display_name
name: display_name
summary: 'The display name for the Job. The display name need not be unique and
can contain any Unicode
characters up to a maximum length of 1024.'
signature: 'display_name: str | None'
- uid: azure.batch.models.BatchJobCreateContent.id
name: id
summary: 'A string that uniquely identifies the Job within the Account. The ID can
contain any
combination of alphanumeric characters including hyphens and underscores, and
cannot contain
more than 64 characters. The ID is case-preserving and case-insensitive (that
is, you may not
have two IDs within an Account that differ only by case). Required.'
signature: 'id: str'
- uid: azure.batch.models.BatchJobCreateContent.job_manager_task
name: job_manager_task
summary: 'Details of a Job Manager Task to be launched when the Job is started.
If the Job does not
specify a Job Manager Task, the user must explicitly add Tasks to the Job. If
the Job does
specify a Job Manager Task, the Batch service creates the Job Manager Task when
the Job is
created, and will try to schedule the Job Manager Task before scheduling other
Tasks in the
Job. The Job Manager Task''s typical purpose is to control and/or monitor Job
execution, for
example by deciding what additional Tasks to run, determining when the work is
complete, etc.
(However, a Job Manager Task is not restricted to these activities - it is a fully-fledged
Task
in the system and perform whatever actions are required for the Job.) For example,
a Job
Manager Task might download a file specified as a parameter, analyze the contents
of that file
and submit additional Tasks based on those contents.'
signature: 'job_manager_task: _models.BatchJobManagerTask | None'
- uid: azure.batch.models.BatchJobCreateContent.job_preparation_task
name: job_preparation_task
summary: 'The Job Preparation Task. If a Job has a Job Preparation Task, the Batch
service will run the
Job Preparation Task on a Node before starting any Tasks of that Job on that Compute
Node.'
signature: 'job_preparation_task: _models.BatchJobPreparationTask | None'
- uid: azure.batch.models.BatchJobCreateContent.job_release_task
name: job_release_task
summary: 'The Job Release Task. A Job Release Task cannot be specified without also
specifying a Job
Preparation Task for the Job. The Batch service runs the Job Release Task on the
Nodes that
have run the Job Preparation Task. The primary purpose of the Job Release Task
is to undo
changes to Compute Nodes made by the Job Preparation Task. Example activities
include deleting
local files, or shutting down services that were started as part of Job preparation.'
signature: 'job_release_task: _models.BatchJobReleaseTask | None'
- uid: azure.batch.models.BatchJobCreateContent.max_parallel_tasks
name: max_parallel_tasks
summary: 'The maximum number of tasks that can be executed in parallel for the job.
The value of
maxParallelTasks must be -1 or greater than 0 if specified. If not specified,
the default value
is -1, which means there''s no limit to the number of tasks that can be run at
once. You can
update a job''s maxParallelTasks after it has been created using the update job
API.'
signature: 'max_parallel_tasks: int | None'
- uid: azure.batch.models.BatchJobCreateContent.metadata
name: metadata
summary: 'A list of name-value pairs associated with the Job as metadata. The Batch
service does not
assign any meaning to metadata; it is solely for the use of user code.'
signature: 'metadata: List[_models.MetadataItem] | None'
- uid: azure.batch.models.BatchJobCreateContent.network_configuration
name: network_configuration
summary: The network configuration for the Job.
signature: 'network_configuration: _models.BatchJobNetworkConfiguration | None'
- uid: azure.batch.models.BatchJobCreateContent.on_all_tasks_complete
name: on_all_tasks_complete
summary: 'The action the Batch service should take when all Tasks in the Job are
in the completed state.
Note that if a Job contains no Tasks, then all Tasks are considered complete.
This option is
therefore most commonly used with a Job Manager task; if you want to use automatic
Job
termination without a Job Manager, you should initially set onAllTasksComplete
to noaction and
update the Job properties to set onAllTasksComplete to terminatejob once you have
finished
adding Tasks. The default is noaction. Known values are: "noaction" and "terminatejob".'
signature: 'on_all_tasks_complete: str | _models.OnAllBatchTasksComplete | None'
- uid: azure.batch.models.BatchJobCreateContent.on_task_failure
name: on_task_failure
summary: 'The action the Batch service should take when any Task in the Job fails.
A Task is considered
to have failed if has a failureInfo. A failureInfo is set if the Task completes
with a non-zero
exit code after exhausting its retry count, or if there was an error starting
the Task, for
example due to a resource file download error. The default is noaction. Known
values are:
"noaction" and "performexitoptionsjobaction".'
signature: 'on_task_failure: str | _models.OnBatchTaskFailure | None'
- uid: azure.batch.models.BatchJobCreateContent.pool_info
name: pool_info
summary: The Pool on which the Batch service runs the Job's Tasks. Required.
signature: 'pool_info: _models.BatchPoolInfo'
- uid: azure.batch.models.BatchJobCreateContent.priority
name: priority
summary: 'The priority of the Job. Priority values can range from -1000 to 1000,
with -1000 being the
lowest priority and 1000 being the highest priority. The default value is 0.'
signature: 'priority: int | None'
- uid: azure.batch.models.BatchJobCreateContent.uses_task_dependencies
name: uses_task_dependencies
summary: Whether Tasks in the Job can define dependencies on each other. The default
is false.
signature: 'uses_task_dependencies: bool | None'