* 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)
| 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 |
no test coverage detected