backend.frontend

class backend.frontend.FrontendClient(opts, logger=None)[source]

Object to send data back to fronted

_post_to_frontend(data, url_path)[source]

Make a request to the frontend

_post_to_frontend_repeatedly(data, url_path, max_repeats=10)[source]

Make a request max_repeats-time to the frontend

update(data)[source]

Send data to be updated in the frontend

starting_build(build_id, chroot_name)[source]

Announce to the frontend that a build is starting. Return: True if the build can start

False if the build can not start (can be cancelled or deleted)
defer_build(build_id, chroot_name)[source]

Tell the frontend that the build task should be deferred (put aside for some time until there are resources for it).

reschedule_build(build_id, chroot_name)[source]

Announce to the frontend that a build should be rescheduled (set pending state).

reschedule_all_running(attempts)[source]