Task::Feed::CollectDrafts
Inherits Task::Singleton < Task < Ktistec::Model::Polymorphic < Ktistec::Model::Common < Ktistec::Model < Reference < Object
Collection task for abandoned feed drafts.
Drafts are destroyed one at a time, through the model, so
Feed#before_destroy deletes each draft's materialized rows.
Constants
generous because the lease is renewed by saving, not by viewing: revisiting a draft without previewing it does not save it.
Constructors
Returns the current active instance of this singleton task.
Creates and saves a new instance if no active instance exists.
Class methods
Ensures the singleton task is scheduled.
Typically called on server startup to ensure singleton tasks are created and scheduled.
Makes the active instance due now, and wakes the task worker.
Does nothing if the instance is running or complete.