IRC Logs for #circuits Sunday, 2014-09-07

*** Osso_ has quit IRC02:14
*** ninkotech has quit IRC04:03
zildjianhas anyone used prologic in conjuction with celery?07:08
zildjianerr07:09
zildjianhas anyone used circuits in conjuction with celery?07:09
zildjianspecifically remote machines that are used to perform heavy gpu computation in workers processes07:10
zildjianmy spelling is terrible.  Guess that means I need sleep. Ciao07:13
prologicI haven't no08:05
prologicbut was pretty close to using circuits with rabbitmq08:05
prologiczildjian, what I would hope you'd end up with is a circuits.contrib.celery package and component that integrates with celery (probably via the upstream celery api)08:06
prologicand one hopes that the upstream apis are async agnostic friendly like rabbitmq is (I should finish the circuits+rabbitmq integration off)08:07
Yamahi09:23
*** Osso_ has joined #circuits10:07
*** Romster has joined #circuits10:58
Yamahey prologic you have some minutes for a nooby function? (no, not related with circuits ._.)11:42
Yamawell, i need to output all keys of a dict(), sorted with the values11:44
Yamaoh.. it seems... i got it11:49
prologic:)13:24
prologicsorted(d.items(), key=itemgetter(1))13:24
Yamasorted(nicks.items(), key=lambda x: x[1], reverse=True)14:00
Yamax)14:00
Yamahm well.... situation changed...15:03
Yamaneed to sort after reading from the database15:03
Yamaor wait.... i read it after i let the database sort it...15:03
Yamalooks nice :D15:03
*** cfarmer_ has joined #circuits17:41
*** cfarmer_ has quit IRC18:41
*** cfarmer_ has joined #circuits19:02
*** cfarmer_ has quit IRC19:12
*** cfarmer_ has joined #circuits19:13
*** cfarmer_ has quit IRC19:17
*** cfarmer_ has joined #circuits20:09
*** cfarmer_ has quit IRC21:17
*** cfarmer_ has joined #circuits21:17
*** cfarmer_ has quit IRC21:22
*** cfarmer_ has joined #circuits21:24
*** An_Ony_Moose has quit IRC21:35
*** An_Ony_Moose has joined #circuits21:38
*** xMopxShell has joined #circuits21:59
xMopxShellHey, I'm trying to use circuits.web stuff behind uwsgi. I can see in my uwsgi log that one of my methods gets run but the browser hangs indefinitely....22:00
xMopxShellmy code is fairly hello-world: http://pastebin.com/MseWJrVn22:01
Yamagn822:09
prologichi xMopxShell22:51
xMopxShellhey22:51
prologichmm22:52
prologicthat example you’ve pasted ought to work22:52
prologicto be honest though most of us that use circuits.web use it behind a reverse proxy22:52
prologicthe unit tests pass for circuits.web.wsgi obviously22:52
prologicbut maybe you’ve run into a edge-case / bug under uwsgi?22:52
prologicTHis is circuits 3.0 right?22:52
xMopxShell2.1.022:53
xMopxShellI didnt know there was a 3 :o22:53
prologicahh23:00
prologicyeah upgrade to 3.0 :)23:00
prologicplease23:01
prologic2.1.0 is over 18months old :P23:01
prologicwe sadly have had a history of infrequent releases23:01
prologictrying to change that after 10 years :)23:01
xMopxShellyeah, same deal with 3.023:03
xMopxShellIf I make the http request with telnet I get the headers and the right content-length of what was returned in index()23:05
xMopxShellbut it hangs before the body comes though23:05
xMopxShellX-Powered-By: circuits.web/3.0 :)23:06
*** cfarmer_ has quit IRC23:24
prologicxMopxShell: can you test without behing behind uwsgi?23:46
prologicswap our application = Application + Root()23:46
prologicfor:23:46
prologicfrom circuits.web import Server23:46
prologicapp = Server((“0.0.0.0”, 8000)) + Root()23:46
prologicapp.run()23:46
prologicAnd what platform/os is this on?23:46
xMopxShellI was trying earlier with (Server(("0.0.0.0", 8889)) + Logger() + Root()).run()23:47
xMopxShelland that was working fine23:47
xMopxShellthis is on ubuntu linux23:47
prologicahh23:47
prologicokay so it may possibly be a bug with our Application component23:47
prologicfrom circuits.web.wsgi23:47
prologicI/We would greatly appreciate it if you helped us track it down, report it and even fix it :)23:48
prologicBut fixing it is optional — I’m sure we can once we find out what the issue is23:48
prologicbut otherwise if you don’t care all that much just run your app behind a reverse proxy23:48
prologicI say that because if running a circuits.web app under uwsgi or any wsgi server23:48
prologicyou loose all of the benefits of the circuits asynchornous event-driven side of things23:48
prologicyour app basically beomes a callable that runs and termintes each time23:49
prologicor in other words23:49
prologiccircuits.web.wsgi.Gateway and circuits.web.wsgi.Application are compatibliity components for interoperating with the wsgi 1.0 spec/standard23:49
prologicin practice I’ve found most apps don’t really deploy or run under wsgi servers23:50
prologicexcept that also contradicts with the popularity of uwsgi :)23:50
prologicanyway choice is yours ;)23:50
prologiceither way we need to fix the bug23:50
*** cfarmer_ has joined #circuits23:52
xMopxShellhmm i see23:56

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!