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

Using BlockingCollection instead of busy loop in RunWorkFlows() #32

Closed
qazq opened this issue May 18, 2017 · 2 comments
Closed

Using BlockingCollection instead of busy loop in RunWorkFlows() #32

qazq opened this issue May 18, 2017 · 2 comments

Comments

@qazq
Copy link

qazq commented May 18, 2017

I have a question about RunWorkflows() in WorkflowThread.

In the worse case, a new workflow will be started after 500 milliseconds. Is it possible to use BlockingCollection(or other similar methods) to blocking each thread until getting a new workflow ID?

@danielgerlag
Copy link
Owner

That would depend on the implementation of the QueueProvider... you could for example do that with the in memory queue provider for single node instances... but external queue providers may not support that.
Also, you need a way to gracefully shutdown the thread pool.
Is there a specific issue you are running into because of how it is currently implemented?

@qazq
Copy link
Author

qazq commented May 22, 2017

Hi @danielgerlag , thanks for your swift reply. There is no specific issue I am running into. I would like to let my task start immediately when I adding a new one. I can implement it in memory query. Thanks a lot.

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

No branches or pull requests

2 participants