Skip to content

Commit

Permalink
fix: fix DAQJobRemote msgspec deseralization
Browse files Browse the repository at this point in the history
  • Loading branch information
furkan-bilgin committed Nov 7, 2024
1 parent 363107b commit 5ed71c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daq/jobs/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _unpack_message(self, message: bytes) -> DAQJobMessage:
raise Exception(f"Invalid message type: {message_type}")
message_class = self._message_class_cache[message_type]

res = message_class(**data)
res = msgspec.convert(data, type=message_class)

if res.id is None:
raise Exception("Message id is not set")
Expand Down

0 comments on commit 5ed71c8

Please sign in to comment.