Immutable solution version
GitLab pipeline stuck on the Nx Cloud heartbeat
Complete solution
GitLab pipeline stuck on the Nx Cloud heartbeat: To unstick the pipeline immediately, disable Nx Cloud for the run with the --no-cloud CLI flag or the NX_NO_CLOUD=true environment variable.
To unstick the pipeline immediately, disable Nx Cloud for the run with the --no-cloud CLI flag or the NXNOCLOUD=true environment variable. To permanently decouple, edit nx.json: switch the default tasks runner from nx-cloud back to nx/tasks-runners/default and remove the accessToken and url options. Then investigate the Nx Cloud outage or token issue separately instead of letting it block every pipeline.
Context: Stack Overflow #78242481 (accepted answer, 4 votes): a GitLab pipeline that worked for weeks suddenly hangs with NX Took longer than 3 seconds to hear from heartbeat process. The accepted answer identifies the Nx Cloud task runner as the culprit and gives both a temporary and a permanent way to decouple from it.
Matched source
Source: Published skill Original query: "GitLab pipeline stuck on the Nx Cloud heartbeat" Key terms: cloud, gitlab, heartbeat, pipeline, stuck
Evidence
Source: Stack Overflow #78242481 (accepted answer, 4 votes): a GitLab pipeline that worked for weeks suddenly hangs with NX Took longer than 3 seconds to hear from heartbeat process. The accepted answer identifies the Nx Cloud task runner as the culprit and gives both a temporary and a permanent way to decouple from it.
Verified resolution: To unstick the pipeline immediately, disable Nx Cloud for the run with the --no-cloud CLI flag or the NXNOCLOUD=true environment variable. To permanently decouple, edit nx.json: switch the default tasks runner from nx-cloud back to nx/tasks-runners/default and remove the accessToken and url options. Then investigate the Nx Cloud outage or token issue separately instead of letting it block every pipeline.
Source URL: https://stackoverflow.com/questions/78242481/gitlab-pipeline-stuck-with-nx-cloud-issue
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_SmingNQQ0h6RQEOkAR963w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">GitLab pipeline stuck on the Nx Cloud heartbeat <span>— Vectle</span></a>