1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

13 commits

Author SHA1 Message Date
Rafael Mendonça França
b4ef4d70be Copy-edits at Rails::Queueing documentation 2012-07-21 14:02:52 -03:00
Aaron Patterson
3b3ca13307 adding Rails::Queueing::Container
This allows us to do:

In your configuration:
Rails.queue[:image_queue] = SomeQueue.new
Rails.queue[:mail_queue]  = SomeQueue.new

In your app code:
Rails.queue[:mail_queue].push MailJob.new

Both jobs pushed to the same default queue
Rails.queue.push DefaultJob.new
Rails.queue[:default].push DefaultJob.new
2012-07-19 12:09:39 -07:00
Paul Battley
33113ba0e7 Ensure test jobs are marshallable
By marshalling and unmarshalling jobs when adding them to the test queue, we
can ensure that jobs created during test runs are valid candidates for
marshalling, and, thus, that they can be used with queueing backends other than
the default simple in-process implementation.

This will also be used in a subsequent commit to ensure that jobs pushed to the
queue do not contain a reference to the queue itself.
2012-07-03 12:01:53 +01:00
Carlos Antonio da Silva
7a6116b633 Add some docs and changelog entry 2012-05-04 09:11:45 -03:00
Carlos Antonio da Silva
8fbf2e197f Allow overriding exception handling in threaded consumer 2012-05-04 09:11:44 -03:00
José Valim
9fc9e89477 Use Rails::Queueing::Queue instead of Queue so people can build their own consumers around stdlib's Queue 2012-04-28 09:26:23 +02:00
Carlos Antonio da Silva
ff4eba9ce2 Fix failing test, TestQueue#contents is not #jobs 2012-04-27 19:51:40 -03:00
José Valim
d8c3ad73dd Merge pull request #6021 from sikachu/log_exception
Log the exception from the ThreadConsumer
2012-04-27 15:24:14 -07:00
Prem Sichanugrist
4531ba7493 Log the exception from the ThreadConsumer
This will make sure you know when there's an exception occur.
2012-04-27 18:22:25 -04:00
Aaron Patterson
0c076c0057 adding the jobs method to the test queue for getting a list of test
jobs.
2012-04-27 14:58:04 -07:00
Aaron Patterson
2187b5f2f1 Extend stdlib queue for the test queue 2012-04-27 14:26:26 -07:00
Vsevolod Romashov
9d630d4368 fixes run order in Rails::Queueing::TestQueue 2012-04-28 00:15:51 +04:00
Yehuda Katz
602000be90 Missing git add :trollface: 2012-04-26 21:43:12 -07:00