Szymon Szyszkowski
08/26/2026, 10:25 AMwithLabel: ld_annotation {
cpus = 2
memory = { [8.GB, 24.GB, 48.GB][Math.min(task.attempt - 1, 2)] }
time = 60.m
maxRetries = 2
errorStrategy = { task.exitStatus in [137, 50002] ? 'retry' : 'terminate' }
}
The ld_annotation job is running over the google cloud batch and it sometimes needs retries to get a machine with bigger memory.
When that happens (retry kicks in) and later in the pipeline I encounter another failure on that branch, if I resume, the cache is invalid and the whole branch restarts from the ld_annotation yet again.
Is it something obvious that could explain the cache invalidation on retry? I have never stamped into this problem before, but can see a few folks have lately similar issues github.com/nextflow-io/nextflow/issues/6884 @Evangelos Karatzas FYIEvangelos Karatzas
08/26/2026, 10:27 AMSzymon Szyszkowski
08/26/2026, 12:43 PM.collect() on the set of outputs before it passed it to the next task, before I passed it to the next task resulting in barrier between the two. The suspicious thing was that the second task, was not starting at all before the first did not finish fully, when I removed the operator, cache works again with retriesEvangelos Karatzas
08/26/2026, 12:44 PMEvangelos Karatzas
08/26/2026, 12:44 PM