MCPcopy Create free account
hub / github.com/DialmasterOrg/Youtarr / registerJobWithRun

Method registerJobWithRun

server/modules/downloadModule.js:95–100  ·  view source on GitHub ↗

* Associate a freshly-created job with its download run (if any) so the run * can aggregate a single summary across all its jobs. No-op when the job is * not part of a run (e.g. a standalone manual download). * @param {Object} jobData - job payload that may carry a runId * @param {string

(jobData, jobId)

Source from the content-addressed store, hash-verified

93 * @param {string} jobId - id returned from jobModule.addOrUpdateJob
94 */
95 registerJobWithRun(jobData, jobId) {
96 const runId = this.getJobDataValue(jobData, 'runId');
97 if (!runId || !jobId) return;
98 const downloadRunTracker = require('./download/downloadRunTracker');
99 downloadRunTracker.registerJob(runId, jobId);
100 }
101
102 /**
103 * Enqueue a follow-up URL-list job for videos that failed with a transient

Callers 3

doSpecificDownloadsMethod · 0.95

Calls 2

getJobDataValueMethod · 0.95
registerJobMethod · 0.80

Tested by

no test coverage detected