Task::Feed::CollectOrphans
Inherits Task::Singleton < Task < Ktistec::Model::Polymorphic < Ktistec::Model::Common < Ktistec::Model < Reference < Object
Collection task for orphaned feed state.
Collects Feed::Versions no feed uses, Feed::Verdicts whose
version is collected or whose object no longer exists, and
membership rows (the Relationships carrying the synthetic
Feed::<id> type) whose object no longer exists.
Constants
Log = ::Log.for(self)
SWEEP_INTERVAL = 5.minutes
SWEEP_SIZE = 250
Constructors
current_instance
Returns the current active instance of this singleton task.
Creates and saves a new instance if no active instance exists.
Class methods
ensure_scheduled
Ensures the singleton task is scheduled.
Typically called on server startup to ensure singleton tasks are created and scheduled.
run_now
Makes the active instance due now, and wakes the task worker.
Does nothing if the instance is running or complete.
Instance methods
perform
Sourcestate
Sourcestate=(state : State)
Source