Create Pull Request
| Date | Scan | Status | Result |
|---|---|---|---|
| 2025-07-12 23:44 | #41 | cancelled |
Biased
|
| 2025-07-12 00:58 | #8 | cancelled |
Clean
|
| 2025-07-10 05:06 | #7 | processing |
Clean
|
// Create the CloudJob for CloudPool "myPool"
CloudJob myJob =
myBatchClient.JobOperations.CreateJob(
"JobPrepReleaseSampleJob",
new PoolInformation() { PoolId = "myPool" });
// Specify the command lines for the job preparation and release tasks
string jobPrepCmdLine =
"cmd /c echo %AZ_BATCH_NODE_ID% > %AZ_BATCH_NODE_SHARED_DIR%\\shared_file.txt";
string jobReleaseCmdLine =
"cmd /c del %AZ_BATCH_NODE_SHARED_DIR%\\shared_file.txt";
// Assign the job preparation task to the job
myJob.JobPreparationTask =
new JobPreparationTask { CommandLine = jobPrepCmdLine };
// Assign the job release task to the job
myJob.JobReleaseTask =
new JobReleaseTask { CommandLine = jobReleaseCmdLine };
await myJob.CommitAsync();
Attempting to create pool: JobPrepReleaseSamplePool Created pool JobPrepReleaseSamplePool with 2 nodes Checking for existing job JobPrepReleaseSampleJob... Job JobPrepReleaseSampleJob not found, creating... Submitting tasks and awaiting completion... All tasks completed. Contents of shared\job_prep_and_release.txt on tvm-2434664350_1-20160623t173951z: ------------------------------------------- tvm-2434664350_1-20160623t173951z tasks: task001 task004 task005 task006 Contents of shared\job_prep_and_release.txt on tvm-2434664350_2-20160623t173951z: ------------------------------------------- tvm-2434664350_2-20160623t173951z tasks: task008 task002 task003 task007 Waiting for job JobPrepReleaseSampleJob to reach state Completed ... tvm-2434664350_1-20160623t173951z: Prep task exit code: 0 Release task exit code: 0 tvm-2434664350_2-20160623t173951z: Prep task exit code: 0 Release task exit code: 0 Delete job? [yes] no yes Delete pool? [yes] no yes Sample complete, hit ENTER to exit...