mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-27 13:09:35 -05:00
91b0dda46e
* 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>
25 lines
375 B
Python
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"
|
|
}
|
|
) |