mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-27 00:02:35 +00:00
added tag field, needed for postgres RLS
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- Add down migration script here
|
||||
ALTER TABLE job_params DROP COLUMN tag;
|
||||
@@ -0,0 +1,2 @@
|
||||
-- Add up migration script here
|
||||
ALTER TABLE job_params ADD COLUMN tag VARCHAR(50);
|
||||
@@ -3944,7 +3944,7 @@ pub async fn push<'c, 'd, R: rsmq_async::RsmqConnection + Send + 'c>(
|
||||
email,
|
||||
visible_to_owner,
|
||||
root_job,
|
||||
tag,
|
||||
tag.clone(),
|
||||
concurrent_limit,
|
||||
if concurrent_limit.is_some() { concurrency_time_window_s } else { None },
|
||||
custom_timeout,
|
||||
@@ -3959,13 +3959,14 @@ pub async fn push<'c, 'd, R: rsmq_async::RsmqConnection + Send + 'c>(
|
||||
// insert into args queue
|
||||
sqlx::query!(
|
||||
r#"
|
||||
INSERT INTO job_params (id, args, raw_code, raw_flow)
|
||||
VALUES ($1, $2, $3, $4)
|
||||
INSERT INTO job_params (id, args, raw_code, raw_flow, tag)
|
||||
VALUES ($1, $2, $3, $4, $5)
|
||||
"#,
|
||||
uuid,
|
||||
args as Json<PushArgs>,
|
||||
raw_code,
|
||||
raw_flow as Option<Json<FlowValue>>
|
||||
raw_flow as Option<Json<FlowValue>>,
|
||||
tag
|
||||
)
|
||||
.execute(&mut tx)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user