{"id":6826,"date":"2025-02-06T14:09:10","date_gmt":"2025-02-06T14:09:10","guid":{"rendered":"https:\/\/www.garysieling.com\/blog\/?p=6826"},"modified":"2025-02-06T14:09:10","modified_gmt":"2025-02-06T14:09:10","slug":"allow-a-circleci-self-hosted-machine-runner-to-run-jobs-for-more-than-5-hrs","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/allow-a-circleci-self-hosted-machine-runner-to-run-jobs-for-more-than-5-hrs\/","title":{"rendered":"Allow a CircleCI self-hosted machine runner to run jobs for more than 5 hrs"},"content":{"rendered":"\n<p>Edit \/usr\/lib\/systemd\/system\/circleci-runner.service<\/p>\n\n\n\n<p>Change &#8220;TimeoutStopSec&#8221; to be a larger number <\/p>\n\n\n\n<p>Edit \/etc\/circleci-runner\/circleci-runner-config.yaml<\/p>\n\n\n\n<p>To the runner: block, add a line like so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>runner:\n    max_run_time: 24h<\/code><\/pre>\n\n\n\n<p>Then, restart the service:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>sudo systemctl daemon-reload<\/p>\n\n\n\n<p>sudo systemctl restart circleci-runner<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit \/usr\/lib\/systemd\/system\/circleci-runner.service Change &#8220;TimeoutStopSec&#8221; to be a larger number Edit \/etc\/circleci-runner\/circleci-runner-config.yaml To the runner: block, add a line like so: Then, restart the service: sudo systemctl daemon-reload sudo systemctl restart circleci-runner<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6826"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=6826"}],"version-history":[{"count":1,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6826\/revisions"}],"predecessor-version":[{"id":6827,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6826\/revisions\/6827"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}