Skip to content
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

Using force-cancel returns a 500 error on a hanging workflow #3329

Open
abelbraaksma opened this issue Jun 11, 2024 · 0 comments
Open

Using force-cancel returns a 500 error on a hanging workflow #3329

abelbraaksma opened this issue Jun 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@abelbraaksma
Copy link

abelbraaksma commented Jun 11, 2024

Describe the bug
Calling the force-cancel endpoint using the following syntax, returns a 500 error (related to the recently implemented #1846).

To Reproduce

Have a workflow run that's hanging (if you need to repro this, there are currently two hanging runs in my org, see getaddify and ping me if you want me to try some things).

gh api --method POST repos/GetAddify/colonizer/actions/runs/9420995077/force-cancel

Response:

{
  "message": "Failed to cancel workflow run",
  "documentation_url": "https://docs.github.com/rest/actions/workflow-runs#force-cancel-a-workflow-run",
  "status": "500"
}

Expected behavior

Run is canceled. However, this does not happen.

Runner Version and Platform

Version of your runner? this in GitHub itself

OS of the machine running the runner? online in github.com

What's not working?

See response JSON above. It won't cancel the hanging run (even after 5 days).

Job Log Output

None. The runs appear as running, but didn't even start. It looks like this in the overview:

image

Runner and Worker's Diagnostic Logs

N/A

@abelbraaksma abelbraaksma added the bug Something isn't working label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant