(
run: AutonomyRunRecord,
params: {
trigger: AutonomyTriggerKind
sourceId: string
ownerKey?: string
},
)
| 332 | } |
| 333 | |
| 334 | function matchesActiveAutonomyRunSource( |
| 335 | run: AutonomyRunRecord, |
| 336 | params: { |
| 337 | trigger: AutonomyTriggerKind |
| 338 | sourceId: string |
| 339 | ownerKey?: string |
| 340 | }, |
| 341 | ): boolean { |
| 342 | return ( |
| 343 | run.trigger === params.trigger && |
| 344 | run.sourceId === params.sourceId && |
| 345 | (params.ownerKey === undefined || run.ownerKey === params.ownerKey) && |
| 346 | isActiveAutonomyRunStatus(run.status) |
| 347 | ) |
| 348 | } |
| 349 | |
| 350 | export async function hasActiveAutonomyRunForSource(params: { |
| 351 | trigger: AutonomyTriggerKind |
no test coverage detected