Skip to content

Commit d7fd73b

Browse files
authored
Recognize pending status in JobStatus (#1478)
1 parent ae6a529 commit d7fd73b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/studio/webhooks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Enter the necessary information to create the webhooks.
7474
- CANCELED: Job has been canceled successfully
7575
- CANCELING: Job has been scheduled to cancel
7676
- TASK: A scheduled task is created.
77+
- PENDING: Job is in draft state for execution graph.
7778

7879
- SSL Verification: By default, we verify SSL certificates when delivering payloads. SSL verification helps ensure that hook payloads are delivered to your URL endpoint securely, keeping your data away from prying eyes. Disabling this option is **not recommended**.
7980
- HTTP Method: By default, we make a post request, but you can specify other http method if necessary.

src/datachain/data_storage/job.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class JobStatus(int, Enum):
1414
CANCELED = 8
1515
CANCELING_SCHEDULED = 9
1616
TASK = 11
17+
PENDING = 13
1718

1819
@classmethod
1920
def finished(cls) -> tuple[int, ...]:

0 commit comments

Comments
 (0)