-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Edit: Looks like there's a race condition where Client.outstanding is updated with a message id after the reply has already been received and processed, probalby here and here. See second comment below...
I was trying to purge_everything but got a RuntimeError: Can't purge outstanding tasks: ....
Here's an investigation of the offending task:
print(cli.outstanding)
print('6bee8602-ca584ac7aa23ca16738f43a0' in cli.history, '6bee8602-ca584ac7aa23ca16738f43a0' in cli.results)
print(cli.result_status('6bee8602-ca584ac7aa23ca16738f43a0'))
print(cli.get_result('6bee8602-ca584ac7aa23ca16738f43a0'))
print(cli.db_query({"msg_id":'6bee8602-ca584ac7aa23ca16738f43a0'}))
produces:
{'6bee8602-ca584ac7aa23ca16738f43a0'}
True False
{'pending': [], 'status': 'ok', 'completed': ['6bee8602-ca584ac7aa23ca16738f43a0']}
<AsyncHubResult: unknown>
[]
I'm happy to attempt more detailed debug info if someone can provide suggestions on how to do it.
Metadata
Metadata
Assignees
Labels
No labels