mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-23 08:00:45 +00:00
fix: only cache flow if it's a success
This commit is contained in:
@@ -638,7 +638,7 @@ pub async fn update_flow_status_after_job_completion_internal<
|
||||
)
|
||||
.await?;
|
||||
} else {
|
||||
if flow_job.cache_ttl.is_some() {
|
||||
if flow_job.cache_ttl.is_some() && success {
|
||||
let cached_res_path = {
|
||||
let args_hash =
|
||||
hash_args(db, client, w_id, job_id_for_status, &flow_job.args).await;
|
||||
|
||||
@@ -98,11 +98,11 @@
|
||||
>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="w-full {clazz} {flexWrap ? 'flex flex-row flex-wrap gap-x-6 gap-y-2' : ''}">
|
||||
<div class="w-full {clazz} {flexWrap ? 'flex flex-row flex-wrap gap-x-6 ' : ''}">
|
||||
{#if keys.length > 0}
|
||||
{#each keys as argName, i (argName)}
|
||||
{#if !schemaSkippedValues.includes(argName) && Object.keys(schema?.properties ?? {}).includes(argName)}
|
||||
<div>
|
||||
<div class={editableSchema ? 'pb-6' : ''}>
|
||||
{#if typeof args == 'object' && schema?.properties[argName]}
|
||||
{#if editableSchema}
|
||||
<ArgInput
|
||||
|
||||
Reference in New Issue
Block a user