mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-03 16:09:37 -05:00
5062bf1e3e
New SDKs and docs for the v1 release.
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})
|