mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-07 17:29:39 -06:00
* fix: move around case ordering * feat: move worker fixture around * fix: clean up fixtures * feat: expand test, try to repro * debug: more minimal repro * fix: bug bashing * fix: factor out concurrency queries into overwrite * feat: improve test * fix: improve test * fix: lint * feat: migration for trigger * Fix: Retry + Cancel Bugs (#1620) * fix: send original retry count to cancel * fix: key threads, contexts, and tasks on retry count * fix: store the key on the action and use it everywhere * refactor: signature consistency * fix: instrumentor types * chore: version * feat: comment * fix: thank you mypy * fix: simplify callback * fix: ts implementation * chore: lint * fix: rework how retries are passed * Fix: Add Retries to Log Pushes (#1594) * fix: retry log pushes * chore: version
36 lines
723 B
Python
36 lines
723 B
Python
import argparse
|
|
from typing import cast
|
|
|
|
from hatchet_sdk import Hatchet
|
|
from tests.correct_failure_on_timeout_with_multi_concurrency.workflow import (
|
|
multiple_concurrent_cancellations_test_workflow,
|
|
)
|
|
|
|
hatchet = Hatchet(debug=True)
|
|
|
|
|
|
def main(slots: int) -> None:
|
|
worker = hatchet.worker(
|
|
"e2e-test-worker-2",
|
|
slots=slots,
|
|
workflows=[multiple_concurrent_cancellations_test_workflow],
|
|
)
|
|
|
|
worker.start()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument(
|
|
"--slots",
|
|
type=int,
|
|
default=100,
|
|
required=False,
|
|
)
|
|
|
|
args = parser.parse_args()
|
|
|
|
slots = cast(int | None, args.slots) or 100
|
|
|
|
main(slots)
|