hatchet
hatchet copied to clipboard
docs: worker concurrency not documented correctly (Typescript)
Documented is:
const worker = hatchet.worker("my-worker", { maxRuns: 5, });
But instead it should be:
const worker = hatchet.worker("my-worker", 5);
The documented code does not work and leads to an error.
https://docs.hatchet.run/home/features/concurrency/overview
I would like to work on this @mavenraven
Hey @heysolomon, @abelanger5 and @grutt are better points of contact.
Thanks for the ping @mavenraven
@semse this change was introduced in https://github.com/hatchet-dev/hatchet-typescript/pull/213 in favor of options, but the change should be backwards compatible with your existing code.