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

ActiveJob not running in the background #185

Open
passabilities opened this issue Jul 9, 2016 · 7 comments
Open

ActiveJob not running in the background #185

passabilities opened this issue Jul 9, 2016 · 7 comments

Comments

@passabilities
Copy link

Currently everything is working, except for the fact that my files are still being processed the same request as the initial upload.

Refer to my SO post for details: http://stackoverflow.com/questions/38277001/delayed-paperclip-not-running-in-the-background

@Ranhiru
Copy link

Ranhiru commented Nov 15, 2016

@passabilities Did you find a reason why it's not being processed in the background ?

@passabilities
Copy link
Author

if I remember correctly there was something wrong with the file I was using.

@cthorner
Copy link

I am having the same issue. I'm wondering if it is related to a Rails upgrade I did at some point. Looking at ActiveJob settings I noticed this:

Rails.application.config.active_job.queue_adapter is set to 'inline'(not 'async')

Seems that might be the culprit, but I don't understand how it worked in the past. As far as I know we haven't changed that parameter.

@cthorner
Copy link

realizing now that it should probably be set to something like :delayed_job

@cthorner
Copy link

Seems to only be an issue with rails 4.2.*, setting

config.active_job.queue_adapter = :delayed_job

fixed the issue for me.

@Frank004
Copy link

I'm having the same problem

@passabilities
Copy link
Author

Have you guys tried with a different file? I was having an issue where it would start processing but an error would occur without warning because there was something wrong with the encoding of the file I was using.

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

4 participants