Giter Club home page Giter Club logo

batchflow's People

Contributors

teun avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

batchflow's Issues

"Collection was modified; enumeration operation may not execute" Error coming up randomly, after serveral hours of running.

Sorry if this is an incorrect report, but I've gone through my code so many times I don't know where the issue could be. Every collection I'm using is either concurrent, or modified to support async access. I would expect this error to pop up a little sooner than 10+ hours into the run were it an obvious mistake.

Has this behavior ever been observed before?

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at BatchFlow.TaskNode.Stop()
   at BatchFlow.Flow.Stop()
   at BatchFlow.TaskNode.Worker()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Make processing distributed

It would be really nice if BatchFlow could leverage processing power from multiple machines. There are a number of hard nuts to crack here.

#. I think that Redis would be very suitable for the central storage of the queue content. It supports distributed atomic storage and blocking POP calls on queues
#. Some of the patterns that are currently very common for use in BatchFlow will not be (easily) possible in distributed mode. State stored in the closure of lambda expressions will be problematic. Actually, task nodes that are initialized in the current way (using a lambda in the contructor) will not be possible anyway, as they cannot be serialized and deserialized on another machine

TBC

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.