Giter VIP home page Giter VIP logo

Comments (4)

pipermerriam avatar pipermerriam commented on August 22, 2024 1

When I was doing this in the python implementation I came up with the --ephemeral flag which took care of establishing a temporary directory in which all data would be housed. In most cases the desired shutdown behavior would be to cleanup this directory (delete it and all of its contents), though it would almost definitely be valuable to be able to retain this information. I would recommend potentially combining these two approaches ad doing this:

  • Implement --ephemeral mode that uses a temporary directory within XDG_CACHE_HOME, using the node-id prefix solution outlined here for determining the directory
  • Leave some sort of marker in that directory to signal when the directory was last used
  • Maybe make some form of automation that will cleanup this directory, or alternatively, make the --ephemeral flag automatically purge the oldest directories once there are too many.

from trin.

ogenev avatar ogenev commented on August 22, 2024 1

What's the reasoning for using the first few instead of last 8?

Now that I ask I'm guessing it's because the beginning part is more easily comparable by eye, like with git commit hashes.

Yeah, it is related to Jason's comment here.

from trin.

mrferris avatar mrferris commented on August 22, 2024

It will be better, if we change this to append the first few characters (instead of last 8)

What's the reasoning for using the first few instead of last 8?

Now that I ask I'm guessing it's because the beginning part is more easily comparable by eye, like with git commit hashes.

from trin.

hmrtn avatar hmrtn commented on August 22, 2024

PR #277 is ready for review 👍

from trin.

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.