(queue, jobId, data)
| 32 | } |
| 33 | |
| 34 | static fromData(queue, jobId, data) { |
| 35 | // no need for try-catch here since we made the JSON ourselves in Job#toData |
| 36 | data = JSON.parse(data); |
| 37 | const job = new Job(queue, jobId, data.data, data.options); |
| 38 | job.status = data.status; |
| 39 | job.progress = data.progress; |
| 40 | return job; |
| 41 | } |
| 42 | |
| 43 | toData() { |
| 44 | return JSON.stringify({ |
no outgoing calls
no test coverage detected