-
Notifications
You must be signed in to change notification settings - Fork 304
Open
Description
Describe the issue
I am evaluating Hatchet a little more for our use case and created a simple example looking something like this:
const name = "HatchetTestJob";
const wf = hatchetClient.task({
name,
fn: async () => console.log('Hello from hatchet task!'),
});
const worker = await hatchetClient.worker('worker1', {
workflows: [wf],
});
await worker.start();When running this I can see in the dashboard that the workflow name is in all lowercase:
However when I try to run the workflow:
const workflow = hatchetClient.workflow({
name,
});
const a = await workflow.runNoWait();I get the following error:
🪓 53950 | 01/21/26, 02:05:36 PM [ERROR/Admin] Error: /WorkflowService/TriggerWorkflow INVALID_ARGUMENT: could not trigger workflow: rpc error: code = InvalidArgument desc = workflow names not found: HatchetTestJob undefined
It is complaining about workflow not found. I then chaned to this:
const workflow = hatchetClient.workflow({
name: name.toLowerCase(),
});
const a = await workflow.runNoWait();And this works. Is this how it is supposed to work? Is it a requirement that is not documented? If so, then hatchet should probably normalize the job name in every place, not only when creating.
Are there any other limitations to how names can be used? Special or reserver characters? Is it possible to allow it to use both UPPERCASE and lowercase letters?
Environment
- SDK: ts 1.10.5
- Engine: cloud
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels