Skip to content

Commit ac1f0e5

Browse files
committed
Clarify and update async job config in template
1 parent da045f7 commit ac1f0e5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/generators/templates/uploadcare_config_template.erb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ Uploadcare::Rails.configure do |config|
2121
# Deletes files from Uploadcare servers after object destroy
2222
config.delete_files_after_destroy = true
2323

24-
# These options enable ActiveJob background jobs to perform operations in background.
25-
# Options work only if 'store_files_after_save' is enabled and
26-
# 'delete_files_after_destroy' is enabled.
27-
config.store_files_async = true
28-
config.delete_files_async = true
24+
# These options enable ActiveJob background jobs to perform file operations asynchronously.
25+
# IMPORTANT: Enabling these options requires a configured ActiveJob adapter (e.g., Sidekiq,
26+
# Resque, or Delayed Job) and a working queueing system. Without a proper ActiveJob backend,
27+
# enabling these options will cause runtime failures.
28+
# Note: store_files_async only takes effect when store_files_after_save is true.
29+
# Note: delete_files_async only takes effect when delete_files_after_destroy is true.
30+
config.store_files_async = false
31+
config.delete_files_async = false
2932

3033
# =============================================================================
3134
# Caching Options

0 commit comments

Comments
 (0)