PHP Fatal error: Uncaught Error: Call to undefined method RisImportJob::errorLog() in /var/rl-app/vendor/talis/tripod-php/src/mongo/base/JobBase.class.php:107
This was caused by the fact that Tripod's JobBase class' constructor registers Resque onFailure event listener, so it's possible that this function will get called by a non-tripod worker in case of an error.
Two possible fixes:
(Currently implemented, non-breaking) make sure event listeners ignore calls for jobs that don't inherit JobBase.
(Breaking) Remove JobBase constructor, and move the responsibility for registering listeners to library's consumer.
An error was seen in production:
This was caused by the fact that Tripod's JobBase class' constructor registers Resque
onFailure
event listener, so it's possible that this function will get called by a non-tripod worker in case of an error.Two possible fixes: