You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use GHA concurrency to lock a single run per license used #312
I've had a look at this after the painful start of the week with a lot of license failures... Currently concurrency doesn't provide an option to limit to a specific number, it only enforces "one" for a given group name. I was also thinking of using a modulus operator to construct the group name based on a job run ID - not ideal but kinda what we need, but there's no % in expressions either, so it would need to be a manually composed disgustingly-long expression composed of ternary operations to emulate the "modulus 6" (the current number of available licences).
As far as I can tell we worked around this by cancelling previous runs and we have retries on all relevant code paths. I've not had a failure due to license-fetching in ages.
Activity
vaind commentedon Apr 13, 2022
I've had a look at this after the painful start of the week with a lot of license failures... Currently
concurrencydoesn't provide an option to limit to a specific number, it only enforces "one" for a given group name. I was also thinking of using a modulus operator to construct the group name based on a job run ID - not ideal but kinda what we need, but there's no%in expressions either, so it would need to be a manually composed disgustingly-long expression composed of ternary operations to emulate the "modulus 6" (the current number of available licences).I've added a feature request to add a
limitas a discussion here: https://github.community/t/concurrency-limit/245284bitsandfoxes commentedon Oct 21, 2024
As far as I can tell we worked around this by cancelling previous runs and we have retries on all relevant code paths. I've not had a failure due to license-fetching in ages.