Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit33e09e1

Browse files
authored
Removing "cancelled" response (#364)
* Removing "cancelled" response* Improved docstring
1 parentadf29ae commit33e09e1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎arango/job.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ def status(self) -> str:
6060
fail.
6161
6262
: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).
6564
:rtype: str
66-
:raise arango.exceptions.AsyncJobStatusError: If retrieval fails.
65+
:raise arango.exceptions.AsyncJobStatusError: If retrieval fails or
66+
job is not found.
6767
"""
6868
request=Request(method="get",endpoint=f"/_api/job/{self._id}")
6969
resp=self._conn.send_request(request)

‎docs/async.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ the results can be retrieved once available via :ref:`AsyncJob` objects.
4545

4646
# Retrieve the status of each async job.
4747
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'}
5050

5151
# Let's wait until the jobs are finished.
5252
while job.status() != 'done':

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp