mini_buildd.daemon module

class mini_buildd.daemon.Keyrings(model)

Bases: object

Hold/manage all gnupg keyrings (for remotes and all repository uploaders).

set_needs_update()
close()
get_remotes()
get_uploaders()
class mini_buildd.daemon.Daemon(*args, **kwargs)

Bases: mini_buildd.threads.EventThread

sync()
join(timeout=None)

Wait until the thread terminates.

This blocks the calling thread until the thread whose join() method is called terminates – either normally or through an unhandled exception or until the optional timeout occurs.

When the timeout argument is present and not None, it should be a floating point number specifying a timeout for the operation in seconds (or fractions thereof). As join() always returns None, you must call is_alive() after join() to decide whether a timeout happened – if the thread is still alive, the join() call timed out.

When the timeout argument is not present or None, the operation will block until the thread terminates.

A thread can be join()ed many times.

join() raises a RuntimeError if an attempt is made to join the current thread as that would cause a deadlock. It is also an error to join() a thread before it has been started and attempts to do so raises the same exception.

run_event(event)
cronjob_debug()

For debugging cron only.

cronjob_check()

Check all instances.

classmethod cronjob_expire_live_buildlogs()

Expire live buildlogs older than 5 days.

classmethod cronjob_expire_events_log()

Expire events log files older than 1 year.

cronjob_snapshots(crontype)

Generate repository snapshots for all stable distributions.

classmethod get_status()
get_title()

Human-readable short title for this Daemon instance.

classmethod meta(model, func, request)
classmethod log_cat(lines)
classmethod get_active_chroots()
classmethod get_active_repositories()
classmethod get_suites()
classmethod get_active_codenames()
classmethod get_active_or_auto_reactivate_remotes()
classmethod get_subscription_objects()
port(package, from_dist, to_dist, version, options=None)
port_ext(dsc_url, to_dist, options=None)
mbd_start()
mbd_stop()