mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00

As for the builder, this give the ability to run the discovery of new commits and all related logic in a separate process. This will mainly be usefull to restart frontend without waiting for cron or restart "leader" without stoping the frontend. This will also be usefull for optimisation purpose.
17 lines
487 B
Python
Executable File
17 lines
487 B
Python
Executable File
#!/usr/bin/python3
|
|
from tools import RunbotClient, run
|
|
import logging
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
class TesterClient(RunbotClient):
|
|
|
|
def loop_turn(self):
|
|
_logger.info('='*50)
|
|
_logger.info('Testing: %s', self.env['runbot.build'].search_count([('local_state', '=', 'testing')]))
|
|
_logger.info('Pending: %s', self.env['runbot.build'].search_count([('local_state', '=', 'pending')]))
|
|
return 10
|
|
|
|
if __name__ == '__main__':
|
|
run(TesterClient)
|