Scheduled jobs in Tornado

1,526 views
Skip to first unread message

rbw

unread,
Feb 6, 2012, 9:34:47 AM2/6/12
to Tornado Web Server
Hello,

I'm trying to figure out how to write a scheduler to run jobs at
specific times, i.e. every day at 5 PM, in Tornado.
Is there any simple way to accomplish this?

Regards,
Robert

Christopher Allick

unread,
Feb 6, 2012, 12:04:04 PM2/6/12
to python-...@googlegroups.com
not sure if this helps, but you could create a cron job that hits a webservice and setup a handler in your application. you might want to protect the call.

Roey Berman

unread,
Feb 6, 2012, 12:31:17 PM2/6/12
to python-...@googlegroups.com
Wasn't planning on releasing it, but what the heck :)

https://github.com/bergundy/tornado_crontab

wataka

unread,
Feb 6, 2012, 1:05:28 PM2/6/12
to Tornado Web Server
I use APscheduler, http://packages.python.org/APScheduler/


On Feb 6, 6:31 pm, Roey Berman <roey.ber...@gmail.com> wrote:
> Wasn't planning on releasing it, but what the heck :)
>
> https://github.com/bergundy/tornado_crontab
>

Aleksandar Radulovic

unread,
Feb 6, 2012, 1:49:44 PM2/6/12
to python-...@googlegroups.com
How about just using celery? It works like a charm and its a proven
and robust solution..

--
a lex 13 x
http://a13x.net | @a13xnet

Jason

unread,
Feb 6, 2012, 10:21:38 PM2/6/12
to Tornado Web Server
I'm sorry.I don't know.

Robert Wikman

unread,
Feb 7, 2012, 4:12:26 AM2/7/12
to Tornado Web Server
Forgot to mention that I was at the time of my first post looking for
a solution using the Tornado built-in functionality, i.e.
PeriodCallback or add_timeout.

Didn't even think about using a separate module for this.

Thank you everyone.

Regards,
Robert

On Feb 6, 7:49 pm, Aleksandar Radulovic <a...@a13x.net> wrote:
> How about just using celery? It works like a charm and its a proven
> and robust solution..
>
>
>
>
>
>
>
>
>
> On Mon, Feb 6, 2012 at 7:05 PM, wataka <nhy...@googlemail.com> wrote:
> > I use APscheduler,http://packages.python.org/APScheduler/

Roey Berman

unread,
Feb 8, 2012, 10:41:22 AM2/8/12
to python-...@googlegroups.com
@wataka - Thanks for the APScheduler link, I was gonna write tests for my crontab project but now that I found out about that project I'm just using apscheduler.triggers.cron.CronTrigger

I posted a gist if anyone is interested.

Adam Tauno Williams

unread,
Feb 10, 2012, 9:50:39 PM2/10/12
to python-...@googlegroups.com
On Mon, 2012-02-06 at 10:05 -0800, wataka wrote:
> I use APscheduler, http://packages.python.org/APScheduler/

+1 APschedular

Actually I run APschedular in a process that uses AMQ to send messages
at designated times; then the apps/services just process the messages.

--
System & Network Administrator [ LPI & NCLA ]
<http://www.whitemiceconsulting.com>
OpenGroupware Developer <http://www.opengroupware.us>
Adam Tauno Williams

Reply all
Reply to author
Forward
0 new messages