nemo_curator.tasks.sentinels
nemo_curator.tasks.sentinels
Payload-less marker tasks.
EmptyTask seeds a pipeline (the implicit root id "0"). The resumability
layer adds two more markers on the same :class:SentinelTask base:
NoneTask— this slot was intentionally filtered. The resumability counter treats it as a consumed branch (decrements). The adapter auto-wraps a returnedNoneas aNoneTask.FailedTask— this slot failed and should be retried on resume. The counter is NOT decremented, so its source stays pending and reruns.
All carry no payload (data is None) and get their task_id assigned by
the executor adapter; sentinels are stripped before the next stage. Construct
with EmptyTask() / NoneTask() / FailedTask().
Module Contents
Classes
API
Bases: SentinelTask
Seeds a pipeline with task_id="0" — the implicit root every task
descends from (so all ids share the "0" prefix).
Bases: SentinelTask
Marks a slot as failed → retried on resume (counter does NOT decrement).
Bases: SentinelTask
Marks a slot as intentionally filtered (resumability counter decrements).
Bases: Task[None]
Base for payload-less marker tasks: no data, framework-assigned task_id.