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

update task schedler to use the new task control service #12949

Merged
merged 13 commits into from
Mar 28, 2019

Conversation

lyondhill
Copy link
Contributor

Closes #12725

@lyondhill lyondhill force-pushed the task/scheduler-control-service branch from c19d393 to b65d57d Compare March 27, 2019 22:11
@lyondhill lyondhill force-pushed the task/scheduler-control-service branch from b65d57d to 9272175 Compare March 28, 2019 01:53
Copy link
Contributor

@mark-rushakoff mark-rushakoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good overall. The couple things that need to change:

  • Call to FinishRun in the scheduler that was extracted to a defer needs to be undone.
  • There are a lot of new calls to time.Parse that discard the error. I didn't comment on them. They must check the error. What will happen to the system if a bad timestamp slips in there somehow?
  • There are some new and existing maps that have ID keys as strings; the code will be a little simpler and shorter by just using influxdb.ID as the keys without converting to/from strings.

task/mock/task_control_service.go Outdated Show resolved Hide resolved
task/mock/task_control_service.go Show resolved Hide resolved
task/mock/scheduler.go Outdated Show resolved Hide resolved
task/backend/task.go Outdated Show resolved Hide resolved
task/backend/task.go Outdated Show resolved Hide resolved
task/backend/scheduler.go Show resolved Hide resolved
task/backend/scheduler.go Show resolved Hide resolved
task/backend/scheduler_test.go Outdated Show resolved Hide resolved
task/backend/scheduler_test.go Outdated Show resolved Hide resolved
task/backend/scheduler_test.go Outdated Show resolved Hide resolved
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.

2 participants