Add stdout to indicate expiring runs operations
This commit adds 2 stdout messages to indicate to users that the expiration is actually happening. We're seeing the expire cron job on the infra db return 0 but the results are still in the db. This is an attempt to provide some indication that things are actually running. Change-Id: I1278960110ff75a8e7e3df1572e9855a0c40e405
This commit is contained in:
parent
b2381a261c
commit
5dfe96b620
@ -106,8 +106,10 @@ def validate_head_file(config):
|
||||
def expire_old(config, cmd):
|
||||
expire_age = int(CONF.command.expire_age)
|
||||
if not CONF.command.no_runs:
|
||||
print('Expiring old runs.')
|
||||
db_api.delete_old_runs(expire_age)
|
||||
if not CONF.command.no_test_runs:
|
||||
print('Expiring old test_runs')
|
||||
db_api.delete_old_test_runs(expire_age)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user