mini_buildd.events module¶
- class mini_buildd.events.Type(value)¶
Bases:
enum.Enum
An enumeration.
- REJECTED = 1¶
- BUILDING = 2¶
- BUILT = 3¶
- PACKAGING = 4¶
- INSTALLED = 5¶
- FAILED = 6¶
- MIGRATED = 7¶
- REMOVED = 8¶
- class mini_buildd.events.Event(type_, distribution, source, version, extra)¶
Bases:
object
- error()¶
Human-readable one-liner string from
extra.error
.
- match(types=None, distribution=None, source=None, version=None, minimal_version=None)¶
- to_json()¶
- classmethod from_json(data)¶
- classmethod from_changes(typ, changes, exception=None, extra=None)¶
- save_as(file_path)¶
- json_file_name()¶
- classmethod load(file_path)¶
- class mini_buildd.events.Queue(*args, **kwargs)¶
Bases:
collections.deque
- MAX_CLIENTS = 100¶
- log(typ, changes, exception=None, extra=None)¶
- attach(obj, since=None)¶
- shutdown()¶
Hint shutdown to all client (queues). Essentially makes blocking get() in httpd.py continue so httpd can shutdown.
- to_json()¶
- classmethod from_json(events, maxlen)¶
- mini_buildd.events.ifilter(ievents, types=None, distribution=None, source=None, version=None, minimal_version=None, exit_on=None, fail_on=None)¶
- mini_buildd.events.load(path='', since=None)¶
Load events (as normal list) from events path, ordered as issued using event’s timestamp.