MCPcopy Create free account
hub / github.com/cloudconvert/cloudconvert-cli / failJob

Function failJob

src/job.ts:186–199  ·  view source on GitHub ↗
(failedJob?: Job)

Source from the content-addressed store, hash-verified

184 };
185
186 const failJob = (failedJob?: Job): void => {
187 if (isSettled() || isCancelled()) {
188 return;
189 }
190
191 stopWaiting();
192 closeCloudConvertSocket(cloudconvert);
193 if (failedJob) {
194 printFailedTaskMessages(failedJob.tasks, logger);
195 printCommandTaskOutputs(failedJob.tasks, logger);
196 }
197 spinner.fail('Job failed!');
198 reject(new Error('Job failed!'));
199 };
200
201 const callbacks: JobCompletionCallbacks = {
202 isSettled,

Callers

nothing calls this directly

Calls 7

isSettledFunction · 0.85
isCancelledFunction · 0.85
stopWaitingFunction · 0.85
closeCloudConvertSocketFunction · 0.85
printFailedTaskMessagesFunction · 0.85
printCommandTaskOutputsFunction · 0.85
failMethod · 0.80

Tested by

no test coverage detected