cloudconvert / cloudconvert-node

CloudConvert node.js SDK
https://cloudconvert.com/api/v2
Other
164 stars 41 forks source link

Deferred job execution #96

Closed qwicigentech closed 1 year ago

qwicigentech commented 1 year ago

Is it possible to create job, but run later? I want to create job with prepared tasks, but process this job later after some event

josiasmontag commented 1 year ago

When creating a job via the API it will immediately run. There is no way to prevent that.

But you could just prepare the job payload and then use it later?

let jobPayload = {
"tasks": { ... }
}

// some time later

let job = await cloudConvert.jobs.create(jobPayload);
qwicigentech commented 1 year ago

I understand. I was wondering if it is possible to do without additional records in my database.