Skip to content
Snippets Groups Projects
Commit 48863dd6 authored by Charlie Smurthwaite's avatar Charlie Smurthwaite
Browse files

initiate garbage collection between each job in the worker

parent 724a6405
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -53,6 +53,7 @@ module Postal
begin
klass = message['class_name'].constantize.new(message['id'], message['params'])
klass.perform
GC.start
rescue => e
klass.on_error(e) if defined?(klass)
logger.warn "[#{message['id']}] \e[31m#{e.class}: #{e.message}\e[0m"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment