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
I am not quite sure where to put the comment. hence raising it as issue.
Is there way to add support to on_shutdown event ?
My problem statement.. I have 3 different consumers but I would like to get all of their logs into one single LOG FILE with rotation handler .. Unfortunately Python logging doesn't support logging into same file from multiple process and hence it hits permission denied error. So, the recommendation by most folks is about using socket handler for streaming logs from all processes into master process and storing then to a file..
So, I am running a socket server on the a master process and that will run as soon as my consumers starts.. But, on consumer shutdown I would like to gracefully stop a socket server that I am starting as part of a task.
I looked at on_shutdown event from huey but unfortunately that doesn't seems to be helping with hueyx.
from huey.contrib.djhuey import on_shutdown
@on_shutdown()
def on_consumers_going_down():
print("They are going down")
The text was updated successfully, but these errors were encountered:
Hi,
I am not quite sure where to put the comment. hence raising it as issue.
Is there way to add support to on_shutdown event ?
My problem statement.. I have 3 different consumers but I would like to get all of their logs into one single LOG FILE with rotation handler .. Unfortunately Python logging doesn't support logging into same file from multiple process and hence it hits permission denied error. So, the recommendation by most folks is about using socket handler for streaming logs from all processes into master process and storing then to a file..
So, I am running a socket server on the a master process and that will run as soon as my consumers starts.. But, on consumer shutdown I would like to gracefully stop a socket server that I am starting as part of a task.
I looked at on_shutdown event from huey but unfortunately that doesn't seems to be helping with hueyx.
The text was updated successfully, but these errors were encountered: