nativelink icon indicating copy to clipboard operation
nativelink copied to clipboard

Kill worker after action execution limit is reached

Open zbirenbaum opened this issue 1 year ago • 2 comments
trafficstars

Description

Allows users to set the maximum number of action executions a worker is allowed to complete. Upon reaching this limit, the worker will no longer accept new jobs, and will exit upon completing all assigned ones.

Fixes #815

Type of change

  • [x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

A test has been added to ensure the going_away signal is properly sent and received

Checklist

  • [x] Updated documentation if needed
  • [x] Tests added/amended
  • [x] bazel test //... passes locally
  • [x] PR is contained in a single commit, using git amend see some docs

This change is Reviewable

zbirenbaum avatar Apr 02 '24 21:04 zbirenbaum

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Zach Birenbaum seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar May 15 '24 21:05 CLAassistant