newcron
Module¶
This file is part of the web2py Web Framework
Created by Attila Csipa <web2py@csipa.in.rs>
Modified by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Cron-style interface
-
class
gluon.newcron.
Token
(path)[source]¶ Bases:
object
-
acquire
(startup=False)[source]¶ Returns the time when the lock is acquired or None if cron already running
lock is implemented by writing a pickle (start, stop) in cron.master start is time when cron job starts and stop is time when cron completed stop == 0 if job started but did not yet complete if a cron job started within less than 60 seconds, acquire returns None if a cron job started before 60 seconds and did not stop, a warning is issue “Stale cron.master detected”
-
-
gluon.newcron.
absolute_path_link
(path)[source]¶ Returns an absolute path for the destination of a symlink