-
Notifications
You must be signed in to change notification settings - Fork 147
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
Moves init schema to separate workflow + creates schema manager #3351
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3351 +/- ##
==========================================
+ Coverage 25.51% 25.59% +0.07%
==========================================
Files 401 409 +8
Lines 46905 47078 +173
==========================================
+ Hits 11970 12048 +78
- Misses 33772 33862 +90
- Partials 1163 1168 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Benchstat Geomean Results0.72% sec/op, -0.03% B/op, 0.00% allocs/op Benchstat results
|
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.
left one comment regarding workflow id for child
siWf := &schemainit_workflow.Workflow{} | ||
var wfResult schemainit_workflow.SchemaInitResponse | ||
err := workflow.ExecuteChildWorkflow(workflow.WithChildOptions(ctx, workflow.ChildWorkflowOptions{ | ||
WorkflowID: workflow_shared.BuildChildWorkflowId(jobRunId, "init-schema", workflow.Now(ctx)), |
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.
worth adding the destination id into the workflow id so that it is unique. yea we are using the time here but it might still cause dupes if it happens quick enough.
Creating the schema manager makes it easier to only update mysql to do incremental schema updates and let sqlserver and postgres stay the same