This commit is contained in:
Родитель
dc933c6c75
Коммит
8d151b0fda
|
@ -129,23 +129,23 @@
|
|||
"displayName": "",
|
||||
"onAllTasksComplete": "terminateJob",
|
||||
"usesTaskDependencies": true,
|
||||
"jobPreparationTask":{
|
||||
"jobPreparationTask": {
|
||||
"userIdentity": {
|
||||
"autoUser": {
|
||||
"scope": "pool",
|
||||
"elevationLevel": "admin"
|
||||
}
|
||||
},
|
||||
"commandLine":"/bin/bash -c 'azcopy --source \"[parameters('inputDataSas')]\" --destination \"$AZ_BATCH_JOB_PREP_WORKING_DIR\" --recursive'"
|
||||
"commandLine": "/bin/bash -c 'azcopy --source \"[parameters('inputDataSas')]\" --destination \"$AZ_BATCH_JOB_PREP_WORKING_DIR\" --recursive'"
|
||||
},
|
||||
"jobReleaseTask":{
|
||||
"userIdentity":{
|
||||
"jobReleaseTask": {
|
||||
"userIdentity": {
|
||||
"autoUser": {
|
||||
"scope": "pool",
|
||||
"elevationLevel": "admin"
|
||||
}
|
||||
},
|
||||
"commandLine":"/bin/bash -c 'echo \"$AZ_BATCH_JOB_PREP_WORKING_DIR\";rm -rfv \"$AZ_BATCH_JOB_PREP_WORKING_DIR/*\"'"
|
||||
"commandLine": "/bin/bash -c \"sudo rm -rfv $AZ_BATCH_JOB_PREP_WORKING_DIR/*\""
|
||||
},
|
||||
"jobManagerTask":{
|
||||
"id": "_manager",
|
||||
|
|
|
@ -281,7 +281,7 @@ def submit_task_collection(batch_client, job_id, tasks, frame):
|
|||
|
||||
def chunks(items, count):
|
||||
# For item i in a range that is a length of items[],
|
||||
for i in range(0, len(list), count):
|
||||
for i in range(0, len(items), count):
|
||||
# Create an index range for l of n items:
|
||||
yield items[i:i+count]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче