-
Notifications
You must be signed in to change notification settings - Fork 11
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
Prevent scheduled workflow from being automatically disabled #112
Comments
Manually re-enabled the workflow for now and it will run as scheduled in ~5mins |
Similarly, I just re-enabled the dengue ingest-to-phylo workflow which got disabled due to repo inactivity. |
Any objection to adding a keepalive step to these workflows to avoid this? |
^ that was one of the proposed solutions in nextstrain/project-board#5. I've copied all the relevant parts of that issue's description into this issue's descrpition. |
We should find a solution that doesn't require modifications to individual workflow files. Ideally, there would be an org-wide setting provided by GitHub to customize the amount of days of inactivity before automatic disabling. I wouldn't be surprised if they provide that in the future, at which point we would have to go back and undo modifications to individual workflows if we were to use something like I think there is a solution that uses the GitHub REST API for enabling/disabling workflows. There can be a central workflow (e.g. |
@victorlin I like the idea of a central workflow! Looks like |
I would avoid third-party code here. It feels like a risk that's not worth it. I like Victor's idea of centralizing control over this rather than modifying each workflow. A previous thought I'd had here, though it seems like I didn't express it, was to use Terraform run regularly to control this. (Although the official GitHub provider for Terraform doesn't expose the endpoint we need.) |
The API seems simple enough that we can call it directly and not through third-party code. If folks are on board with the proposed approach (option 4), I'll move this issue to |
I'm mostly implementation-agnostic and generally agree a self-owned central workflow is probably better — the best overall solution is the one that will allow the issue to be closed 😉 |
Thanks for transferring @joverlee521, I dropped the ball on this one. Probably not going to do this over the next few weeks so if anyone wants to take it, feel free. |
Context
The GitHub workflow docs state:
List of affected workflows
Possible solution
The text was updated successfully, but these errors were encountered: