Git Product home page Git Product logo

Comments (5)

ScotterC avatar ScotterC commented on July 17, 2024

The {name}_processing column will switch from true to false when it's done processing. Does that work for you?

from delayed_paperclip.

emadhegab avatar emadhegab commented on July 17, 2024

yeah i got that after i post this issue but still can't figure out how to detect when it change to false so i can trigger action.. don't have clue.

from delayed_paperclip.

ScotterC avatar ScotterC commented on July 17, 2024

You could use the after_#{name}_post_process callback.

from delayed_paperclip.

theworkerant avatar theworkerant commented on July 17, 2024

This doesn't seem to work for me. The value of #{name}_processing is still true when after_#{name}_post_process is triggered.

The updating of the processing column seems to be done outside of any Rails callback cycle is that right? How do we detect when this is done? after_save doesn't catch it, neither does your suggestion above.

from delayed_paperclip.

theworkerant avatar theworkerant commented on July 17, 2024

For anyone interested, I overrode the DelayedPaperclip::Jobs code to add the success callback that Paperclip supports. Seems to avoid the above problems.

# config/intializers/delayed_paperclip
module DelayedPaperclip
  module Jobs
    class DelayedJob

      def success
        # stuff
      end

    end
  end
end

from delayed_paperclip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.