Git Product home page Git Product logo

Comments (10)

brxken128 avatar brxken128 commented on June 14, 2024

Agreed with @ericson.ds999, we don't need to broke this job to steps, it can be a 1 big bulky zip and unzip job that does it thing through the library. I don't think pausing it or remembering where it is makes sense here too. Let's not make this complicated and keep it as simple as possible. It just needs work.

from spacedrive.

brxken128 avatar brxken128 commented on June 14, 2024

I don't think that this job can be broken in steps at all. Steps are only needed when we can interrupt the job to be resumed later, which isn't the case. But the new task system enables periodically pauses with a mutable state between them. Without the restriction of being needed to be serializable. On a compression task we would be able to pause it in memory, but if the app was closed, it would need to be started from the beginning.

from spacedrive.

brxken128 avatar brxken128 commented on June 14, 2024

Oh sorry I missed that part, thanks @brxken128! Do you know about this @ericson.ds999?

from spacedrive.

brxken128 avatar brxken128 commented on June 14, 2024

and the current job system doesn't allow for a mutable object to be shared between job steps (which is what the zip crate would require)

from spacedrive.

brxken128 avatar brxken128 commented on June 14, 2024

Why is this blocked?

from spacedrive.

brxken128 avatar brxken128 commented on June 14, 2024

Yeah, we still need zip-slip protection as well as special path handling on Windows (most likely), and the current job system doesn't allow for a mutable object to be shared between job steps (which is what the zip crate would require).

from spacedrive.

brxken128 avatar brxken128 commented on June 14, 2024

As mentioned on Slack, plan is to use a already ready zip crate

from spacedrive.

brxken128 avatar brxken128 commented on June 14, 2024

Might not be blocked but not a priority atm.

from spacedrive.

brxken128 avatar brxken128 commented on June 14, 2024

I'm pretty sure this is still not possible given the current state of the job system. I will look further into it, but we need a mutable state which is not serialised. Maybe a serde(skip)will work, but the job will not be resumable at all.

from spacedrive.

brxken128 avatar brxken128 commented on June 14, 2024

I'm currently unable to continue with this as we're not able to mutably share objects between job steps, when the objects in question cannot be serialized/deserialized.

from spacedrive.

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.