Skip to content

Commit

Permalink
Try to remove the redis key if when scheduling build it already exists (
Browse files Browse the repository at this point in the history
  • Loading branch information
kleesc committed Jul 21, 2020
1 parent 7bdd945 commit fce130e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildman/manager/ephemeral.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,9 @@ async def schedule(self, build_job):
)
except KeyError:
logger.warning(
"Job: %s already exists in orchestrator, timeout may be misconfigured", build_uuid
"Job: %s already exists in orchestrator, timeout may be misconfigured. Removing key %s from Redis.", build_uuid, job_key
)
await self._orchestrator.delete_key(job_key)
return False, EPHEMERAL_API_TIMEOUT
except OrchestratorConnectionError:
logger.exception(
Expand Down

0 comments on commit fce130e

Please sign in to comment.