workly 0.4.3__tar.gz → 0.4.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {workly-0.4.3 → workly-0.4.5}/PKG-INFO +1 -1
- {workly-0.4.3 → workly-0.4.5}/pyproject.toml +1 -1
- {workly-0.4.3 → workly-0.4.5}/pyproject.toml.orig +1 -1
- {workly-0.4.3 → workly-0.4.5}/src/workly/_models.py +12 -0
- {workly-0.4.3 → workly-0.4.5}/LICENSE +0 -0
- {workly-0.4.3 → workly-0.4.5}/README.md +0 -0
- {workly-0.4.3 → workly-0.4.5}/src/workly/__init__.py +0 -0
- {workly-0.4.3 → workly-0.4.5}/src/workly/_async_client.py +0 -0
- {workly-0.4.3 → workly-0.4.5}/src/workly/_client.py +0 -0
- {workly-0.4.3 → workly-0.4.5}/src/workly/_errors.py +0 -0
- {workly-0.4.3 → workly-0.4.5}/src/workly/_requests.py +0 -0
- {workly-0.4.3 → workly-0.4.5}/src/workly/_signing.py +0 -0
- {workly-0.4.3 → workly-0.4.5}/src/workly/_transport.py +0 -0
- {workly-0.4.3 → workly-0.4.5}/src/workly/py.typed +0 -0
|
@@ -419,6 +419,10 @@ class LastRun:
|
|
|
419
419
|
finished_at: datetime | None
|
|
420
420
|
last_status: int | None
|
|
421
421
|
last_error: str | None
|
|
422
|
+
workflow_run_id: str | None = None
|
|
423
|
+
"""The workflow run it started, for a schedule that starts a workflow."""
|
|
424
|
+
workflow_run_status: WorkflowRunStatus | None = None
|
|
425
|
+
"""That workflow run's status: the run succeeds once it has started it."""
|
|
422
426
|
|
|
423
427
|
@classmethod
|
|
424
428
|
def _from_json(cls, d: dict[str, Any]) -> LastRun:
|
|
@@ -430,6 +434,8 @@ class LastRun:
|
|
|
430
434
|
finished_at=_opt_time(d.get("finished_at")),
|
|
431
435
|
last_status=d.get("last_status"),
|
|
432
436
|
last_error=d.get("last_error"),
|
|
437
|
+
workflow_run_id=d.get("workflow_run_id"),
|
|
438
|
+
workflow_run_status=d.get("workflow_run_status"),
|
|
433
439
|
)
|
|
434
440
|
|
|
435
441
|
|
|
@@ -543,8 +549,12 @@ class Run:
|
|
|
543
549
|
"""How long the latest finished attempt took."""
|
|
544
550
|
callback_task_id: str | None = None
|
|
545
551
|
"""The callback task enqueued when the run last finished, if its schedule has `on_complete`."""
|
|
552
|
+
callback_state: TaskState | None = None
|
|
553
|
+
"""That callback task's state: whether the callback has been delivered."""
|
|
546
554
|
workflow_run_id: str | None = None
|
|
547
555
|
"""The workflow run it started, for a schedule that starts a workflow."""
|
|
556
|
+
workflow_run_status: WorkflowRunStatus | None = None
|
|
557
|
+
"""That workflow run's status: the run succeeds once it has started it."""
|
|
548
558
|
|
|
549
559
|
@classmethod
|
|
550
560
|
def _from_json(cls, d: dict[str, Any]) -> Run:
|
|
@@ -573,7 +583,9 @@ class Run:
|
|
|
573
583
|
started_at=_opt_time(d.get("started_at")),
|
|
574
584
|
last_duration_ms=d.get("last_duration_ms"),
|
|
575
585
|
callback_task_id=d.get("callback_task_id"),
|
|
586
|
+
callback_state=d.get("callback_state"),
|
|
576
587
|
workflow_run_id=d.get("workflow_run_id"),
|
|
588
|
+
workflow_run_status=d.get("workflow_run_status"),
|
|
577
589
|
)
|
|
578
590
|
|
|
579
591
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|