-
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
feat(backend): move some static fields out of queue #4631
base: main
Are you sure you want to change the base?
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
748b308
to
8d13b78
Compare
7268cb0
to
730dbc2
Compare
db23339
to
12f7d6a
Compare
I have read the CLA Document and I hereby sign the CLA |
12f7d6a
to
f008baa
Compare
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 12f7d6a in 2 minutes and 15 seconds
More details
- Looked at
901
lines of code in10
files - Skipped
0
files when reviewing. - Skipped posting
6
drafted comments based on config settings.
1. backend/windmill-worker/src/worker_lockfiles.rs:204
- Draft comment:
Theis_some_and
method is not available in stable Rust. Consider usingmap
andunwrap_or
for better compatibility and readability. - Reason this comment was not posted:
Comment was on unchanged code.
2. backend/windmill-worker/src/worker_flow.rs:308
- Draft comment:
Theis_some_and
method is not available in stable Rust. Consider usingmap
andunwrap_or
for better compatibility and readability. - Reason this comment was not posted:
Marked as duplicate.
3. backend/windmill-worker/src/worker_flow.rs:937
- Draft comment:
Theis_some_and
method is not available in stable Rust. Consider usingmap
andunwrap_or
for better compatibility and readability. - Reason this comment was not posted:
Marked as duplicate.
4. backend/windmill-worker/src/worker_flow.rs:981
- Draft comment:
Theis_some_and
method is not available in stable Rust. Consider usingmap
andunwrap_or
for better compatibility and readability. - Reason this comment was not posted:
Marked as duplicate.
5. backend/windmill-worker/src/worker_flow.rs:1049
- Draft comment:
Theis_some_and
method is not available in stable Rust. Consider usingmap
andunwrap_or
for better compatibility and readability. - Reason this comment was not posted:
Marked as duplicate.
6. backend/windmill-worker/src/worker_flow.rs:1114
- Draft comment:
Theis_some_and
method is not available in stable Rust. Consider usingmap
andunwrap_or
for better compatibility and readability. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_9L6CEztEYwwCZe5A
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
f008baa
to
8fe8d67
Compare
4decc53
to
6ef7f61
Compare
6ef7f61
to
5e219fa
Compare
e14c4dd
to
0d90a0e
Compare
This commit move `raw_*` fields from the `queue` table to a new `job_definition` table. For backward compatibility, they are left unchanged in the queue table, hence all parameters fetch use `coalesce` or a fallback to the `queue` table. As such, all previously pushed jobs (before migration) will work as intended.
0d90a0e
to
a3e9c5d
Compare
This commit move
raw_*
fields from thequeue
table to a newjob_definition
table. For backward compatibility, they are leftunchanged in the queue table, hence all parameters fetch use
coalesce
or a fallback to the
queue
table. As such, all previously pushed jobs(before migration) will work as intended.
Important
This PR introduces a
job_params
table to storeraw_code
andraw_flow
separately, optimizing database operations and updating related code to use this new structure.job_params
table in20241004112544_create_params_args_result_tables.up.sql
to storeraw_code
andraw_flow
.20241004112544_create_params_args_result_tables.down.sql
to dropjob_params
table.QueuedJobEx
struct injobs.rs
to extendQueuedJob
withraw_code
andraw_flow
.get_queued_job
withget_queued_job_ex
injobs.rs
and other files to fetch extended job data.handle_dependency_job
andhandle_flow_dependency_job
inworker_lockfiles.rs
to usejob_params
forraw_code
andraw_flow
.jobs.rs
andworker_flow.rs
to joinjob_params
withqueue
for fetchingraw_code
andraw_flow
.generate_get_job_query
injobs.rs
to includejob_params
fields.raw_code
andraw_flow
fromQueuedJob
struct injobs.rs
.handle_code_execution_job
inworker.rs
to usejob_params
forraw_code
.This description was created by for 12f7d6a. It will automatically update as commits are pushed.