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

MessageBroker tests are flaky #463

Open
4 tasks
mauroservienti opened this issue Feb 12, 2021 · 3 comments
Open
4 tasks

MessageBroker tests are flaky #463

mauroservienti opened this issue Feb 12, 2021 · 3 comments
Assignees
Labels

Comments

@mauroservienti
Copy link
Member

mauroservienti commented Feb 12, 2021

The multi threading one(s) regularly hang and the build times out. The whole task/thread based implementation of the broker should probably be reviewed.

@workgroupengineering
Copy link

from the test I made, to solve this issue, you need to add TaskCreationOptions.LongRunning to the following lines:

factory.StartNew(() =>
{
sub.Invoke(sender, message);
});

tasks.Add(factory.StartNew(() =>
{
sub.Invoke(sender, message);
}));

@mauroservienti
Copy link
Member Author

Thanks @workgroupengineering, I raised #479.

@mauroservienti mauroservienti self-assigned this Mar 22, 2021
@workgroupengineering
Copy link

Thanks to you, I learned a lot by studying your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants