mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-08 16:02:30 +00:00
fix: improve handling of parallel flow branches of more than 30s
This commit is contained in:
+1
@@ -48,6 +48,7 @@
|
||||
"bash",
|
||||
"postgresql",
|
||||
"nativets",
|
||||
"Nativets",
|
||||
"bun",
|
||||
"mysql",
|
||||
"bigquery",
|
||||
|
||||
+1
@@ -69,6 +69,7 @@
|
||||
"bash",
|
||||
"postgresql",
|
||||
"nativets",
|
||||
"Nativets",
|
||||
"bun",
|
||||
"mysql",
|
||||
"bigquery",
|
||||
|
||||
+1
@@ -28,6 +28,7 @@
|
||||
"bash",
|
||||
"postgresql",
|
||||
"nativets",
|
||||
"Nativets",
|
||||
"bun",
|
||||
"mysql",
|
||||
"bigquery",
|
||||
|
||||
+1
@@ -42,6 +42,7 @@
|
||||
"bash",
|
||||
"postgresql",
|
||||
"nativets",
|
||||
"Nativets",
|
||||
"bun",
|
||||
"mysql",
|
||||
"bigquery",
|
||||
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "SELECT owner FROM workspace WHERE owner NOT LIKE '%@windmill.dev'",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
"ordinal": 0,
|
||||
"name": "owner",
|
||||
"type_info": "Varchar"
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"Left": []
|
||||
},
|
||||
"nullable": [
|
||||
false
|
||||
]
|
||||
},
|
||||
"hash": "2fa6e9c2cfc4f4ddbaa91793686feb9773b36993dd417019db51fa59fd4952c3"
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "SELECT email FROM password WHERE super_admin IS true AND email NOT LIKE '%@windmill.dev'",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
"ordinal": 0,
|
||||
"name": "email",
|
||||
"type_info": "Varchar"
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"Left": []
|
||||
},
|
||||
"nullable": [
|
||||
false
|
||||
]
|
||||
},
|
||||
"hash": "3dd6ba886b214274d9453667e3732421251c3a0d84b0909206447a3927bad8b3"
|
||||
}
|
||||
+1
@@ -62,6 +62,7 @@
|
||||
"bash",
|
||||
"postgresql",
|
||||
"nativets",
|
||||
"Nativets",
|
||||
"bun",
|
||||
"mysql",
|
||||
"bigquery",
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
"columns": [
|
||||
{
|
||||
"ordinal": 0,
|
||||
"name": "bool",
|
||||
"name": "?column?",
|
||||
"type_info": "Bool"
|
||||
}
|
||||
],
|
||||
|
||||
+1
@@ -37,6 +37,7 @@
|
||||
"bash",
|
||||
"postgresql",
|
||||
"nativets",
|
||||
"Nativets",
|
||||
"bun",
|
||||
"mysql",
|
||||
"bigquery",
|
||||
|
||||
+1
@@ -42,6 +42,7 @@
|
||||
"bash",
|
||||
"postgresql",
|
||||
"nativets",
|
||||
"Nativets",
|
||||
"bun",
|
||||
"mysql",
|
||||
"bigquery",
|
||||
|
||||
+1
@@ -42,6 +42,7 @@
|
||||
"bash",
|
||||
"postgresql",
|
||||
"nativets",
|
||||
"Nativets",
|
||||
"bun",
|
||||
"mysql",
|
||||
"bigquery",
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "UPDATE queue\n SET last_ping = null\n WHERE id = $1",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": [
|
||||
"Uuid"
|
||||
]
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "d0df57fc4cd0be7b541dee081ffbe86b869b01ca1ab10aa17634bb6dae879f12"
|
||||
}
|
||||
+1
@@ -42,6 +42,7 @@
|
||||
"bash",
|
||||
"postgresql",
|
||||
"nativets",
|
||||
"Nativets",
|
||||
"bun",
|
||||
"mysql",
|
||||
"bigquery",
|
||||
|
||||
@@ -904,7 +904,7 @@ async fn handle_zombie_flows(
|
||||
);
|
||||
let (mut ntx, _) = cancel_job(
|
||||
"monitor",
|
||||
Some("Flow cancelled as it was hanging in between 2 steps".to_string()),
|
||||
Some(format!("Flow {} cancelled as it was hanging in between 2 steps", flow.id)),
|
||||
flow.id,
|
||||
flow.workspace_id.as_str(),
|
||||
tx,
|
||||
|
||||
@@ -374,6 +374,14 @@ pub async fn update_flow_status_after_job_completion_internal<
|
||||
.execute(&mut tx)
|
||||
.await?;
|
||||
}
|
||||
|
||||
sqlx::query!(
|
||||
"UPDATE queue
|
||||
SET last_ping = null
|
||||
WHERE id = $1",
|
||||
flow
|
||||
).execute(&mut tx).await?;
|
||||
|
||||
tx.commit().await?;
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
</Alert>
|
||||
{/if}
|
||||
|
||||
{#if kind == 'script'}
|
||||
{#if kind == 'script' && !noEditor}
|
||||
<div class="mt-2" />
|
||||
<Alert title="Action Scripts" role="info">
|
||||
An action script is simply a script that is neither a trigger nor an approval script. Those
|
||||
@@ -109,6 +109,8 @@
|
||||
{/if}
|
||||
|
||||
{#if kind == 'approval'}
|
||||
{#if !noEditor}
|
||||
|
||||
<div class="mt-2" />
|
||||
<Alert title="Approval/Prompt Step" role="info">
|
||||
An approval/prompt step will suspend the execution of a flow until it has been approved
|
||||
@@ -127,6 +129,14 @@
|
||||
<SuspendDrawer text="Approval/Step prompt helpers" />
|
||||
</div>
|
||||
</Alert>
|
||||
{:else}
|
||||
<a
|
||||
href="https://www.windmill.dev/docs/flows/flow_approval"
|
||||
target="_blank"
|
||||
class="text-blue-500">Approval/Prompt Steps Documentation</a
|
||||
>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
<h3 class="pb-2 pt-4">
|
||||
Inline new <span class="text-blue-500">{kind == 'script' ? 'action' : kind}</span> script
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
on:click={() => dispatch('select', mod.id)}
|
||||
id={mod.id}
|
||||
{...itemProps}
|
||||
label={mod.summary || 'Run all branches'}
|
||||
label={mod.summary || `Run all branches${ mod.value.parallel ? ' (parallel)' : ''}`}
|
||||
{bgColor}
|
||||
>
|
||||
<div slot="icon">
|
||||
|
||||
Reference in New Issue
Block a user