mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[IMP] runbot: adding some log
This commit is contained in:
parent
9ae816a23d
commit
328ba2d9c2
@ -57,6 +57,8 @@ class RunboHost(models.Model):
|
||||
return int(icp.get_param('runbot.runbot_running_max', default=75))
|
||||
|
||||
def set_psql_conn_count(self):
|
||||
|
||||
_logger.debug('Updating psql connection count...')
|
||||
self.ensure_one()
|
||||
with local_pgadmin_cursor() as local_cr:
|
||||
local_cr.execute("SELECT sum(numbackends) FROM pg_stat_database;")
|
||||
|
@ -37,7 +37,7 @@ class RunbotClient():
|
||||
self.env['runbot.build']._local_cleanup()
|
||||
self.env['runbot.repo']._docker_cleanup()
|
||||
host.set_psql_conn_count()
|
||||
_logger.debug('Scheduling...')
|
||||
_logger.info('Scheduling...')
|
||||
count += 1
|
||||
sleep_time = self.env['runbot.repo']._scheduler_loop_turn(host)
|
||||
host.last_end_loop = fields.Datetime.now()
|
||||
|
Loading…
Reference in New Issue
Block a user