0
我正在使用Azure批處理Python API。當我創建一份新工作時,我會看到退出碼128(附圖)。我怎麼知道這是什麼原因?Azure批處理作業啓動任務失敗
我使用此代碼創建一個新的任務:
def wrap_commands_in_shell(commands):
return "/bin/bash -c 'set -e; set -o pipefail; {}; wait'".format(';'.join(commands))
job_tasks = ['cd /mnt/batch/tasks/shared/ && git clone https://github.com/cryptobiu/OSPSI.git',
'cd /mnt/batch/tasks/shared/OSPSI && git checkout cloud',
'cd /mnt/batch/tasks/shared/OSPSI && cmake CMake',
'cd /mnt/batch/tasks/shared/OSPSI && mkdir -p assets'
]
job_creation_information = batch.models.JobAddParameter(job_id, batch.models.PoolInformation(pool_id=pool_id),
job_preparation_task=batch.models.JobPreparationTask(
command_line=wrap_commands_in_shell(
job_tasks),
run_elevated=True,
wait_for_success=True
)
)
我的Git倉庫,私人,只有授權的人才能觀看。我安裝了所有的依賴項(git,cmake ..)。感謝您的回覆 – liorko