backend.frontend¶
-
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_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.
-
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).
-