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

feat(fal_client): introduce cancel() #345

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Oct 24, 2024

No description provided.

Comment on lines +34 to +37
"status",
"status_async",
"result",
"result_async",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed these were missing, so added along the way.

@@ -347,6 +352,11 @@ async def get(self) -> AnyJSON:
_raise_for_status(response)
return response.json()

async def cancel(self) -> None:
"""Cancel the request."""
response = await self.client.put(self.cancel_url)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@efiop efiop merged commit 0a228d8 into main Oct 24, 2024
7 checks passed
@efiop efiop deleted the ruslan/fal_cleint_cancel branch October 24, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant