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.
Coverage increased (+0.2%) to 96.907% when pulling 6f549608c9210afb773256bb77628d2c309ec411 on issue#14 into 28f240bfa8d806554cd33b28774b90b45010faca on master.
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
, andafter_complete
.Fixes #14.