mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 00:02:03 +00:00
ensuring results come-in order for testjobloader
This commit is contained in:
@@ -223,6 +223,7 @@
|
||||
export async function runComponent() {
|
||||
await executeComponent()
|
||||
}
|
||||
let lastStartedAt: number = Date.now()
|
||||
</script>
|
||||
|
||||
{#each Object.entries(fields ?? {}) as [key, v]}
|
||||
@@ -240,8 +241,12 @@
|
||||
workspaceOverride={workspace}
|
||||
on:done={() => {
|
||||
if (testJob && outputs) {
|
||||
outputs.result?.set(testJob?.result)
|
||||
result = testJob.result
|
||||
const startedAt = new Date(testJob.started_at).getTime()
|
||||
if (startedAt > lastStartedAt) {
|
||||
lastStartedAt = startedAt
|
||||
outputs.result?.set(testJob?.result)
|
||||
result = testJob.result
|
||||
}
|
||||
}
|
||||
}}
|
||||
bind:isLoading={testIsLoading}
|
||||
|
||||
Reference in New Issue
Block a user