samvera-labs / active_encode

Declare encode job classes that can be run by a variety of encoding services
Other
6 stars 8 forks source link

Polling mixin #29

Closed cjcolvar closed 6 years ago

cjcolvar commented 6 years ago

This PR adds an optional mixin module that will poll the engine adapter and run callbacks with the information returned. If the encode is still running then it will re-enqueue itself otherwise it won't. There are 4 new callbacks available with the mixin: after_status_update, after_cancelled, after_error, and after_complete.

Fixes #14.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 96.907% when pulling 6f549608c9210afb773256bb77628d2c309ec411 on issue#14 into 28f240bfa8d806554cd33b28774b90b45010faca on master.