bunqueue v2.6.75
removeDependencyOnFailure, ignoreDependencyOnFailure, continueParentOnFailure, job.getFailedChildrenValues() and more.
removeDependencyOnFailure
Section titled “removeDependencyOnFailure”When a child job terminally fails with this option set, it is silently removed from the parent’s pending dependencies. If it was the last pending child, the parent is promoted to the waiting queue and processed normally.
ignoreDependencyOnFailure
Section titled “ignoreDependencyOnFailure”Same as removeDependencyOnFailure but also stores the failure reason so the parent worker can retrieve it via job.getIgnoredChildrenFailures().
continueParentOnFailure
Section titled “continueParentOnFailure”When a child job with this option fails, the parent is immediately promoted to the waiting queue (even if other children are still pending). The parent worker can then call job.getFailedChildrenValues() to inspect which children failed and why, and job.removeUnprocessedChildren() to cancel remaining unstarted children.
job.getFailedChildrenValues()
Section titled “job.getFailedChildrenValues()”Returns Record<string, string> mapping child keys ("queue:jobId") to their error messages. Populated by continueParentOnFailure child failures.
job.getIgnoredChildrenFailures()
Section titled “job.getIgnoredChildrenFailures()”Returns Record<string, string> of failure reasons for children that failed with ignoreDependencyOnFailure.
job.removeChildDependency()
Section titled “job.removeChildDependency()”Removes a child job’s pending dependency from its parent. If this was the last pending child, the parent is promoted to the queue. Throws if the job has no parent.
job.removeUnprocessedChildren()
Section titled “job.removeUnprocessedChildren()”Cancels all unprocessed (waiting/delayed) children of a parent job. Active, completed, and failed children are unaffected.
More additions
Section titled “More additions”- TCP commands for new methods:
GetFailedChildrenValues,GetIgnoredChildrenFailures,RemoveChildDependency,RemoveUnprocessedChildren. - All four new options are fully propagated through
FlowProducer.add(),FlowProducer.addBulk(), and the TCPPUSHcommand.