Skip to content

Commit 6c6abdb

Browse files
committed
Add task outcome and outcome exception.
1 parent c04ef7a commit 6c6abdb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/_pytask/outcomes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class TaskOutcome(Enum):
103103
SKIP = auto()
104104
SKIP_PREVIOUS_FAILED = auto()
105105
FAIL = auto()
106+
WOULD_BE_EXECUTED = auto()
106107

107108
@property
108109
def symbol(self) -> str:
@@ -218,6 +219,10 @@ class Persisted(PytaskOutcome):
218219
"""Outcome if task should persist."""
219220

220221

222+
class WouldBeExecuted(PytaskOutcome):
223+
"""Outcome if a task would be executed."""
224+
225+
221226
class Exit(Exception):
222227
"""Raised for immediate program exits (no tracebacks/summaries)."""
223228

0 commit comments

Comments
 (0)