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
Why don't you register a tick handler? I see the declare construct being used, what purpose does it have without having a registered tick handler?
Shutdown behaviour. Currently the consumer's invoke method is blocking the shutdown mechanism. I.e. if consuming a particular message takes 3h to consume, and you send in a SIGINT or SIGTERM signal (also, the default supervisord stopping signal), you'll have to wait 3hours until the consumer notices that it should've stopped. Not ideal if you ask me.
The text was updated successfully, but these errors were encountered:
Declare tick should not be used at all, many places it is suggested to use pcntl_signal_dispatch instead.
Inside the drivers, instead of usleep(), could use time_nanosleep, which is interruptable.
Hi guys/girls,
2 questions:
declare
construct being used, what purpose does it have without having a registered tick handler?invoke
method is blocking the shutdown mechanism. I.e. if consuming a particular message takes 3h to consume, and you send in a SIGINT or SIGTERM signal (also, the default supervisord stopping signal), you'll have to wait 3hours until the consumer notices that it should've stopped. Not ideal if you ask me.The text was updated successfully, but these errors were encountered: