Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing "cancelled" response #364

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions arango/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def status(self) -> str:
fail.

:return: Async job status. Possible values are "pending" (job is still
in queue), "done" (job finished or raised an error), or "cancelled"
(job was cancelled before completion).
in queue), "done" (job finished or raised an error).
:rtype: str
:raise arango.exceptions.AsyncJobStatusError: If retrieval fails.
:raise arango.exceptions.AsyncJobStatusError: If retrieval fails or
job is not found.
"""
request = Request(method="get", endpoint=f"/_api/job/{self._id}")
resp = self._conn.send_request(request)
Expand Down
4 changes: 2 additions & 2 deletions docs/async.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ the results can be retrieved once available via :ref:`AsyncJob` objects.

# Retrieve the status of each async job.
for job in [job1, job2, job3, job4]:
# Job status can be "pending", "done" or "cancelled".
assert job.status() in {'pending', 'done', 'cancelled'}
# Job status can be "pending" or "done".
assert job.status() in {'pending', 'done'}

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