Files
hatchet/python-sdk/examples/rate_limit/event_test.py
T
Gabe Ruttner 91b0dda46e feat(py): global rate limits (#328)
* chore: regen protos

* feat: admin put rate limit

* fix: client type

* feat: rate limit example

* feat: workflow config

* feat: step config

* release: py 0.21.0

* fix: RateLimitDuration in init

---------

Co-authored-by: gabriel ruttner <gabe@hatchet.run>
2024-04-02 13:01:22 -04:00

25 lines
375 B
Python

from dotenv import load_dotenv
from hatchet_sdk.hatchet import Hatchet
load_dotenv()
hatchet = Hatchet(debug=True)
hatchet.client.event.push(
"rate_limit:create",
{
"test": "1"
}
)
hatchet.client.event.push(
"rate_limit:create",
{
"test": "2"
}
)
hatchet.client.event.push(
"rate_limit:create",
{
"test": "3"
}
)