I am using express, and want to create a job anytime someone posts to my route. I would like the response to contain the job.id. However, the job id only populates in the callback of my queue.createFunction, so I am not quite sure how to return the job id? One solution I can think of is issuing a post request in my route to create a job, as their api returns an id as a response, but this seems inefficient.
via swagbag
No comments:
Post a Comment