improve job cancelling with new flow jobs locks

This commit is contained in:
Ruben Fiszel
2025-09-20 11:00:45 +00:00
parent 9a21107848
commit 1afb7a2156
9 changed files with 45 additions and 77 deletions
@@ -6,7 +6,6 @@ import { charsToNumber, numberToChars } from './idUtils'
// Computes the next available id
export function nextId(flowState: FlowState, fullFlow: OpenFlow): string {
const allIds = dfs(fullFlow.value.modules, (fm) => fm.id)
console.log('allIds', allIds)
const max = allIds.concat(Object.keys(flowState)).reduce((acc, key) => {
if (key.length >= 4) {