mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
working impl
This commit is contained in:
@@ -227,21 +227,6 @@ export const useOperationQueueStore = create<OperationQueueState>((set, get) =>
|
||||
return // No pending operations
|
||||
}
|
||||
|
||||
// Check workflow context
|
||||
if (nextOperation.workflowId !== currentWorkflowId) {
|
||||
logger.warn('Cancelling operation - workflow changed', {
|
||||
operationId: nextOperation.id,
|
||||
operationWorkflow: nextOperation.workflowId,
|
||||
currentWorkflow: currentWorkflowId,
|
||||
})
|
||||
set((state) => ({
|
||||
operations: state.operations.filter((op) => op.id !== nextOperation.id),
|
||||
}))
|
||||
// Try next operation
|
||||
get().processNextOperation()
|
||||
return
|
||||
}
|
||||
|
||||
// Mark as processing
|
||||
set((state) => ({
|
||||
operations: state.operations.map((op) =>
|
||||
|
||||
Reference in New Issue
Block a user