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

Separate logic for timer task execution and queue management #3039

Merged
merged 4 commits into from
Feb 12, 2020

Conversation

yycptt
Copy link
Contributor

@yycptt yycptt commented Feb 11, 2020

  • This is for deprecating the current taskProcessor, taskExecutor and taskInfo defined in history package and in favor of the task interface defined in common/task package.

  • Separating the logic for queue management and task processing make the code easier to read and understand.

  • Executor (and also task metric scope) will be assigned to a task when the task is created and sent for processing.

  • When implementing NDC task life cycle, we can consider combine the executor for active and standby processing into one executor and let the executor to decide if the task should be executed as active or passive. This can't be done without this refactoring.

  • Will send out separate PR for transfer and replication task

@yycptt yycptt requested review from yux0 and a team February 11, 2020 18:47
@coveralls
Copy link

coveralls commented Feb 11, 2020

Coverage Status

Coverage increased (+0.1%) to 67.422% when pulling d5e5aa9 on yycptt:task-executor into 2eeb017 on uber:master.

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

Successfully merging this pull request may close these issues.

3 participants