Skip to content

Asynchronous file operations #28395

@juliusknorr

Description

@juliusknorr

Long running file operations like copy or move requests are very prone to timeouts, which means that there might be an inconsistent state if a request gets aborted due to a webserver or php timeout.

Opening this ticket to keep track of further ideas to optimize that in terms that the heavy lifting could be done asynchronously in some background process. Not meant as a concrete implementation suggestion yet.

Some ideas:

  • The actual request puts the operation into a queue
  • Find a way to handle the pending state in the response
  • Allow checking for the progress/state of the operation
    • Maybe have some kind of pending virtual file in the tree (especially for MOVE)

Possible process for a upload:

  • Do the chunked upload as before
  • The move request just schedules a task in the queue to assemble the file
  • As long as the assembly is pending we have a somehow hidden pending file entry
  • Clients can check the state on the pending file
  • The worker queue will build the final file and move it to the location and remove the pending file

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions