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).
engine.add_service( 'history', 'ruote/log/storage_history', 'Ruote::StorageHistory') # ... process_history = engine.history.by_wfid(wfid0)
By default, the history is an in-memory history (see Ruote::DefaultHistory) (and it is worthless when there are multiple workers).
DATE_REGEX | = | /!(\d{4}-\d{2}-\d{2})!/ |
Returns all the history events for a given day.
Takes as argument whatever is a datetime when turned to a string and parsed.
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.