Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how to schedule a job using tornado?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
aliane abdelouahab  
View profile  
 More options Oct 10 2012, 6:02 pm
From: aliane abdelouahab <alabdeloua...@gmail.com>
Date: Wed, 10 Oct 2012 15:02:46 -0700 (PDT)
Local: Wed, Oct 10 2012 6:02 pm
Subject: how to schedule a job using tornado?
hi,
sorry for this queston ;)
here is the code:

if time = 18:00 pm, then print "hello"

so i guess, verifying time in a regular way, will consume ressources?
so do i use a separated thread only redicated to checking if it's time
to print "hello"? there is no shared ressources, since i use a
database call, that will post a message only at a given time.

is it possible?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean Chassoul  
View profile  
 More options Oct 10 2012, 6:41 pm
From: Jean Chassoul <chass...@gmail.com>
Date: Wed, 10 Oct 2012 16:41:45 -0600
Local: Wed, Oct 10 2012 6:41 pm
Subject: Re: [tornado] how to schedule a job using tornado?

Hi,

have you checked the documentation?
http://www.tornadoweb.org/documentation/ioloop.html

I think the timeouts section it's what you're looking for...

Regards,
Jean

On Wed, Oct 10, 2012 at 4:02 PM, aliane abdelouahab <alabdeloua...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aliane abdelouahab  
View profile  
 More options Oct 10 2012, 6:52 pm
From: aliane abdelouahab <alabdeloua...@gmail.com>
Date: Wed, 10 Oct 2012 15:52:20 -0700 (PDT)
Local: Wed, Oct 10 2012 6:52 pm
Subject: Re: how to schedule a job using tornado?
then i must use a special thread for listening to time and waiting
till the 18:00 gets? and do i receivre a confirmatio that the
operation has done correctly? because if i automate it, imagine that
at 17:59 there is a bug on the machine, and it will restarts at
18:01 !!!!

On 10 oct, 23:41, Jean Chassoul <chass...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lorenzo Bolla  
View profile  
 More options Oct 11 2012, 4:45 am
From: Lorenzo Bolla <lbo...@gmail.com>
Date: Thu, 11 Oct 2012 09:45:31 +0100
Local: Thurs, Oct 11 2012 4:45 am
Subject: Re: [tornado] Re: how to schedule a job using tornado?

On Wed, Oct 10, 2012 at 11:52 PM, aliane abdelouahab <

alabdeloua...@gmail.com> wrote:
> then i must use a special thread for listening to time and waiting
> till the 18:00 gets? and do i receivre a confirmatio that the
> operation has done correctly? because if i automate it, imagine that
> at 17:59 there is a bug on the machine, and it will restarts at
> 18:01 !!!!

No threads. What about this (pseudocode):

add_timeout(datetime("when you want your operation to kick in") -
datetime.now(), operation)

L.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aliane abdelouahab  
View profile  
 More options Oct 11 2012, 6:58 am
From: aliane abdelouahab <alabdeloua...@gmail.com>
Date: Thu, 11 Oct 2012 03:57:57 -0700 (PDT)
Local: Thurs, Oct 11 2012 6:57 am
Subject: Re: how to schedule a job using tornado?
mmmmmmmmmm, it seems to be useful, but to be honest, i dident
understand... am a beginner and my mind works with blueprints (def
foo: print bar ).

On 11 oct, 09:45, Lorenzo Bolla <lbo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jimmy  
View profile  
 More options Oct 11 2012, 9:39 am
From: Jimmy <li.jiam...@gmail.com>
Date: Thu, 11 Oct 2012 06:39:01 -0700 (PDT)
Local: Thurs, Oct 11 2012 9:39 am
Subject: Re: how to schedule a job using tornado?

IOLoop.instance().add_timeout( Time you want to time out in datetime type. )


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aliane abdelouahab  
View profile  
 More options Oct 11 2012, 10:21 am
From: aliane abdelouahab <alabdeloua...@gmail.com>
Date: Thu, 11 Oct 2012 07:21:13 -0700 (PDT)
Local: Thurs, Oct 11 2012 10:21 am
Subject: Re: how to schedule a job using tornado?
and how it is behaving? do it control the time each X seconds? how
much this value X?

On 11 oct, 14:39, Jimmy <li.jiam...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lorenzo Bolla  
View profile   Translate to Translated (View Original)
 More options Oct 11 2012, 11:26 am
From: Lorenzo Bolla <lbo...@gmail.com>
Date: Thu, 11 Oct 2012 16:26:24 +0100
Local: Thurs, Oct 11 2012 11:26 am
Subject: Re: [tornado] Re: how to schedule a job using tornado?

On Thu, Oct 11, 2012 at 3:21 PM, aliane abdelouahab <alabdeloua...@gmail.com

> wrote:
> and how it is behaving? do it control the time each X seconds? how
> much this value X?

Check these out:
http://www.tornadoweb.org/documentation/_modules/tornado/ioloop.html#...
and
http://www.tornadoweb.org/documentation/_modules/tornado/ioloop.html#...

Timeouts are stored in a heap (self._timeouts). At each IOLoop iteration,
the most urgent timeout is checked out from the heap and executed (if its
time has come).

L.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aliane abdelouahab  
View profile  
 More options Oct 11 2012, 11:39 am
From: aliane abdelouahab <alabdeloua...@gmail.com>
Date: Thu, 11 Oct 2012 08:38:55 -0700 (PDT)
Local: Thurs, Oct 11 2012 11:38 am
Subject: Re: how to schedule a job using tornado?
ah! so for each "Loop" time is checked!
thank you :)

On 11 oct, 16:26, Lorenzo Bolla <lbo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic