Skip to content

Commit

Permalink
Merge pull request #655 from takluyver/msg-id-pid
Browse files Browse the repository at this point in the history
Include process ID in message ID
  • Loading branch information
davidbrochart authored Jun 7, 2021
2 parents b39ac1f + 9ac65f9 commit 47cfe68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_client/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def clone(self) -> "Session":
def msg_id(self) -> str:
message_number = self.message_count
self.message_count += 1
return "{}_{}".format(self.session, message_number)
return f"{self.session}_{os.getpid()}_{message_number}"

def _check_packers(self) -> None:
"""check packers for datetime support."""
Expand Down

0 comments on commit 47cfe68

Please sign in to comment.