Skip to content
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.

Job failed to load: undefined class/module DelayedPaperclip #212

@A9u

Description

@A9u

We have bulk image upload to S3 using delayed_job. For a single image, it is working correctly.

However, in case of multiple, only the first image gets uploaded to s3 and for the remaining images, I get the following error -
Job failed to load: undefined class/module DelayedPaperclip::. Handler: \"--- !ruby/struct:DelayedPaperclip::Jobs::DelayedJob\\ninstance_klass: Photo\\ninstance_id: 133298\\nattachment_name: :image\\n

We have one dedicated server for delayed_job and one for application server. So there are 2 issues here-

  1. If an image is uploaded to the app server, then how would the delayed_job server upload the file to S3? But then why is it working for a single image and 1st file in case of multiple image upload?
  2. Considering that delayed_job server doesn't get the file, then the error should have been something like 'file not found', why is it "undefined class/module DelayedPaperclip".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions