README.markdown in simple_worker-0.7.0.beta.3 vs README.markdown in simple_worker-0.7.0
- old
+ new
@@ -102,10 +102,20 @@
worker.to = current_user.email
worker.subject = "Here is your mail!"
worker.body = "This is the body"
worker.schedule(:start_at=>1.hours.since)
+By default, if you call `schedule` more than once for the same worker class, the new schedule will replace the old one. If you'd
+like multiple schedules for the same class, provide a `:name` parameter:
+
+ worker.schedule(:name=>"EmailWorkerDaily", :start_at=>......)
+
+You can also set priority for scheduled jobs:
+
+ worker.schedule(:priority=>1, ....)
+
+
Check Status
------------
If you still have access to the worker object, just call:
@@ -273,5 +283,10 @@
Then in your worker, you would have the attributes defined:
attr_accessor :db_user, :db_pass
+
+Development of the Gem
+----------------------
+
+Join the discussion group at: https://groups.google.com/forum/?hl=en#!forum/simple_worker