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.

Getting a callback when processing is done #176

Open
@eduardm

Description

@eduardm

I am running a video processing engine with Paperclip and Delayed_paperclip gems.

Everything works fine, but I need to trigger some things when processing is done (sending emails, copy some files somewhere else, etc). Problem is that I do not know when is ready.

I know that there is a column in DB media_processing that gets updated when the processing is done, but to use that, I have to use another table and store there any video when processing is starting, then to keep pooling the db to see which one got processing status changed.

I tried after_processing in paperclip, after_update in video model, nothing works.

My question is: How to set a callback to execute some code when processing is done.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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