moor icon indicating copy to clipboard operation
moor copied to clipboard

Should tasks that throw exception always commit?

Open github-actions[bot] opened this issue 4 months ago • 0 comments

Right now to preserve MOO semantics, we do.

We may revisit this later and add a user-selectable mode for this, and

evaluate this behaviour generally.

https://github.com/rdaum/moor/blob/47435a1442a1f5532c23944029e90982baa99bff/crates/kernel/src/tasks/task.rs#L450


                // conform with MOO's expectations.
                // However a conflict-retry here is maybe not the best idea here, I think.
                // So we'll just panic the task (abort) if we can't commit for now.
                // TODO: Should tasks that throw exception always commit?
                //   Right now to preserve MOO semantics, we do.
                //   We may revisit this later and add a user-selectable mode for this, and
                //   evaluate this behaviour generally.

github-actions[bot] avatar Feb 10 '24 01:02 github-actions[bot]