File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,10 @@ def status(self) -> str:
60
60
fail.
61
61
62
62
:return: Async job status. Possible values are "pending" (job is still
63
- in queue), "done" (job finished or raised an error), or "cancelled"
64
- (job was cancelled before completion).
63
+ in queue), "done" (job finished or raised an error).
65
64
:rtype: str
66
- :raise arango.exceptions.AsyncJobStatusError: If retrieval fails.
65
+ :raise arango.exceptions.AsyncJobStatusError: If retrieval fails or
66
+ job is not found.
67
67
"""
68
68
request = Request (method = "get" , endpoint = f"/_api/job/{ self ._id } " )
69
69
resp = self ._conn .send_request (request )
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ the results can be retrieved once available via :ref:`AsyncJob` objects.
45
45
46
46
# Retrieve the status of each async job.
47
47
for job in [job1, job2, job3, job4]:
48
- # Job status can be "pending", "done" or "cancelled ".
49
- assert job.status() in {'pending', 'done', 'cancelled' }
48
+ # Job status can be "pending" or "done ".
49
+ assert job.status() in {'pending', 'done'}
50
50
51
51
# Let's wait until the jobs are finished.
52
52
while job.status() != 'done':
You can’t perform that action at this time.
0 commit comments