Skip to content

[DF] Allow users to early-quit the event loop on a user-defined condition #15069

Open
@martamaja10

Description

@martamaja10

Feature description

Moving the issue from JIRA: ROOT-9372

Currently, the only way to early-quit an event loop is to use Range transformations: when all ranges in all branches of an RDF graph have reached their end, the event loop is stopped.
It would be useful to add an Until transformation that takes a condition evaluated at each event (in the form of a callable that potentially takes columns as arguments), and interrupts processing as soon as the condition is verified. Two {{Until}}s in different chains (different branches of the computation graph) will interrupt processing of their downstream actions, and will interrupt the event loop when they have all "fired".
This behavior is analogous to what Range already does, although with a more limited choice of stopping condition, so most of the internal infrastructure required is already in place.

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions