When adding more tasks to a job with a JobManagerTask, it seems to me that those other tasks inherit the "AllowLowPriorityNode: false" flag I have set on the job manager

Håkon Lie 0 Reputation points
2025-10-15T13:35:46.6433333+00:00

Has anyone else experienced this? I set "AllowLowPriorityNode: false" on my JobManagerTask, but when I create other tasks under the same job, they refuse to run on low priority nodes. The field is only available on the job manager task.

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
{count} votes

1 answer

Sort by: Most helpful
  1. Jerald Felix MCT 7,990 Reputation points
    2025-10-15T16:28:01.3633333+00:00

    Hello Håkon Lie,

    Thank you for describing your experience with Azure Batch jobs and the "AllowLowPriorityNode: false" setting on your JobManagerTask. Based on your observation, it does seem that tasks added to a job inherit constraints from the JobManagerTask, even though the field itself is only available there.

    Here's what likely happens:

    Inherited Constraints: If you set "AllowLowPriorityNode: false" on your JobManagerTask, all tasks within that job may be restricted from running on low-priority nodes by default, even if you do not set that option directly on the other tasks.

    No Per-Task Override: The Azure Batch API currently exposes the "AllowLowPriorityNode" field only for the JobManagerTask, not for regular tasks. This means you cannot override the inherited restriction on a per-task basis from the portal or standard SDK.

    Deployment Best Practices: If you need some tasks to use low-priority nodes and others to restrict them, consider splitting the work into separate jobs with tailored JobManagerTask settings.

    Refer to the documentation on Jobs and tasks in Azure Batch and Job and Task Properties for more details.

    Let me know if you need sample code or architectural guidance on separating jobs for granular control!

    Best regards,

    Jerald Felix


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.