8000 feat(py): global rate limits by grutt · Pull Request #328 · hatchet-dev/hatchet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(py): global rate limits #328

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

Merged
merged 8 commits into from
Apr 2, 2024
Merged

feat(py): global rate limits #328

merged 8 commits into from
Apr 2, 2024

Conversation

grutt
Copy link
Contributor
@grutt grutt commented Apr 2, 2024

Description

Adds global rate limit functionality to the python sdk (#324)

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

What's Changed

  • add put_rate_limit to admin client hatchet.client.admin.put_rate_limit('test-limit', 2, RateLimitDuration.MINUTE)
  • add rate_limit prop to step decorator @hatchet.step(rate_limits = [RateLimit(key='test-limit', units=1)])

Copy link
vercel bot commented Apr 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 2, 2024 4:59pm

@grutt grutt changed the title feat(py): global ratelimit feat(py): global rate limits Apr 2, 2024
@grutt grutt requested a review from abelanger5 April 2, 2024 16:36
@abelanger5 abelanger5 merged commit 91b0dda into main Apr 2, 2024
@abelanger5 abelanger5 deleted the feat--py-ratelimit branch April 2, 2024 17:01
@grutt grutt mentioned this pull request Apr 2, 2024
1 task
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.

2 participants
0