Skip to content

Commit d83ba78

Browse files
committed
Add ALBUM_DISK_LIMIT_GB env var
1 parent e3758c1 commit d83ba78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/jobs/album_zip_cleanup_job.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def perform
2828
private
2929

3030
def target_size
31-
App.album_zip_disk_limit - BUFFER
31+
App.album_disk_limit - BUFFER
3232
end
3333

3434
def get_total_size

config/application.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Application < Rails::Application
3232
config.base_url
3333
end
3434
config.username_cooldown = 1.year
35-
config.album_zip_disk_limit = 150.gigabytes
35+
config.album_disk_limit = ENV.fetch("ALBUM_DISK_LIMIT_GB", 250).gigabytes
3636

3737
# Rails config
3838
config.load_defaults 8.0

0 commit comments

Comments
 (0)