Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/nav/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
::: dotflow.core.config.Config
options:
members:
- path
- task_path
- log_path
- output
- storage
- notify
- log
- api
3 changes: 0 additions & 3 deletions docs/nav/reference/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@
- task_id
- workflow_id
- storage
- result_task
- result_context
- result_storage
1 change: 1 addition & 0 deletions docs/nav/reference/dotflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
- result_task
- result_context
- result_storage
- result
2 changes: 2 additions & 0 deletions docs/nav/reference/task-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
- count
- clear
- reverse
- schema
- result
5 changes: 3 additions & 2 deletions docs/nav/reference/task-instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
- _initial_context
- _current_context
- _duration
- _error
- _errors
- _status
- _config
- group_name
- group_name
- retry_count
1 change: 1 addition & 0 deletions docs/nav/reference/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
members:
- _callback_workflow
- sequential
- sequential_group
- background
- parallel
2 changes: 1 addition & 1 deletion dotflow/core/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def my_task():

retry_delay (int): Retry delay on task on_failure. Duration (in seconds)

backoff (int): Exponential backoff
backoff (bool): Exponential backoff. Doubles retry_delay after each attempt.

"""

Expand Down
2 changes: 1 addition & 1 deletion dotflow/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Config:
Args:
storage (Optional[Storage]): Type of the storage.
notify (Optional[Notify]): Type of the notify.
log (Optional[Log]): Type of the notify.
log (Optional[Log]): Type of the log.

Attributes:
storage (Optional[Storage]):
Expand Down
3 changes: 3 additions & 0 deletions dotflow/core/dotflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class DotFlow:
Args:
config (Optional[Config]): Configuration class.

workflow_id (Optional[str]): Fixed workflow identifier for checkpoint
resume. If not provided, a random UUID is generated.

Attributes:
workflow_id (UUID):

Expand Down
5 changes: 5 additions & 0 deletions dotflow/core/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ class Manager:

workflow_id (UUID): Workflow ID.

resume (bool):
If True, checks for existing checkpoints before executing each task.
Tasks with a checkpoint are skipped and their saved context is used.
Requires a persistent storage provider and a fixed workflow_id.

Attributes:
on_success (Callable):

Expand Down
Loading