Bases: object
When a task failure occurs the following object will be given to revert and can be used to interrogate what caused the failure.
Bases: object
An iterator which yields back the first item and then yields back results from the provided iterator.
Bases: object
A pluggable backend loaded lazily based on some value.
Bases: object
A simple reader-writer lock.
Several readers can hold the lock simultaneously, and only one writer. Write locks have priority over reads to prevent write starvation.
Public domain @ http://majid.info/blog/a-reader-writer-lock-for-python/
Acquire a read or write lock in a context manager.
Acquire a read lock.
Several threads can hold this typeof lock. It is exclusive with write locks.
Acquire a write lock.
Only one thread can hold this lock, and only when no read locks are also held.
Release a lock, whether read or write.
Bases: object
A utility class that can help in organizing ‘undo’ like code so that said code be rolled back on failure (automatically or manually) by activating rollback callables that were inserted during said codes progression.
Bases: object
A helper task that on being called will call the underlying callable tasks revert method (if said method exists).
Bases: object
A helper class that wraps a task and can find the needed inputs for the task to run, as well as providing a uuid and other useful functionality for users of the task.
TODO(harlowja): replace with the task details object or a subclass of that???
Bases: object
A utility helper class that can be used to subscribe to notifications of events occuring as well as allow a entity to post said notifications to subscribers.
Gets a tasks string name, whether it is a task object/function.
Gets a tasks string version, whether it is a task object/function.
Checks for major version compatibility of two *string” versions.