Many of my handlers add an operation to the working queue for non-critical background processing, since this processing is not important, If the call exception to the taskqua.ed (), then my code just ignores it.
The working queue was lying down for about half an hour tonight. Although my handler had ignored the failure properly, they took about 5 seconds to the taskqua.ed () column and proceed to processing the rest of the page. So my site runs very slow.
So, it is possible to connect the work with asynchronous - which means that there is no way to add work, without waiting to see if it succeeded?
Alternatively, is there any way to reduce that time from 1 second to 1 second?
Thank you.
You can create new task types of methods create_rpc and
add_async You can use. If you do not care, adding is successful, just call
add_async and ignore the result if you care but want to wait only 1 second, then
create_rpc < Set the time limit when calling / code>, and use the return value as an RPC logic on
add_async . To find out that the job has been successfully added, call
Comments
Post a Comment