-
Notifications
You must be signed in to change notification settings - Fork 248
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
[batch] Add ability to create job groups at top level #14170
Conversation
Other to-do items are to make sure the stack has tests for authorization for all new endpoints in |
I will look but I suspect I have to look at everything to have the right context. |
auth/deployment.yaml
Outdated
@@ -45,11 +45,6 @@ spec: | |||
value: "{{ default_ns.name }}" |
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.
For some reason GitHub shows this file. I think if you merge/rebase with main it will go away.
70e4d7f
to
823da60
Compare
I thought about this some more. I think the correct solution is to have two values for
|
Actually, I have a feeling this bulk update will lock the entire table for 30 mins to an hour since there's no use of a where condition. |
Can we close this PR now? |
Since this is merely propagating existing bad behavior, let's change it separately so as to keep the conceptual overhead of this change as small as possible. Please make an issue and paste the link into each comment so that we can later track how we resolved each comment.
When you say "billing and cancellation [is] nested" do you mean that the bill for a group is the sum of the bill for all jobs directly in the group with all jobs in any descendent group? Since we decided that groups are nested, my inclination is for everything to represent a sum total over the direct jobs and jobs within any descendant groups. From here on out "sum total" means exactly that. OK, so:
|
When do we want n_direct_jobs? |
Yes
Ended up with this design in #14282
Not sure. If we need it later on, we can run a separate migration. |
Closing in favor of #14282 |
Dan, Can you look at the last commit only? The stack is kind of broken right now. Note, it is not possible yet to create jobs within the new job groups.
The only non-straightforward part of how this turned out is the
batch_updates
table copies the previousstart_job_id
andstart_job_group_id
withn_jobs = 0
orn_job_groups = 0
if there are none in that update. I think it's fine to do this, but I did need to remove a unique constraint on(batch_id, start_job_id)
. I tried to find any instances where we use that index, but couldn't find any. We'll want to double check that.