-
Notifications
You must be signed in to change notification settings - Fork 365
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
Error #01: Needed resources are used by other tasks. #1276
Comments
Hi, thanks for reporting ! yes, this might be fixed with #1125, which is currently being rebased on master. the ?_async=true will make the API calls return a task_id. the caller should wait for the task to complete, before issuing a next api call. this can be done with GET /tasks/:id/wait |
Thanks for the reply! Yes, I can. But let me clarify: do I understand correctly that I need to write a shell handler that will process each curl request, take the ID and put it into GET /tasks/:ID/wait ? |
yes, something like this: |
Hello, @neolynx! I apologize for the delay in replying, it took a while to check everything out. I've added
Aptly version 1.5.0+ds1-1+b4 . This is stdout of shell script with
And do I understand correctly that I can't get ID and STATE on this request?
And is it correct that on |
Hi! Need help with publishing packages!
Packages are assembled on Jenkins, and then they are further uploaded and published to the repository using the aptly api:
The problem is that there may be parallel builds, downloads, and publications at the same time, and I get the following error:
aptly — "Error #1: Needed resources are used by other tasks."
curl — (22) The requested URL returned error: 409 Conflict
Have I tried using this version:
#1125 (comment)
and using ?_async=true, but the error persists.
I tried to build aptly from the master branch, errors persist.
What else can I do, or maybe I'm doing something wrong?
The text was updated successfully, but these errors were encountered: