Skip to content

Commit

Permalink
fixup! squash! Support multi-nodes with lock on jobrunner
Browse files Browse the repository at this point in the history
  • Loading branch information
guewen committed Oct 1, 2020
1 parent bbbdfc5 commit 5043c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue_job/jobrunner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def keep_alive_shared_lock(self):
self.shared_lock_db.keep_alive()

def _lock_ident(self):
return "-".join(sorted(self.list_db_names))
return "qj:{}".format("-".join(sorted(self.list_db_names)))

def stop(self):
_logger.info("graceful stop requested")
Expand Down

0 comments on commit 5043c49

Please sign in to comment.