HTTP prior acknowledgement #1844
-
I have this perl code: post '/api/prep/' => sub { but the json is returned to the requester who did the HTTP POST after the entire operation work is completed. As the operation work takes at least 10mins to complete, how can i return to the requester the json before the operation work begins so that the requestor knows that there is a acknowledgement response and not wait 10mins later for the operation work to complete? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
10 Minutes ? |
Beta Was this translation helpful? Give feedback.
10 Minutes ?
You really should use a job queue for this particular purpose.
https://docs.mojolicious.org/Minion/