From 5dfe96b620c7cd77a2e9a16f94a77323a019af17 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 27 Jan 2016 11:24:54 -0500 Subject: [PATCH] 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 --- subunit2sql/migrations/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subunit2sql/migrations/cli.py b/subunit2sql/migrations/cli.py index 2289efa..5c43b7a 100644 --- a/subunit2sql/migrations/cli.py +++ b/subunit2sql/migrations/cli.py @@ -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)