New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure CLI - Running commands in parallel fails #8561
Comments
PR for fixing this is out |
Closing as fixed with #8656 |
@bishal-pdMSFT When is the change likely to hit west europe accounts? |
@xenalite this has not yet started rolling out. It will take ~2 weeks for it to reach all locations. In the meanwhile you can follow the workaround mentioned in #8314 (comment) |
@bishal-pdMSFT I can still experience failures with parallel Azure CLI task. I have some other diagnostic logs with 2 jobs running in parallel on the same node. Both of them create a file in:
Then one of the tasks fails with
I thought it should generate the batch file in the agent's work directory. |
You are right, it should use agent's temp folder. I think when the task was authored, agent's temp folder was not available. Having said that, the probability of this error happening is quite low compared to earlier error. This error will happen only when two parallel tasks starts within 1 second of each other. But none the less, it needs to be fixed. |
We get this failure around 3 times a day. |
This PR fixes the issue #9054 |
Environment
Issue Description
We have 4 agents installed on a single VM. I use them with a multi-configuration phase to build multiple Docker images at the same time. We use ACR build tasks inside Azure CLI task to build the images.
Cutdown YAML phase:
Invoke-ACRBuild.ps1
Aside from a really crap error handling (Azure CLI commands like to report progress into stderr...), the
az
commands to ACR build fail every now and again when running in parallel.One multi-config job failed with this:
The other multi-config job failed with this at the same time:
It looks almost as if they log each other out sometimes and then the other task doesn't know what subscription to talk to.
Task logs
48.txt
52.txt
The text was updated successfully, but these errors were encountered: