MCPcopy Index your code
hub / github.com/PrairieLearn/PrairieLearn / _timeout

Method _timeout

lib/code-caller.js:344–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 }
343
344 _timeout() {
345 debug(`enter _timeout(), state: ${String(this.state)}, uuid: ${this.uuid}`);
346 this._checkState([IN_CALL]);
347 this.timeoutID = null;
348 const err = new Error('timeout exceeded, killing PythonCaller child');
349 this.child.kill('SIGTERM');
350 this.state = EXITING;
351 this._callCallback(err);
352 debug(`exit _timeout(), state: ${String(this.state)}, uuid: ${this.uuid}`);
353 }
354
355 _clearTimeout() {
356 debug(`enter _clearTimeout(), state: ${String(this.state)}, uuid: ${this.uuid}`);

Callers

nothing calls this directly

Calls 3

_checkStateMethod · 0.95
_callCallbackMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected