What's more, Be caution here, If you use timeoutInMinutes in task level, it should be the type of string not number. reference
steps:
- task: string # Required as first property. Name of the task to run.
inputs: # Inputs for the task. string: string # Name/value pairs
condition: string # Evaluate this condition expression to determine whether to run this task.
continueOnError: boolean # Continue running even on failure?
displayName: string # Human-readable name for the task.
target: string | target # Environment in which to run this task.
enabled: boolean # Run this task when the job runs?
env: # Variables to map into the process's environment. string: string # Name/value pairs
name: string # ID of the step.
timeoutInMinutes: string # Time to wait for this task to complete before the server kills it.
retryCountOnTaskFailure: string # Number of retries if the task fails.
If in job timeoutInMinutes need the type number. reference
