Giter Club home page Giter Club logo

Comments (5)

sam-goodwin avatar sam-goodwin commented on August 20, 2024

I wonder if it's right to attach this timeout to the thing being called rather than use a scope?

await withTimeout(1000, async() => {
  await activity1();
});

from eventual.

sam-goodwin avatar sam-goodwin commented on August 20, 2024

How will these be implemented? Will it always use a scheduled event to wake up the caller's orchestrator? Or is it case by case?

from eventual.

sam-goodwin avatar sam-goodwin commented on August 20, 2024

We will allow the configuration of two different timeouts on the child workflow to handle the ambiguity.

Why is this extra complexity needed?

from eventual.

thantos avatar thantos commented on August 20, 2024

I wonder if it's right to attach this timeout to the thing being called rather than use a scope?

await withTimeout(1000, async() => {
  await activity1();
});

This would definitely work and would allow be arbitrary timeout scopes.

I think doing the same for retry would be little more complex because the workflow would need to be involved instead of just a retry loop around the activity/workflow.

So we'll likely end up with activity/workflow call level timeout for both? Or maybe retry just stays at the definition level?

from eventual.

sam-goodwin avatar sam-goodwin commented on August 20, 2024

Being able to programatically specify the timeout of an activity when calling it is necessary.

  • set timeout when calling an activity
  • set timeout when returning asyncResult from activity?

from eventual.

Related Issues (20)

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.