Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
D
duplicity
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 14
    • Issues 14
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 2
    • Merge requests 2
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • duplicity
  • duplicity
  • Merge requests
  • !20

Merged
Created Jul 24, 2020 by Marco Herrn@hupfduleContributor

S3 unfreeze all

  • Overview 8
  • Commits 6
  • Pipelines 7
  • Changes 2

This Merge Request tries to provide a way to unfreeze all files in S3 Glacier storage at once to reduce the possible waiting time.

It seems that botos recover() method already is blocking, so I implemented a 'pre_process_download_batch' method that actually calls 'pre_process_download' for each file to restore in a separate thread.

It is working well for my use case. If there are files to unfreeze from Glacier the unfreezing process is started for all of them. The actual 'pre_process_download' is still blocking until the file it tries to preprocess is available in S3. If all files already are in S3 the restore works normally without additional waiting time.

Due to my poor python knowledge and the unfamiliar codebase this might not be the best solution and I might have done some stupid mistakes, but it is a nicely isolated addition.

Edited Sep 28, 2020 by Kenneth Loafman
Assignee
Assign to
Reviewer
Request review from
0.8.16
Milestone
0.8.16
Assign milestone
Time tracking
Source branch: s3-unfreeze-all