Closed rupertnash closed 7 years ago
I will look into this. I am not sure if this is intended or a bug.
I investigated this and determined that this behavior is expected at least currently.
Here's the reasoning behind it:
cd ..
OR run the executable using the AZ_BATCH_TASK_SHARED_DIR
environment variable.Does using $AZ_BATCH_TASK_SHARED_DIR
make sense in your use case?
Thanks for this Matt. Could this please be documented somewhere?
Yes, we should definitely document this more clearly than we do. I've made a note and we will update our documentation shortly.
If you add a resource file to the coordination command for a multi-instance task then this is not downloaded to the task working directory. Instead, it is added to the parent of this (where the task stderr.txt etc are placed). This wouldn’t be a problem except that the working directory for coordination command execution is the task working directory. (Checked by setting my command string to be
pwd && sh ../coordination.sh
).As a work-around you can just
cd ..
first, but it's quite annoying.This is for the agent SKU ID "batch.node.centos 7", in case this is specific to that.