As per this document - https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.batch.common.disablejoboption?view=azure-dotnet
-
requeue
: This option typically allows the job to be requeued for execution later, effectively canceling the current execution and placing it back in the queue. -
terminate
: This option immediately stops the job and all associated tasks, regardless of their current state. -
wait
: As you noted, this option allows currently running tasks to complete. However, it appears that the job will not be marked as disabled until all tasks (including those that are queued or pending) have completed.
You are right, it would be beneficial for the documentation to clarify this point.
If your goal is to pause and resume a job, the current behavior of the wait
option may not meet your needs.
Hope this helps!
Please Let me know if you have any queries.