Re: apscheduler error

2011-01-29 Thread Ben Finney
a...@pythoncraft.com (Aahz) writes: > In article , > =?utf-8?Q?Alice_Bevan=E2=80=93McGregor?= wrote: > >A package of mine, TurboMail, suffers from the same threading issue > >if used improperly; you enqueue e-mail, it starts a thread, then you > >immediately exit. > > Why not write an exit handl

Re: apscheduler error

2011-01-29 Thread Aahz
In article , =?utf-8?Q?Alice_Bevan=E2=80=93McGregor?= wrote: > >A package of mine, TurboMail, suffers from the same threading issue if >used improperly; you enqueue e-mail, it starts a thread, then you >immediately exit. TM tries to work around the issue, but in most cases >that workaround do

Re: apscheduler error

2011-01-13 Thread Hesham
In cases like that instead of sleep() can use pause(). E.g., from apscheduler.scheduler import Scheduler import signal sched = Scheduler() sched.start() def some_job(): print "Decorated job" sched.add_interval_job(some_job,minutes=1) signal.pause() Mosalam -- http://mail.python.org/mailman/

Re: apscheduler error

2011-01-10 Thread Alice Bevan–McGregor
On 2011-01-10 17:23:34 -0800, linna li said: I see the latest version is APScheduler 1.3.1. Where can I get APScheduler 2.0? https://bitbucket.org/agronholm/apscheduler/ I don't think 2.0 has been released yet, but that is the version number in apscheduler/__init__.py on HG tip. The example

Re: apscheduler error

2011-01-10 Thread linna li
On Jan 7, 11:03 pm, Alice Bevan–McGregor wrote: > Howdy! > > On 2011-01-07 17:08:28 -0800, linna li said: > > > I tried to use the apscheduler and used the sample code below from the > > tutorial, but got the error message: Exception in thread APScheduler > > (most likely raised during interpreter

Re: apscheduler error

2011-01-10 Thread linna li
Thank you for all the replies here! I will try your suggestions. On Jan 7, 11:03 pm, Alice Bevan–McGregor wrote: > Howdy! > > On 2011-01-07 17:08:28 -0800, linna li said: > > > I tried to use the apscheduler and used the sample code below from the > > tutorial, but got the error message: Exceptio

Re: apscheduler error

2011-01-07 Thread Alice Bevan–McGregor
Howdy! On 2011-01-07 17:08:28 -0800, linna li said: I tried to use the apscheduler and used the sample code below from the tutorial, but got the error message: Exception in thread APScheduler (most likely raised during interpreter shutdown). What's going on here? I really appreciate any help!

Re: apscheduler error

2011-01-07 Thread Adam Tauno Williams
On Fri, 2011-01-07 at 17:08 -0800, linna li wrote: > I tried to use the apscheduler and used the sample code below from the > tutorial, but got the error message: Exception in thread APScheduler > (most likely raised during interpreter shutdown). What's going on > here? I really appreciate any hel

Re: apscheduler error

2011-01-07 Thread Chris Rebert
On Fri, Jan 7, 2011 at 6:09 PM, Steven D'Aprano wrote: > On Fri, 07 Jan 2011 17:08:28 -0800, linna li wrote: >> I tried to use the apscheduler and used the sample code below from the >> tutorial, but got the error message: Exception in thread APScheduler >> (most likely raised during interpreter s

Re: apscheduler error

2011-01-07 Thread Steven D'Aprano
On Fri, 07 Jan 2011 17:08:28 -0800, linna li wrote: > I tried to use the apscheduler and used the sample code below from the > tutorial, but got the error message: Exception in thread APScheduler > (most likely raised during interpreter shutdown). What's going on here? > I really appreciate any he

apscheduler error

2011-01-07 Thread linna li
I tried to use the apscheduler and used the sample code below from the tutorial, but got the error message: Exception in thread APScheduler (most likely raised during interpreter shutdown). What's going on here? I really appreciate any help! from apscheduler.scheduler import Scheduler sched = Sch