This repository was archived by the owner on Oct 5, 2018. It is now read-only.
This repository was archived by the owner on Oct 5, 2018. It is now read-only.
Avoid creating jobs when nothing to process #218
Open

Description
I've this line in my model
process_in_background :file, only_process: ->(attachment) { attachment.instance.file_styles_to_process_background }
And sometimes, file_styles_to_process_background
has the value of []
. When this happen, the gem is still creating the delayed jobs.
Could this gem support this behaviour and avoid creating jobs in this case?
I'm asking that because it seems to me when a job is created it will copy the distant to local.
Metadata
Metadata
Assignees
Labels
No labels
Activity