-
Notifications
You must be signed in to change notification settings - Fork 36
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
Unable to lock/release more than once from the same pool within a task #6
Comments
Hi there! We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created. The current status is as follows:
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes. |
Could you include the build plan that didn't work? |
Sure:
|
You'll run into problems with having the same step name multiple times. If you're getting the same lock twice you'll want to name them differently so you can release the individually acquired ones, like so: - put: lock-1
resource: gf1-lock
params: {acquire: true}
- put: lock-2
resource: gf1-lock
params: {acquire: true}
# ...
- put: release-lock-1
resource: gf1-lock
params: {release: lock-1}
- put: release-lock-2
resource: gf1-lock
params: {release: lock-2} This doesn't matter for the single-lock case since at that point there's no name conflict. Technically there's weirdness since the |
Thanks for that - it certainly improves the clarity. However, the problem still remains. Initially I had hoped that it would be fixed as I thought that each |
No, you're correct; each put is its own container. So it still failed with On Mon, Sep 21, 2015, 9:18 AM Jens Deppe notifications@github.com wrote:
|
Here is the job definition:
The error for
|
Your release config needs to say |
Of course! No surprise that it was EBCAK after all. It would be nice if the examples would be a little more verbose so as to leave less room for error :). Thanks for the help. |
Updated the docs! |
Hi, I have a sequence of jobs in my pipeline say Job-1 and Job2. I was able to acquire two locks in Job1. I want to release the locks in job2. Getting the below error while releasing the lock.Could you please suggest how to resolve it. It works fine if aquire and release are part of one job. error releasing lock: open /tmp/build/put/lock-1/name Below is the pipeline jobs:
|
Within a single task I'd like to be able to grab more than one lock from a pool. It seems that I am able to acquire multiple locks (say two), but when releasing them, the second one produces this error:
error releasing lock: open /tmp/build/put/gf1-lock/name: no such file or directory
. I'm assuming that the acquired locks also didn't work correctly and probably overwrote each other.The text was updated successfully, but these errors were encountered: