Skip to content

runnable pollers splitting #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivanfioravanti
Copy link

Describe the change
Split the class RunnablePoller into 3 classes:
WorkflowRunnablePoller, EventRunnablePoller, CommandRunnablePoller

Why this change ?
In order to optimize the system, we need to poll only the commands every 10 seconds.
The workflow and the events are polled only once at the service startup.

Describe your implementation or design

The class RunnablePoller is split into 3 classes : WorkflowRunnablePoller, EventRunnablePoller, CommandRunnablePoller
The interval for each of those pollers can now be configured independently via 3 options: PollWorkflowsInterval, PollEventsInterval, PollCommandsInterval. The option PollInterval does not exist anymore.
Tests
No

Breaking change
Yes

the option PollInterval has been replaced by PollWorkflowsInterval, PollEventsInterval and PollCommandsInterval
the extension method UsePollInterval has been replaced by UsePollWorkflowsInterval, UsePollEventsInterval, and UsePollCommandsInterval

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

Successfully merging this pull request may close these issues.

1 participant