Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

App needs to own tasks?

#201

Tasks refer back to an app, but to for easier thread safety, tasks need to only execute on a singly thread at a given time.

Model. Within a workflow:

nothing touches a task outside of process

No looking up tasks that aren't defined for an instance and messing with them. In short stay away from the app queue, dependencies, etc.

apps only execute a task on a single thread

While in process, an app owns the task. Outside of process, set the app to nil.

Together this means that while an app owns the task, the task may change. When an app doesn't own the task, the task will not change. This prevents synchronization to be implemented per task.

But it also prevents thread-safe tasks from running in multiple places... Not a solution.

What brings this up is workflows that my have to coordinate the inputs/configs for a particular task, for example tasks that use an io config for input/output. Maybe the problem is simply that mutable configs are getting used.

Reported by bahuvrihi · April 3rd, 2009 @ 11:50 AM

State: invalid
Milestone: none
Assigned to: nobody

Activity

  1. bahuvrihi
    bahuvrihi
    • State changed from new to invalid

    Getting quite complicated. Currently the model will be to pursue single-threadedness only. To be revisited later.

    May 25th, 2009 @ 12:19 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.