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

KS-205: add workflow name to spec #13265

Merged
merged 11 commits into from
May 23, 2024
Merged

KS-205: add workflow name to spec #13265

merged 11 commits into from
May 23, 2024

Conversation

krehermann
Copy link
Contributor

Adds WorkflowName to the spec

This in turn is used on the node to ensure that (owner, name) are unique, which is important for job management.

Copy link
Contributor

@bolekk bolekk left a comment

Choose a reason for hiding this comment

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

Do you want to clean up commented out code?

Also several tests are failing.

core/services/job/orm.go Outdated Show resolved Hide resolved
ettec
ettec previously approved these changes May 21, 2024
@ettec ettec dismissed their stale review May 21, 2024 11:59

Question raised on design

bolekk
bolekk previously approved these changes May 21, 2024
@@ -78,6 +78,8 @@ type ORM interface {

DataSource() sqlutil.DataSource
WithDataSource(source sqlutil.DataSource) ORM

FindJobIDByWorkflow(ctx context.Context, spec WorkflowSpec) (int32, error)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: a fully-descriptive name would be FindJobByWorkflowNameAndOwner but it's annoyingly long.

@krehermann krehermann requested a review from ettec May 21, 2024 20:52
@bolekk bolekk enabled auto-merge May 22, 2024 02:12
bolekk
bolekk previously approved these changes May 22, 2024
@bolekk bolekk added this pull request to the merge queue May 23, 2024
Merged via the queue into develop with commit 5db47b6 May 23, 2024
107 checks passed
@bolekk bolekk deleted the ks-205/workflow-name branch May 23, 2024 05:39
cedric-cordenier pushed a commit that referenced this pull request May 29, 2024
* KS-205: add workflow name to spec

* fix test

* fix sql and test

* fix tests

* remove empty wf owner,name check

* fix bad merge of main

* rename migration

---------

Co-authored-by: Bolek <[email protected]>
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.

4 participants