diff --git a/worker/manager/src/mirrors_qa_manager/worker.py b/worker/manager/src/mirrors_qa_manager/worker.py index 873f4fc..5dbc22e 100644 --- a/worker/manager/src/mirrors_qa_manager/worker.py +++ b/worker/manager/src/mirrors_qa_manager/worker.py @@ -199,7 +199,7 @@ def query_api( if self.auth_credentials is None: self.auth_credentials = authenticate(self.private_key, self.worker_id) - if self.auth_credentials.expires_in > datetime.datetime.now(): + if self.auth_credentials.expires_in < datetime.datetime.now(): self.auth_credentials = authenticate(self.private_key, self.worker_id) req_headers = {