Skip to content

Commit

Permalink
Merge branch '2.13-dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
werwty committed May 30, 2017
2 parents 302ae96 + b9fa19d commit 07f33e9
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 07f33e9

Please sign in to comment.