aboutsummaryrefslogtreecommitdiffstats
path: root/app/jobs/execute_job.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/jobs/execute_job.rb')
-rw-r--r--app/jobs/execute_job.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/jobs/execute_job.rb b/app/jobs/execute_job.rb
index f5dd436..1d05aba 100644
--- a/app/jobs/execute_job.rb
+++ b/app/jobs/execute_job.rb
@@ -1,7 +1,11 @@
class ExecuteJob < ApplicationJob
queue_as :default
- def perform(compiler, snippet)
- compiler.run! snippet
+ def perform(compiler, snippet, result = nil)
+ if result
+ compiler.run_body(snippet, result)
+ else
+ compiler.run(snippet)
+ end
end
end