Giter Club home page Giter Club logo

conductor-javascript's People

Contributors

ammaar-limbada-madetech avatar bolajiayodeji avatar boney9 avatar gardusig avatar gulam159 avatar jarga avatar najeebkp avatar nicktomlin avatar rizafarheen avatar sudakatux avatar v1r3n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

conductor-javascript's Issues

Add GitHub Release pipeline

Context

  • The pipeline itself seems to be ready, but we need to automatize some synchronization at the package.json version and GitHub tag/release.

Configurable MAX_RETRIES

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 ?

const MAX_RETRIES = 3;

Thank you !

Unable to specify https agent options

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?

Noisy failed to poll task errors

Problem: Failed to poll task for: _____ errors despite successful workflow execution. This error is incredibly noisy (>30K in 24 hours).

ERROR Error polling for tasks: Headers is not defined ReferenceError: Headers is not defined

Discussed in #52

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

TaskManager ignores providedOptions

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),
    }

const providedOptions = config.options ?? {}
this.taskManageOptions = {
...defaultManagerOptions,
workerID: workerId(providedOptions),
}

ScrollableSearchResultWorkflowSummary returns queryId instead of totalHits

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):

https://github.com/conductor-oss/conductor/blob/e195ef621b76f8be8e33957996b16232bba71266/core/src/main/java/com/netflix/conductor/service/ExecutionService.java#L414

https://github.com/conductor-oss/conductor/blob/e195ef621b76f8be8e33957996b16232bba71266/core/src/main/java/com/netflix/conductor/core/dal/ExecutionDAOFacade.java#L679

https://github.com/conductor-oss/conductor/blob/main/postgres-persistence/src/main/java/com/netflix/conductor/postgres/dao/PostgresIndexDAO.java#L129

Note that searchV2 isn't implemented for Postgres so we cannot use this:

https://github.com/conductor-oss/conductor/blob/e195ef621b76f8be8e33957996b16232bba71266/core/src/main/java/com/netflix/conductor/service/ExecutionService.java#L421

https://github.com/conductor-oss/conductor/blob/e195ef621b76f8be8e33957996b16232bba71266/core/src/main/java/com/netflix/conductor/core/dal/ExecutionDAOFacade.java#L674

https://github.com/conductor-oss/conductor/blob/e195ef621b76f8be8e33957996b16232bba71266/postgres-persistence/src/main/java/com/netflix/conductor/postgres/dao/PostgresIndexDAO.java#L241

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.