I am not using a commandline interface. I ended up creating a new
APScheduler instance from within the applications main() function. That
way, the scheduled service will run only when the server is running. It is
in the applications main() function that I create a pyramid_mailer instance
and pass it to the APScheduler instance as well as save it to the
applications registry so that I have a single shared mailer.

Would you advise against creating a scheduler instance at the main() method
level?

--Vincent


On Tue, Mar 19, 2013 at 10:37 AM, Jonathan Vanasco <[email protected]>wrote:

> reading your question... are you using a commandline interface/script for
> the nightly task ?
>>
>>
>
> http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/commandline.html
>
>
> after initiating the bootstrap, it would be just a few lines of logic to
> handle your work -- and it all would happen in a separate process.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Vincent Catalano
Software Engineer and Web Ninja,
(520).603.8944

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to