Allow a CircleCI self-hosted machine runner to run jobs for more than 5 hrs

Edit /usr/lib/systemd/system/circleci-runner.service

Change “TimeoutStopSec” to be a larger number

Edit /etc/circleci-runner/circleci-runner-config.yaml

To the runner: block, add a line like so:

runner:
    max_run_time: 24h

Then, restart the service:

sudo systemctl daemon-reload

sudo systemctl restart circleci-runner

Leave a Reply

Your email address will not be published. Required fields are marked *