Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

received messages remain in queue #240

Open
Wouter1 opened this issue Jan 14, 2021 · 3 comments
Open

received messages remain in queue #240

Wouter1 opened this issue Jan 14, 2021 · 3 comments
Labels
bug Something isn't working core Work related to the core functionality

Comments

@Wouter1
Copy link

Wouter1 commented Jan 14, 2021

Describe the bug
If A sends a message to all (no to_id specified) then A also receives that message himself.
That's fine
But the message STAYS in the self.received_messages queue.
Messages from other agents are apparently removed after each tick.
This seems inconsistent

To Reproduce
in agent A:
msg=Message(content('Hello', from_id='me')
self.send_message(msg)

Expected behavior
A receives msg once

Actual behavior
msg stays in the self.received_messages list

@Wouter1 Wouter1 added the bug Something isn't working label Jan 14, 2021
@Wouter1
Copy link
Author

Wouter1 commented Jan 14, 2021

BTW a simple workaround is to call in the agent
self.received_messages=[]

after having them processed.

@jwaa
Copy link
Member

jwaa commented Jan 14, 2021

Thank you @Wouter1 for reporting. This is indeed unintended behaviour and we will plan the issue for an upcoming hotfix.

Good to see you have found a workaround.

@jwaa
Copy link
Member

jwaa commented Jan 14, 2021

I added it to the list in #112, for it to be atleast included in the message system redesign. I keep this issue open for to allow it get priority over that redesign if need be.

@jwaa jwaa added the core Work related to the core functionality label Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core Work related to the core functionality
Projects
None yet
Development

No branches or pull requests

2 participants