Part of lp.scripts.garbo View In Hierarchy
Jobs that don't need to be run frequently.
If there is low overhead, consider putting these tasks in more frequently invoked lists to distribute the work more evenly.
Inherited from BaseDatabaseGarbageCollector:
Method | __init__ | Construct new LaunchpadScript. |
Method | add_my_options | Optionally customize this hook to define your own options. |
Method | main | Define the meat of your script here. Must be defined. |
Method | get_remaining_script_time | Undocumented |
Method | script_timeout | Undocumented |
Method | get_loop_logger | Retrieve a logger for use by a particular task. |
Method | get_loop_abort_time | Undocumented |
Method | run_tasks_in_thread | Worker thread target to run tasks. |
Inherited from LaunchpadCronScript (via BaseDatabaseGarbageCollector):
Method | get_last_activity | Return the last activity, if any. |
Method | record_activity | Record the successful completion of the script. |
Inherited from LaunchpadScript (via BaseDatabaseGarbageCollector, LaunchpadCronScript):
Method | handle_options | Undocumented |
Method | name | Enable subclasses to override with command-line arguments. |
Method | dbuser | Enable subclasses to override with command-line arguments. |
Method | login | Super-convenience method that avoids the import. |
Method | lockfilename | Return lockfilename. |
Method | lockfilepath | Undocumented |
Method | setup_lock | Create lockfile. |
Method | lock_or_die | Attempt to lock, and sys.exit(1) if the lock's already taken. |
Method | unlock | Release the lock. Do this before going home. |
Method | run | Actually run the script, executing zcml and initZopeless. |
Method | lock_and_run | Call lock_or_die(), and then run() the script. |
Method | _init_zca | Initialize the ZCA, this can be overridden for testing purposes. |
Method | _init_db | Initialize the database transaction. |