mirror of
https://github.com/odoo/runbot.git
synced 2025-03-16 07:55:45 +07:00
19 lines
467 B
Python
19 lines
467 B
Python
![]() |
#!/usr/bin/python3
|
||
|
from tools import RunbotClient, run
|
||
|
import logging
|
||
|
import time
|
||
|
|
||
|
_logger = logging.getLogger(__name__)
|
||
|
|
||
|
class LeaderClient(RunbotClient): # Conductor, Director, Main, Maestro, Lead
|
||
|
def __init__(self, env):
|
||
|
self.pull_info_failures = {}
|
||
|
super().__init__(env)
|
||
|
|
||
|
def loop_turn(self):
|
||
|
return self.env['runbot.runbot']._fetch_loop_turn(self.host, self.pull_info_failures)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
run(LeaderClient)
|