Please refer to the Hatchet Typescript SDK documentation for setup instructions and usage details.
hatchet-dev / hatchet-typescript Goto Github PK
View Code? Open in Web Editor NEWHatchet Typescript SDK for Interacting with the Hatchet Engine
Hatchet Typescript SDK for Interacting with the Hatchet Engine
Please refer to the Hatchet Typescript SDK documentation for setup instructions and usage details.
This should be something like 'set HATCHET_CLIENT_TOKEN env var'
TypeError: Cannot read properties of undefined (reading 'split')
[16](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:17) |
[17](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:18) | function extractClaimsFromJWT(token: string): any {
> [18](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:19) | const parts = token.split('.');
| ^
[19](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:20) | if (parts.length !== 3) {
[20](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:21) | throw new Error('Invalid token format');
[21](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:22) | }
If a user doesn't await
the registerWorkflow
method, they get race conditions where sometimes the workflow is not registered.
We should track the state of each registerWorkflow
operation and only start the worker once those operations are completed. Or throw an error if those operations are not awaited.
Attempting to spawn a child workflow using the SDK method spawnWorkflow
with a different shape input
to the current/parent workflow is not possible because the function signature limits input
to T
, the parent workflow input type: https://github.com/hatchet-dev/hatchet-typescript/blob/main/src/step.ts#L198
It's expected to be able to spawn a child workflow with the input shape expected by that child workflow definition.
Hi! Locally running hatchet server, when HATCHET_CLIENT_TLS_STRATEGY=none
gives error:
Error: Invalid client config: [
{
"received": "none",
"code": "invalid_enum_value",
"options": [
"tls",
"mtls"
],
"path": [
"tls_config",
"tls_strategy"
],
"message": "Invalid enum value. Expected 'tls' | 'mtls', received 'none'"
}
]
(node:2784) [DEP0128] DeprecationWarning: Invalid 'main' field in '/home/runner/work/distill/distill/node_modules/@hatchet-dev/typescript-sdk/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.