Skip to content

Commit

Permalink
Merge pull request pulp#3037 from ehelms/fixes-2776
Browse files Browse the repository at this point in the history
Fixes pulp#2776: Don't check for active works in dry-run
  • Loading branch information
werwty committed May 30, 2017
2 parents 7100607 + 4bde91e commit b9fa19d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/pulp/server/db/manage.py
Expand Up @@ -196,8 +196,11 @@ def main():
options = parse_args()
_start_logging()
connection.initialize(max_timeout=1)
active_workers = None

if not options.dry_run:
active_workers = status.get_workers()

active_workers = status.get_workers()
if active_workers:
last_worker_time = max([worker['last_heartbeat'] for worker in active_workers])
time_from_last = UTCDateTimeField().to_python(datetime.utcnow()) - last_worker_time
Expand Down

0 comments on commit b9fa19d

Please sign in to comment.