Files
hatchet/examples/python/concurrency_limit_rr_load/event.py
Gabe Ruttner 8e80faf2d6 Fe overhaul docs (#1640)
* api changes

* doc changes

* move docs

* generated

* generate

* pkg

* backmerge main

* revert to main

* revert main

* race?

* remove go tests
2025-04-30 14:10:09 -07:00

14 lines
301 B
Python

import random
from hatchet_sdk import Hatchet
hatchet = Hatchet(debug=True)
# Create a list of events with desired distribution
events = ["1"] * 10000 + ["0"] * 100
random.shuffle(events)
# Send the shuffled events
for group in events:
hatchet.event.push("concurrency-test", {"group": group})