circleci-queue
circleci-queue copied to clipboard
Ignore 404 in `fetch_active_workflows` [semver:minor]
Checklist
- [x] All new jobs, commands, executors, parameters have descriptions
- [x] Examples have been added for any significant new features
- [x] README has been updated, if necessary
Motivation, issues
Attempts to fix https://github.com/eddiewebb/circleci-queue/issues/79 by better handling a 404 from the CircleCI API when getting workflows.
Description
@eddiewebb would be great to have this merged
To move forward with this we need to make it optional, as a parameter to ignore missing workflow data, or figure out why IDs declared by active jobs don't exist.
ignore-missing-worflows or similar with a default behavior to expect all data, and an override to allow missing data to just be an notice and not a failure.
@eddiewebb given your recent findings, do we still want this to be merged, maybe as a workaround at least? Does it depend on adding a parameter to toggle this feature?
@asfaltboy, @davet1985, @asselinpaul - I closed #79 based on a fix and recent API changes.
If we want to push for this PR anyway I would want to gate it behind a parameter like ignore-404 with a default to NOT ignore them as they could actually be 403/bad token errors.
I am closing for now. If there is interwst to re-submit feature behind a flag please feel free to re-open or reference in new PR.