[Azure Batch - Java SDK] Create a Job with task dependencies RRS feed

  • Question

  • Dear All,

    I'm struggling to creating a Job with the task dependencies enabled, through the Azure Batch Java SDK. 

    Did anybody manage to do it?

    Let's say, I create a job with: client.jobOperations().createJob(jobId,poolInfo);

    How do I then enable Job task dependencies? 

    final CloudJob job = client.jobOperations().getJob(jobId);

    I see that the .NET  SDK has got a CloudJob.commit to apply changes in the Batch Service, but that's missing in the Java SDK.

    Best Regards,


    Sunday, November 3, 2019 5:30 PM


  • You can do this by passing in a JobAddParamater with the additional properties to createJob rather than ids (https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.batch.joboperations.createjob?view=azure-java-stable#com_microsoft_azure_batch_JobOperations_createJob_JobAddParameter_).
    Monday, November 4, 2019 5:34 PM