- 15 8月, 2015 1 次提交
-
-
由 yuuji.yaginuma 提交于
this removes the following warning: ``` DEPRECATION: `config.poll_interval = 0.5` will be removed in Sidekiq 4. Please update to `config.average_scheduled_poll_interval = 0.5`. ```
-
- 13 8月, 2015 2 次提交
-
-
由 Yves Senn 提交于
The latest, currently unreleased, version of queue_classic is required for this to work. See https://github.com/QueueClassic/queue_classic/pull/262 for more details.
-
由 Yves Senn 提交于
As described in the "Follow Coding Conventions" section in our contribution guide (http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#follow-the-coding-conventions) we favor `assert_not` over `refute`. While we don't usually make stylistic changes on it's own I opted to do it in this case. The reason being that test cases are usually copied as a starting point for new tests. This results in a spread of `refute` in files that have been using it already.
-
- 11 8月, 2015 1 次提交
-
-
由 Jean Boussier 提交于
-
- 06 8月, 2015 1 次提交
-
-
由 Kasper Timm Hansen 提交于
This way JobSerializationTest runs in isolation without errors.
-
- 04 8月, 2015 1 次提交
-
-
由 Johannes Opper 提交于
When `#perform_later` is called the locale isn't stored on the queue, which results in a locale reset when the job is performed. An example of the problem: I18n.locale = 'de' HelloJob.perform_now # german message, correct but I18n.locale = 'de' HelloJob.perform_later # english message, incorrect This PR attaches the current I18n.locale to every job during the serialization process. It is then restored during deserialization and used to perform the job with the correct locale. It falls back to the default locale if no serialized locale is found in order to provide backward compatibility with previously stored jobs. It is not necessary to clear the queue for the update.
-
- 29 6月, 2015 1 次提交
-
-
由 Faraz Yashar 提交于
-
- 25 5月, 2015 1 次提交
-
-
由 Yoong Kang Lim 提交于
-
- 08 5月, 2015 4 次提交
-
-
由 Mehmet Emin İNAÇ 提交于
-
由 Kevin Deisz 提交于
Further work to provide provider_job_id for queue adapters.
-
由 Jeroen van Baarsen 提交于
Signed-off-by: NJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
-
由 Jeroen van Baarsen 提交于
When a job is added to Sidekiq by ActiveJob, make sure we still can get the original job_id provider by Sidekiq. We do this by adding the sidekiq jid to provider_job_id field on the job object. Partly fixes #18821 Signed-off-by: NJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
-
- 05 5月, 2015 1 次提交
-
-
由 Kevin Deisz 提交于
When queueing with DelayedJob, get the id of the job instance and report it back to ActiveJob as provider_job_id.
-
- 04 5月, 2015 1 次提交
-
-
由 Rafael Mendonça França 提交于
See #19498
-
- 23 4月, 2015 1 次提交
-
-
由 Matthew Draper 提交于
That seems to be a bug, but as we don't actually care about the precision for our test, we'll just give it a bit longer. [Matthew Draper & Cristian Bica]
-
- 20 4月, 2015 3 次提交
-
-
由 Matthew Draper 提交于
setup gets called from the initializer, so it happens more than once in a test run. Trying to drop the database again after the first process is connected is.. ineffective. And entirely pointless. Instead, defer creating the database to start_workers -- which only happens once, right before we start doing anything real.
-
由 Matthew Draper 提交于
* Don't swallow output -- if there is any, it's probably useful * Wait for the process to finish * Use IPC instead of a sleep * No need for a pidfile
-
由 Matthew Draper 提交于
Requiring sidekiq/testing changes stuff, so we need to counteract that after we do so. And given its potential to confuse things, let's do it up front, at a predictable point.
-
- 15 4月, 2015 1 次提交
-
-
由 Takumi IINO 提交于
Sidekiq::CLI#boot_system require "#{dummy_app_path}/config/environment.rb". But this file has already been required in'test/support/integration/helper.rb'. This patch will change to use Sidekiq::Launcher directly.
-
- 24 3月, 2015 2 次提交
-
-
由 Chris Hanks 提交于
-
由 Mike Perham 提交于
Sidekiq logs the name of the job class being performed. Because ActiveJob wraps the class, this means every job logs as an AJ::JobWrapper instead of the actual class name. Will help fix mperham/sidekiq#2248
-
- 17 3月, 2015 1 次提交
-
-
由 Brandon Weiss 提交于
I’m renaming all instances of `use_transcational_fixtures` to `use_transactional_tests` and “transactional fixtures” to “transactional tests”. I’m deprecating `use_transactional_fixtures=`. So anyone who is explicitly setting this will get a warning telling them to use `use_transactional_tests=` instead. I’m maintaining backwards compatibility—both forms will work. `use_transactional_tests` will check to see if `use_transactional_fixtures` is set and use that, otherwise it will use itself. But because `use_transactional_tests` is a class attribute (created with `class_attribute`) this requires a little bit of hoop jumping. The writer method that `class_attribute` generates defines a new reader method that return the value being set. Which means we can’t set the default of `true` using `use_transactional_tests=` as was done previously because that won’t take into account anyone using `use_transactional_fixtures`. Instead I defined the reader method manually and it checks `use_transactional_fixtures`. If it was set then it should be used, otherwise it should return the default, which is `true`. If someone uses `use_transactional_tests=` then it will overwrite the backwards-compatible method with whatever they set.
-
- 12 3月, 2015 3 次提交
-
-
由 Tamir Duberstein 提交于
This allows different `queue_adapters` to be used in each `ActiveJob` class heirarchy. Previously, all subclasses used a single global queue adapter.
-
由 Tamir Duberstein 提交于
-
由 Tamir Duberstein 提交于
-
- 07 3月, 2015 1 次提交
-
-
由 Jeremy Kemper 提交于
The filter was set on the pseudo-global TestAdapter but not restored to its original value. See e818f657
-
- 06 3月, 2015 1 次提交
-
-
由 Cristian Bica 提交于
-
- 24 2月, 2015 1 次提交
-
-
由 Tamir Duberstein 提交于
Since `ActiveJob::TestHelper` globally sets `ActiveJob::Base.queue_adapter` on setup, there is no benefit in instantiating a new `TestAdapter` per tests. The original rationale was to allow parallel tests to run without interference, but since they'd all mutate the global `ActiveJob::Base.queue_adapter`, that was never realized.
-
- 22 2月, 2015 1 次提交
-
-
由 Jeroen van Baarsen 提交于
* This allows for easier reading, since those are two words, so they should be split by _ Signed-off-by: NJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
-
- 07 2月, 2015 1 次提交
-
-
由 Michael Ryan 提交于
type. This allows specific jobs to be tested, while preventing others from being performed unnecessarily. Example: def test_hello_job assert_performed_jobs 1, only: HelloJob do HelloJob.perform_later('jeremy') LoggingJob.perform_later end end An array may also be specified, to support testing multiple jobs. Example: def test_hello_and_logging_jobs assert_nothing_raised do assert_performed_jobs 2, only: [HelloJob, LoggingJob] do HelloJob.perform_later('jeremy') LoggingJob.perform_later('stewie') RescueJob.perform_later('david') end end end Fixes #18802. Trim space and document :only option.
-
- 01 2月, 2015 1 次提交
-
- 31 1月, 2015 1 次提交
-
-
由 Sean Griffin 提交于
Unfortunately, the HashWithIndifferent access approach is insufficient for our needs. It's perfectly reasonable to want to use keyword arguments with Active Job, which we will see as a symbol keyed hash. For Ruby to convert this back to keyword arguments, it must deserialize to a symbol keyed hash. There are two primary changes to the serialization behavior. We first treat a HWIA separately, and mark it as such so we can convert it back into a HWIA during deserialization. For normal hashes, we keep a list of all symbol keys, and convert them back to symbol keys after deserialization. Fixes #18741.
-
- 23 1月, 2015 1 次提交
-
-
由 Richard Manyanza 提交于
-
- 08 1月, 2015 2 次提交
-
-
由 George Claghorn 提交于
-
由 George Claghorn 提交于
With the option, assert_enqueued_jobs will check the number of times a specific kind of job is enqueued.
-
- 05 1月, 2015 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 30 12月, 2014 1 次提交
-
-
由 Cristian Bica 提交于
1. The :test adapter wasn't going through a full cycle of serialize/deserialize when performing jobs. Now it does 2. Regular AJ tests were not run for the :test adapter. Now they are 3. ActiveJob::TestHelper uses assert_valid_keys but doesn’t requires the file that implements that method. Now it does
-
- 29 12月, 2014 1 次提交
-
-
由 Yukio Mizuta 提交于
-
- 13 12月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
Use redis protocol
-
- 05 12月, 2014 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-