mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-30 13:19:44 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
14 lines
301 B
Python
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})
|