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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workly
3
- Version: 0.4.3
3
+ Version: 0.4.5
4
4
  Summary: Python SDK for Workly, the open-source HTTP task queue
5
5
  Keywords: task queue,background jobs,webhooks,http
6
6
  License-Expression: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "workly"
3
- version = "0.4.3"
3
+ version = "0.4.5"
4
4
  description = "Python SDK for Workly, the open-source HTTP task queue"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "workly"
3
- version = "0.4.3"
3
+ version = "0.4.5"
4
4
  description = "Python SDK for Workly, the open-source HTTP task queue"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.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