I know of celery, it's a good software, but little too complicated and
expensive for the task I'm asking about. I'll probably use built-in
session timeout, as Shawn suggests.
But I think eventually I'll come back to celery when my demands will
rise as I'll have a need for delayed processing in my Django-app.

I need to know all users presence statuses, and this statuses are
updated asynchronously for logged users using comet push. So I need
some kind of roster rather then crawling over all users to check their
last activity timestamp.

On Jan 15, 1:21 pm, David De La Harpe Golden
<david.delaharpe.gol...@ichec.ie> wrote:
> E17 wrote:
> > I wouldn't like to use cron, as running full python execution stack is
> > quite expensive in terms of performance. For the same reason I don't
> > like to run this code on [every] request handlers.
>
> > Seems to me like better solution would be to use some outer deamon or
> > deamon-like proces that would handle this functionality. I've googled
> > out at least 2 solutions for that
>
> Well, celery is a comprehensive solution for general background and
> periodic task processing in conjunction with django and works very 
> wellhttp://ask.github.com/celery/introduction.html
>
> May not be necessary to do what you want though - if you have a last
> activity timestamp in the session, you could consider just lazily
> showing "away" status when it's more than a certain amount in the past
> when it comes to display the status, rather than eagerly updating a flag
> with some scanner background task. (I think the idea is you want "away"
> status to show well before any true session timeout leading to logout,
> right?)
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to