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