Redis is my broker, I know that might not be well tested in 3.1rc
bkuberek has quit
message144 has quit
mgrouchy has quit
hkj has quit
installed rabiitMQ
still hangs on cold shutdown, after sigterm or sigint
gremmie has quit
mgrouchy joined the channel
k_sze[work] joined the channel
so it's hanging on line 170 of bootsteps.py, join on the shutdown-complete signal... the comment implies i'd only get there if running green, but i'm using default multiprocessinfg
hell_razer has quit
mgrouchy has quit
italorossi has quit
hell_razer joined the channel
rickmak joined the channel
actually it seems that TERM wil close all the workers, and INT will close the main process thereafter
but if you send TERM to main process, it closes subprocs and then hangs on line 170 again
hell_razer has quit
I should mention that this happens only during a long-running process
pilgo joined the channel
hell_razer joined the channel
so not sure if my fix is pull-request worthy, but since the comment says "won't be called unless running green" I did a check on pool_cls.is_green before calling self.blueprint.join from WorkController Blueprint _shutdown function
dlitvak joined the channel
jlucci joined the channel
rcleere joined the channel
domino14 has quit
dlitvak has quit
bkuberek joined the channel
sebleblanc has quit
sebleblanc joined the channel
Ertac has quit
domino14 joined the channel
bkuberek has quit
bkuberek joined the channel
hell_razer has quit
pilgo has quit
madewulf joined the channel
hell_razer joined the channel
hell_razer
hi, i am using lates celery+django-celery, i have problems with celery time zone, my server time zone is +3, django timezone setted to this timezone too and works great, but celery uses localtime +3, so all datetimes is future, CELERY_ENABLE_UTC CELERY_TIMEZONE doesn't help
rcleere has quit
sivy has quit
bwreilly has quit
fayaz_ joined the channel
madewulf has quit
Wertax joined the channel
pilgo joined the channel
hell_razer has quit
shalabhaggarwal joined the channel
Wertax has quit
anuvrat joined the channel
Wertax joined the channel
atomekk joined the channel
Wertax has quit
atomekk has quit
hell_razer joined the channel
atomekk joined the channel
bkuberek has quit
atomekk has quit
atomekk joined the channel
jlucci has quit
hell_razer has quit
sgviking has quit
sgviking joined the channel
atomekk has quit
atomekk joined the channel
Wertax joined the channel
sivy joined the channel
sivy has quit
mdan
good morning UK! :)
surabujin joined the channel
bkuberek joined the channel
bkuberek has quit
mher joined the channel
Ergo^ joined the channel
the_rat joined the channel
Striki joined the channel
Striki
good morning
byrman joined the channel
johnraz joined the channel
droodle joined the channel
Wertax has quit
Wertax joined the channel
Wertax_ joined the channel
Wertax_ has quit
Wertax_ joined the channel
mdan
How you doing?
Striki
I'm good thanks, how are you?
mdan
alright, werkwerkwerk
the_rat has quit
are you a dev on celery?
the_rat joined the channel
johnraz has quit
Wertax has quit
Wertax_ has quit
the_rat has quit
Striki
mdan: no
quantumsummers|c has quit
quantumsummers|c joined the channel
fayaz_ has quit
mdan
ah
what brings you here then?
i am not either.. yet.. getting closer the deeper in this code i go
johnraz joined the channel
anuvrat has quit
fayaz_ joined the channel
pyeek has quit
Striki
we are having issues with gevent leaking memory and mongodb connections. I was just wondering if anyone here has had similar issues? :)
mdan
hm.. nope, using redis/rabbitmq and processes instead of gevent so can't help you there
Striki
regarding using processes, how lightweight are they?
mdan
just starting out. seems pretty lightweight, but our machines have 8 cores
Striki
ok
mdan
and we plan to consume all the CPU :)
Striki
hehe
:)
they mark threading as "minefield" in the docs. does it mean that it's a total minefield or does the minefield tag mean something different?
mdan
unsure, you'll have to asksol
are you already using celery in production? what py version?
if you are on more recent version of python concurrent.futures is pretty promising.. there's a backport- but i also like some of the higher-level celery features
i spent a good amount of time playing with rq today, I like it a lot, and it has a compact codebase...
but i don't think it's mature enough for our super demanding application
Striki
we are using celery in production and we really like it. the only thing that is wrong is our "async" workers, they use gevent and seem to leak memory and mongodb connections
mdan
how long do your tasks tend to be?
Striki
not that long, perhaps maximum ~30 seconds
mdan
i don't know much about threading ...are you opening and closing your db connections for each task?
i mean, threading in the context of celery. have done tons with threads elsewhere :)
but mostly low level stuff
Wertax joined the channel
yeshuah joined the channel
Striki
actually we aren't closing the connections manually. we are not having that issue in the API or in the "non-async" taskworkers. Maybe I should check if that makes any difference
it would be nice to use gevent or eventlet or something similar instead of threading. I'm just wondering what might be causing this issue and if I can find a workaround :)