Limit runtime?

I had a test that hung and I got a notification that it was killed after 6 hours.

This seems wasteful. Is there a way to configure a time limit for the workflows? For me, after 20 minutes I’m really not expecting anything to still be active.

1 Like

Here you go https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idstepstimeout-minutes

You can add timeout-minutes: 20 to your job:

For example:

See also:

5 Likes