Giter Site home page Giter Site logo

Comments (3)

jcierocki avatar jcierocki commented on June 13, 2024

Additional INFO:

I switched to futureproof and then, while trying to spawn the 2nd pool I finally got a meaningful error instead of timeout. There was a problem with relative import. On the first run, it worked always perfectly (as long as I used ipython) but then every next pool was silently generating errors related to pickle being unable to serialize due to unresolved imports. Switching to top-lvl package imports fixed the problem, at least together with futureproof. I will later check whether it works now with pebble.

Anyway, this issue might not be the problem of pebble itself but inherited from multiprocessing or pickle. But still, those silent errors are extremely annoying which prevents me from using pebble in the near future.

from pebble.

noxdafox avatar noxdafox commented on June 13, 2024

Hello,

without a minimum reproducible example, I cannot validate the issue. Pebble does not silence the issue, a pickle.PicklingError would be raised by future.result() in your example.

A pool of workers is designed to abstract the execution logic while still maintaining good control over your resources. If you spawn multiple pools at the same time and assign lots of workers to them, you will starve of resources as your Operating System is mostly busing managing all the processes. This might be the reason why you see the timeouts, the functions don't get to do their job in time.

from pebble.

noxdafox avatar noxdafox commented on June 13, 2024

Closing due to inactivity. Please re-open if the issue occurs again.

from pebble.

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.