results.x returns null in non trivial evals

This commit is contained in:
Ruben Fiszel
2023-11-09 23:36:04 +01:00
parent 33180795e7
commit e4a1759081
4 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ pub async fn copy_denogo_cache_from_bucket_as_tar(bucket: &str) {
}
tracing::info!(
"Fonished copying denogobun tar for from bucket as tar. took {}s",
"Finished copying denogobun tar for from bucket as tar. took {}s",
start.elapsed().as_secs()
);
+6 -2
View File
@@ -439,8 +439,12 @@ async fn op_get_id(
if let Some(client) = client {
let result = client
.get_result_by_id::<Option<Box<RawValue>>>(flow_job_id, node_id, None)
.await?;
Ok(result.map(|x| x.get().to_string()))
.await.ok();
if let Some(result) = result {
Ok(result.map(|x| x.get().to_string()))
} else {
Ok(None)
}
} else {
anyhow::bail!("No client found in op state");
}
@@ -584,7 +584,7 @@
</div>
{:else}
<div class="text-sm text-secondary flex flex-row gap-2">
No custom worker group defined on this instance.
No custom worker group tag defined on this instance in "Workers {"->"} Assignable Tags"
<a
href="https://www.windmill.dev/docs/core_concepts/worker_groups"
target="_blank"
@@ -352,7 +352,9 @@
</div>
{:else}
<div class="text-sm text-secondary italic mb-2">
No custom worker group defined on this instance. See <a
No custom worker group tag defined on this instance in "Workers {'->'} Assignable Tags".
See
<a
href="https://www.windmill.dev/docs/core_concepts/worker_groups"
target="_blank">documentation</a
>