Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Avoid creating jobs when nothing to process #218

Open
ghost opened this issue Jul 24, 2018 · 0 comments
Open

Avoid creating jobs when nothing to process #218

ghost opened this issue Jul 24, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 24, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants