Class Ruote::StorageHistory
In: lib/ruote/log/storage_history.rb
Parent: Object

Logs the ruote engine history to the storage underlying the worker.

Warning : don‘t use this history implementation when the storage is HashStorage. It will fill up your memory… Keeping history for a transient ruote is a bit overkill (IMHO).

Methods

by_date   by_process   by_wfid   clear!   new   notify   range  

Constants

DATE_REGEX = /!(\d{4}-\d{2}-\d{2})!/

Public Class methods

Public Instance methods

by_wfid(wfid)

Alias for by_process

The history system doesn‘t implement purge! so that when purge! is called on the engine, the history is not cleared.

Call this dangerous clear! method to clean out any history file.

This is the method called by the workqueue. Incoming engine events are ‘processed’ here.

Returns an array [ most recent date, oldest date ] (Time instances).

[Validate]