do tasks with time.sleep() block? I stuck a time.sleep() in one of the tasks and it doesn't return until the sleep ends
italorossi joined the channel
ustunozgur joined the channel
ionelmc has quit
Diranged joined the channel
tehd has quit
ustunozgur has quit
tehd joined the channel
luke_ftw has quit
gremmie joined the channel
k_sze[work] joined the channel
bkuberek joined the channel
italorossi has quit
italorossi joined the channel
italorossi has quit
bkuberek has quit
bkuberek joined the channel
dlitvak joined the channel
dlitvak has quit
dlitvak joined the channel
ustunozgur joined the channel
gremmie has quit
dlitvak has quit
dlitvak joined the channel
ustunozgur has quit
Newbie0086 joined the channel
rickmak joined the channel
ustunozgur joined the channel
Diranged has quit
Diranged joined the channel
aimatt has quit
jarm has quit
domino14 has quit
anuvrat has quit
ustunozgur has quit
anuvrat joined the channel
ustunozgur joined the channel
ustunozgur has quit
jlucci joined the channel
bkuberek has quit
bwreilly joined the channel
ustunozgur joined the channel
bwreilly has quit
fayaz joined the channel
ustunozgur has quit
shalabhaggarwal joined the channel
shalabhaggarwal has quit
mdan_ has quit
jlucci has quit
ustunozgur joined the channel
Katafalkas joined the channel
ustunozgur has quit
Newbie0086 has quit
ustunozgur joined the channel
ustunozgur has quit
mdan_ joined the channel
bkuberek joined the channel
yopiti joined the channel
bkuberek has quit
anuvrat has quit
bwreilly joined the channel
bwreilly has quit
yopiti has quit
pilt joined the channel
bkuberek joined the channel
pilt has quit
anuvrat joined the channel
bkuberek has quit
mher joined the channel
yopiti joined the channel
yopiti has quit
rickmak_ joined the channel
rickmak has quit
rickmak_ is now known as rickmak
mher has quit
bkuberek joined the channel
bkuberek has quit
rickmak has quit
mher joined the channel
mdan_
hi mher
surabujin joined the channel
yopiti joined the channel
domino14 joined the channel
yopiti has quit
yopiti joined the channel
droodle joined the channel
Guest23384 is now known as alexis
backjlack has quit
backjlack joined the channel
Manganeez
If I send a SIGTERM to a worker, is there any mechanism that the child worker processes can find out about it so they can shutdown? I'm trying to find a simple way to stop my workers from an init script, but the problem is that I have a long-lived task, so the documented behaviior of just waiting for the currently executing tasks to finish doesn't work. A revoke-with-terminate also isn't sufficient - I do need to let that long-lived task finish its
current loop before exiting, not just rude-kill it.
I realize I can fall back on http://docs.celeryproject.org/en/latest/referen... , but that feels like a slightly different use case: that addresses stopping a task while allowing the worker to continue running. For the use case of actually trying to shut down the worker, it feels like there should be a signal-based way to do this that's more in line with the default capabilities of most init script systems (like openrc).