You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a send_delay function on the PGMQueue struct. send_delay is almost identical to send, but it will take another required parameter: delay_seconds: i64. This parameter will set the "visibility timeout" to now() + delay_seconds.
A message with delay_seconds = 0 is immediately available for consumers to process. A message with delay_seconds = 60 would not be processed until 60 seconds from the time it is sent. This is very useful when a sender when the sender is sending tasks, and wants one task to be executed at an arbitrary time in the future.
Getting started:
Add a new function, similar to send, but should have an additional parameter for he delay/
Implement a
send_delay
function on the PGMQueue struct. send_delay is almost identical to send, but it will take another required parameter:delay_seconds: i64
. This parameter will set the "visibility timeout" to now() +delay_seconds
.A message with
delay_seconds = 0
is immediately available for consumers to process. A message withdelay_seconds = 60
would not be processed until 60 seconds from the time it is sent. This is very useful when a sender when the sender is sending tasks, and wants one task to be executed at an arbitrary time in the future.Getting started:
now() + delay
The text was updated successfully, but these errors were encountered: