-
Notifications
You must be signed in to change notification settings - Fork 24
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
queue_up_workflow and wait_for_workflow not working #76
Comments
+1 |
@sijangurung @teocomi I use this in our pipelines and a few other folks do too. So I am not sure exactly why it si failing. do you have any logs or repro steps I can look at |
Can you please show us a little more detailed config.yml where you have implemented queue_up_workflow. Thanks in advance |
@sijangurung i can't post the whole workflow but I will post a snapshot.
here all |
My usecase is workflow2 should wait for workflow1 and workflow3 should wait for workflow2
This won't work @roopakv |
@sijangurung seems like you have some bugs i the above, but it should work. You need a requires for all jobs that depend on the queue. i.e.
|
I tried with the code snippets you suggested, but got I am running Private bitbucket with CircleCI in an organization. Probably that has something to do . Also, I see in your code , it has should it be VCS independent, also use $CIRCLE_VCS_NAME |
@sijangurung that is probably it. I have never tried nor tested outside of github. let me look up the documentation and update. Would you be able to post the entire logs from the swissknife job if they are not sensitive? If they are sensitive could you mail them to hi[@]swissknife.dev |
I was also getting the same cryptic Exit 22, and was able to resolve it. If no other workflow was running, Swissknife worked happily, but as soon as there was another workflow it would fail with this message and no other clues.
Curl was returning 22 because the v2 API lookup fails. As there is no way to query workflows on the v1.1 API, I don't think a solution is available other than to document this as a known issue and advise Swissknife users to avoid Project tokens until CircleCI resolves this. I'm not a fan of putting my Personal token into the pipeline, but this seems to be the only way for the moment. |
@maciejb nice find. Sadly i couldnt find a nice way to implement this with only the v2 API back then. However I know they are going to deprecate the v1 API soon so I will start doing some work to see if it is possible now :) |
Thakns @roopakv but the problem is with the v2 API, so upgrading the v1.1 to v2 won't solve it -- you would just get Exit 22 triggered earlier in the script :) Seems like people have been asking for this and noting its poor implementation (404 instead of proper error) since v2 API came out, but it's been a few years now so I wouldn't hold my breath. Their support page recommends creating a service account user for such things and using a Personal Token. |
@maciejb oh yeah i got it mxied up. we use a service account (not a big fan, bit that was the only work around I could find) |
Hiya!
I've been spending several hours trying to get either
queue_up_workflow
orwait_for_workflow
working in my pipeline, but I keep getting aExited with code exit status 22
. Here's some of the code I'm using:The text was updated successfully, but these errors were encountered: