conductor-sdk / conductor-javascript Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
package.json
version and GitHub tag/release.Hello,
I noticed that you are currently setting the MAX_RETRIES as an hard-coded parameter , are you planning in the future to have it as a configurable parameter , something that could potentially be passed to TaskManager or orkesConductorClient when initialed ?
Thank you !
Accept-Encoding: gzip
In the README for the project, one example shows that a custom https.Agent
can be passed in using the AGENT
key in the client options:
const client = new ConductorClient({
serverUrl: 'https://play.orkes.io/api',
AGENT: new Agent(agentOptions)
})
When attempting to do this, we're seeing an error about the AGENT
key not being a valid option:
Argument of type '{ serverUrl: string; AGENT: https.Agent; }' is not assignable to parameter of type 'Partial<ConductorClientAPIConfig>'.
Object literal may only specify known properties, and 'AGENT' does not exist in type 'Partial<ConductorClientAPIConfig>'.ts(2345)
Having looked at the source code, it doesn't seem like there is a way of specifying a custom agent?
We're using a self-signed SSL certificate on a local version of Conductor for development purposes, and this issue means that we cannot use this library to connect.
Are we missing anything?
Add JavaScript and TypeScript examples to the following pages:
Problem: Failed to poll task for: _____ errors despite successful workflow execution. This error is incredibly noisy (>30K in 24 hours).
Originally posted by Yashg2910 December 15, 2023
Hi, I am getting the following error when I try to poll conductor using the npm library node v.16.14.2.
Can someone tell me what am I missing?
ERROR Error polling for tasks: Headers is not defined ReferenceError: Headers is not defined at getHeaders2 (/usr/src/app/node_modules/@io-orkes/conductor-javascript/dist/index.js:3751:3) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async /usr/src/app/node_modules/@io-orkes/conductor-javascript/dist/index.js:3828:23
Hello ,
I noticed that the options provided to the TaskManager are ignored ( pollInterval, domain, concurrency) , only workerId is being used .
So I assumed after the defaultManagerOption spread should be another spread with providedOptions.
const providedOptions = config.options ?? {}
this.taskManageOptions = {
...defaultManagerOptions,
...providedOptions,
workerID: workerId(providedOptions),
}
conductor-javascript/src/task/TaskManager.ts
Lines 45 to 49 in 570ddda
When calling the /api/workflow/search
endpoint, the Swagger documentation shows that the response should contain a totalHits
field.
However, when attempting to access this field via the ConductorClient
(which returns ScrollableSearchResultWorkflowSummary
), the Typescript compiler complains with this error:
Property 'totalHits' does not exist on type 'ScrollableSearchResultWorkflowSummary'.ts(2339)
Instead of totalHits
, the above type contains queryId
as a field:
Following the workflow search path in Conductor, it's quite clear that the search does return totalHits
and not queryId
(this also matches the Swagger docs):
Note that searchV2
isn't implemented for Postgres so we cannot use this:
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.