Set query=event=workflow_dispatch&status=in_progress. Align wait_inte…#34
Set query=event=workflow_dispatch&status=in_progress. Align wait_inte…#34levon-kechichian-KR wants to merge 3 commits intoconvictional:masterfrom
Conversation
…rval with api and docs
|
@keithconvictional , need your LGTM stamp of approval XD |
|
I think this is a helpful change. Sometimes the triggered job gets to The job will eventually transition from |
|
Also, with this change, I think the note about timing in the README can be removed or changed since it'll no longer be a problem. |
…ate 'INPUT_WAIT_INTERVAL' in the ##Testing section of the README.
@neilmayhew Thank you for the feedback :) Regarding this brief sleep, do you think it'd be better to sleep for a fixed time (say 1 second) between each call. Or should the ${wait_interval} suffice? Maybe even a separate variable altogether? |
…gh a configurable last_workflow_interval input variable (defaults to 0). Redefine 'inputs' variable to be 'client_payload'. Lastly, using #bash, which uses /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
|
Just a note here, using Using One additional check that could be helpful is to check the date/time of the run and see if its falls within a freshness threshold. In some of our examples, it was picking up an Thanks for putting this together. |
|
is this something you'll fix, guys? |
|
I was about to submit a PR to fix #19, but I've just noticed that the same fix is already implemented as the first commit in this PR. Since there appears to be a bit of complexity related to the other changes in this PR, is there a case for maybe merging the first commit separately to resolve issue #19? |
|
It seems that all the proposed schemes for getting the run ID for the triggered workflow are fragile, because there's a race condition that's very hard to overcome. For example, I've seen the triggered workflow complete before the 10s wait interval that immediately follows the In the meantime, I wonder if there's a more robust solution. One possibility would be to list the run IDs before and after triggering the workflow, and see which ones have been added. The |
|
I implemented these changes in another PR, on top of this PR. I've tested it and it seems to work nicely. Let me know what you think. You'll want to look at the commits individually since it includes the commits from this PR, so if you want to see what I've added look just at my two commits. I'm thinking we would merge this PR first and then (if you like it) merge mine afterwards. I would rebase mine after this one is merged. |
I am totally fine with that :) Thank you for making this change! |
|
@keithconvictional Any chance of getting these two PRs merged soon? |
…rval with api and docs