backend.frontend

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

Object to send data back to fronted

try_indefinitely = False
log

return configured logger object, or no-op logger

_frontend_request(url_path, data=None, authenticate=True, method='post')[source]
_frontend_request_repeatedly(url_path, method='post', data=None, authenticate=True)[source]

Repeat the request until it succeeds, or timeout is reached.

_post_to_frontend_repeatedly(data, url_path)[source]

Repeat the request until it succeeds, or timeout is reached.

get(url_path)[source]

Issue relentless GET request to Frontend

post(url_path, data)[source]

Issue relentless POST request to Frontend

put(url_path, data)[source]

Issue relentless POST request to Frontend

update(data)[source]

Send data to be updated in the frontend

starting_build(data)[source]

Announce to the frontend that a build is starting.

Returns:True if the build can start or False if the build can not start (can be cancelled or deleted).
reschedule_build(build_id, task_id, chroot_name)[source]

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

reschedule_all_running()[source]