Giter Club home page Giter Club logo

flow's Issues

Passing inputs to default task handler

Copied from Jira ticket PDEV-1936. The suggestion from @sftrabbit is:

= Context
Flow tasks get their input from storage by fetching the row with the corresponding task ID. The default task is usually executed by passing no task ID and the task name "default", and nothing gets fetched from storage. Therefore, there is no way to pass input to the default task (without some shenanigans).

= Done When
There is some clear and concise mechanism for passing input to the default task. Perhaps the task handler takes an optional third parameter that overrides task input if there is no task ID? Not sure.

Use async/await in Flow

Copied from Jira ticket PDEV-1978. The suggestion from @sftrabbit is that:

  • All uses of .then or other Promise-chaining shenanigans are replaced by appropriate use of async and await.

HTTP executor - different URLs per task name

Copied from Jira ticket PDEV-1940. The proposal from @sftrabbit is that:

  • You can provide the HTTP executor an object mapping task names to URLs.
  • When starting a task with a particular name, it sends the request to the corresponding URL.

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.