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

15 commits

Author SHA1 Message Date
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
b44104ae13 Make TestQueueTest work with marshalling queue
This requires all jobs to be instances of named classes, without block
implementations of methods.
2012-07-03 13:03:48 +01: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
Prem Sichanugrist
6d8ec0bc93 Add parentheses to hide Ruby warning 2012-04-27 20:37:30 -04: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
3fc16a99da ensure that draining the queue will raise exceptions 2012-04-27 15:07:35 -07: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
90e90d61cb oops! 2012-04-27 14:27:47 -07:00
Aaron Patterson
2187b5f2f1 Extend stdlib queue for the test queue 2012-04-27 14:26:26 -07:00
Aaron Patterson
673fe05899 do not depend on time 2012-04-27 13:51:54 -07:00
Vsevolod Romashov
804db94471 clean up empty lines 2012-04-28 00:21:51 +04: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