-
Notifications
You must be signed in to change notification settings - Fork 105
Return backfill.Task
from Start
phase operations
#924
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
Conversation
14e56bb
to
a65b6e0
Compare
a65b6e0
to
351f414
Compare
351f414
to
5e22a83
Compare
5e22a83
to
6423c1b
Compare
6423c1b
to
d1f72a8
Compare
backfill.Task
from operationsbackfill.Task
from Start
phase operations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments and a question about how this relates to the DBAction
refactoring.
AIUI, the DBAction
refactoring was going to make the operation Start
methods return []DBAction
which would then be merged/reordered/combined by a new orchestrator component. This component could also include combining triggers that are intended to act on the same table.
With this PR, we make operation Start
methods return backfill jobs, which will allow us to combine backfill triggers, but what happens to the idea to return []DBAction
from Start
? It seems like returning []DBAction
would allow us to solve a greater class of problems, including the one addressed by this PR.
How do you see the changes here fitting in with the broader plan to return []DBAction
from operation Start
methods?
Merging this branch will increase overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the suggested changes 👍
Just to understand the future direction, Is the plan now to make Start
return []DBAction
in addition to backfill.Task
?
Yes. However, I am unhappy with returning 3 things, so I will try to find a way to decrease this number. |
From now on
Start
functions of each operations return abackfill.Task
instance. This struct contains information required by the backfill process. The tasks are collected in a singlebackfill.Job
.This aggregates all relevant information for the backfill process: list of tables to backfill and all the triggers to load.