Job is not terminated at node run time error

Hi,

My job had a run time error. I expect the job should terminate and mark at it as a failure. But it keeps running (yellow). Is there a way to fix this.

    RangeError: Maximum call stack size exceeded

at _hasBinary (/var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/socket/node_modules/has-binary/index.js:25:22)

at _hasBinary (/var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/socket/node_modules/has-binary/index.js:49:63)

at /var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/socket/node_modules/socket.io/lib/socket.js:369:16

at /var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/server/lib/socket.js:308:22

at tryCatcher (/var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)

at Promise._settlePromiseFromHandler (/var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:510:31)

at Promise._settlePromise (/var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:567:18)

at Promise._settlePromise0 (/var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:612:10)

at Promise._settlePromises (/var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:687:18)

at Async._drainQueue (/var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:133:16)

at Async._drainQueues (/var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:143:10)

at Immediate.Async.drainQueues (/var/lib/buildkite-agent/.cache/Cypress/3.3.1/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/async.js:17:14)

at runCallback (timers.js:789:20)

at tryOnImmediate (timers.js:751:5)

at processImmediate [as _immediateCallback] (timers.js:722:5)

It looks like maybe your scripts/commands are stuck, and not existing properly?

If your command isn’t timing out itself, or exiting properly, you can add a timeout_in_minutes on the step and Buildkite will force it to exit and finish regardless of if it’s stuck: