File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ class PurgeUnattachedBlobsJob < ApplicationJob
2
+ queue_as :default
3
+
4
+ def perform
5
+ Rails . logger . info "Starting purge of unattached Active Storage blobs..."
6
+ system ( "bin/pwpush active_storage:purge_unattached" )
7
+ Rails . logger . info "Completed purge of unattached Active Storage blobs"
8
+ end
9
+ end
Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ production:
25
25
queue : background
26
26
schedule : every day at 5am
27
27
28
+ purge_unattached_blobs :
29
+ class : PurgeUnattachedBlobsJob
30
+ queue : background
31
+ schedule : every 3 days
32
+
28
33
development :
29
34
expire_pushes :
30
35
class : ExpirePushesJob
@@ -40,3 +45,8 @@ development:
40
45
class : CleanUpPushesJob
41
46
queue : background
42
47
schedule : every 7 hours
48
+
49
+ purge_unattached_blobs :
50
+ class : PurgeUnattachedBlobsJob
51
+ queue : background
52
+ schedule : every 3 days
You can’t perform that action at this time.
0 commit comments