examples/custom.rb in backburner-0.2.6 vs examples/custom.rb in backburner-0.3.0
- old
+ new
@@ -19,7 +19,7 @@
# Enqueue tasks
Backburner.enqueue TestJob, 5, 3
Backburner.enqueue TestJob, 10, 6
-# Work tasks
-Backburner.work("test-job")
+# Work tasks using threaded worker
+Backburner.work("test-job", :worker => Backburner::Workers::ThreadsOnFork)
\ No newline at end of file