-
Notifications
You must be signed in to change notification settings - Fork 496
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
draft: Migration/queue params draft #4625
base: main
Are you sure you want to change the base?
Conversation
…on first git clone
…le-checked. some types "masking" and a better alternative to some 'select * from queue'
…tion/queue-params
…indmill into migration/queue-params
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA 0 out of 2 committers have signed the CLA. |
Deploying windmill with Cloudflare Pages
|
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.
👍 Looks good to me! Reviewed everything up to b031e2f in 35 seconds
More details
- Looked at
1615
lines of code in17
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. frontend/.gitignore:13
- Draft comment:
Ensure that the negation rule for 'build/.gitkeep' aligns with the intended behavior for the 'build' directory. If the directory should be ignored, consider removing this line. - Reason this comment was not posted:
Confidence changes required:50%
The .gitignore file in the frontend directory is well-structured, but there's a minor issue with the negation rule for 'build/.gitkeep'. This rule will include the '.gitkeep' file in the 'build' directory, which is typically used to ensure the directory is tracked by Git even if it's empty. However, if the intention is to ignore the entire 'build' directory, this rule should be reviewed.
2. backend/windmill-worker/src/worker_flow.rs:1283
- Draft comment:
The error message infetch_one_with_fallback!
macro usage mentionsjob_params
even when the fallback table is different. Consider making the error message dynamic to reflect the actual tables being queried. - Reason this comment was not posted:
Confidence changes required:50%
In theworker_flow.rs
file, there are multiple instances where thefetch_one_with_fallback!
macro is used. This macro is designed to fetch data from a primary source and fall back to a secondary source if the primary source does not have the data. However, the error message in the macro usage is hardcoded to mentionjob_params
even when the fallback table is different. This could lead to confusion during debugging.
3. backend/windmill-worker/src/worker_flow.rs:74
- Draft comment:
The error message inget_args_from_job_id
does not specify which table was being queried. Consider including the table name in the error message for better debugging. - Reason this comment was not posted:
Confidence changes required:50%
In theworker_flow.rs
file, theget_args_from_job_id
function uses thefetch_one_with_fallback!
macro to retrieve arguments from eitherjob_args
orqueue
. The error message in case of failure is generic and does not specify which table was being queried. This could be improved for better debugging.
Workflow ID: wflow_SWiPtEJmWDn0BFiH
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
This pull request adds new database tables for job parameters, enhances query handling with macros, and refactors flow and job management in the backend.
job_params
,job_args
, andcompleted_jobs_result
tables in migration scripts.Cargo.lock
to includeconst_format
dependency.fetch_one_with_fallback
,fetch_optional_with_fallback
, andquery_scalar_with_fallback
inmacros.rs
for query fallbacks.get_args_from_job_id
inworker_flow.rs
to usefetch_one_with_fallback
.update_flow_status_after_job_completion_internal
inworker_flow.rs
to handle new job parameter tables.push_next_flow_job
inworker_flow.rs
to manage job args and params.cancel_job
injobs.rs
to updatecompleted_jobs_result
table.QueuedJobLite
struct inresources.rs
for lightweight job queries..gitignore
infrontend
to include!build/.gitkeep
.This description was created by for b031e2f. It will automatically update as commits are pushed.