GithubHelp home page GithubHelp logo

Comments (7)

milesj avatar milesj commented on June 26, 2024

@iyefrat Does this happen with all commands or just running a task?

Edit: After looking at the commits, we did fix the auto-clean mechanism. So this may be clean trying to read the metadata of many files? If you run moon clean manually does it error? And if you delete .moon/cache does the error go away?

from moon.

iyefrat avatar iyefrat commented on June 26, 2024
  1. it doesn't happen on all commands, or all tasks, just some tasks. it's not entirely deterministic
  2. i do get the error when running moon clean, consistently
  3. when deleting .moon/cache i can moon check --all to run for a while but it eventually fails on the error, after which other tasks seem to fail more consistently. seems that this error is more likely to happen the more cache files you have.

running du in .moon/cache at this point leads to:

6136	./hashes
(... states subdirectories ...)
7536	./states
8416	./outputs
22104	.

from moon.

milesj avatar milesj commented on June 26, 2024

Ok that's helpful, then it definitely seems like the cleaning. Let me rework it a bit so that it doesn't read metadata of these files.

from moon.

milesj avatar milesj commented on June 26, 2024

This is actually a bit tricky. I may have to remove this functionality, or wrap it in a setting or something.

Are these large cache files by chance? Or just a ton of small ones?

from moon.

milesj avatar milesj commented on June 26, 2024

I've made a few changes that will reduce the amount of syscalls, but not 100% this will fix the problem. I'll pull these into a patch and look into a bigger fix for the next release:

from moon.

milesj avatar milesj commented on June 26, 2024

Ok I landed those in 1.24, I also added a new setting to control this so you can turn it off if its still an issue.

from moon.

iyefrat avatar iyefrat commented on June 26, 2024

Are these large cache files by chance? Or just a ton of small ones?

I get this with a du . of 11960 and fd . | wc -l of 1050 (on 1.23.4).

Updating to 1.24.1 has fixed the problem. Thanks!

from moon.

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.