Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | correctly set test adapter when configure the queue adapter on a per job ↵ | Yuji Yaginuma | 2017-01-31 | 1 | -0/+3 |
| | | | | | | | | | | | | (#26690) The `ActiveJob::TestHelper` replace the adapter to test adapter in `before_setup`. It gets the target class using the `descendants`, but if the test target job class is not loaded, will not be a replacement of the adapter. Therefore, instead of replacing with `before_setup`, modified to replace when setting adapter. Fixes #26360 | ||||
* | remove useless import | Snowmanzzz(Zhengzhong Zhao) | 2016-12-30 | 1 | -2/+0 |
| | |||||
* | use `descendants` to get class that inherited `ActiveJob::Base` | yuuji.yaginuma | 2016-09-05 | 2 | -0/+9 |
| | | | | | | `subclasses` get only child classes. Therefore, if create a job common parent class as `ApplicationJob`, inherited class does not get properly. | ||||
* | Yield the job instance so you have access to things like `job.arguments` on ↵ | David Heinemeier Hansson | 2016-08-16 | 1 | -1/+1 |
| | | | | the custom logic after retries fail | ||||
* | Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines | Ryuta Kamizono | 2016-08-07 | 1 | -1/+0 |
| | |||||
* | applies remaining conventions across the project | Xavier Noria | 2016-08-06 | 1 | -1/+0 |
| | |||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 3 | -3/+0 |
| | |||||
* | applies new string literal convention in activejob/test | Xavier Noria | 2016-08-06 | 8 | -13/+13 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Fix tests against ActiveSupport::Durations | David Heinemeier Hansson | 2016-08-02 | 1 | -0/+2 |
| | |||||
* | Allow for custom handling of exceptions that persist beyond the retry attempts | David Heinemeier Hansson | 2016-08-01 | 1 | -0/+2 |
| | |||||
* | Add exponentially_longer and custom wait algorithms | David Heinemeier Hansson | 2016-08-01 | 1 | -0/+4 |
| | |||||
* | Use descriptive exception names | David Heinemeier Hansson | 2016-08-01 | 1 | -6/+6 |
| | |||||
* | Add retry_on/discard_on for better exception handling | David Heinemeier Hansson | 2016-07-29 | 1 | -0/+21 |
| | |||||
* | Fix accessing provider_job_id inside active jobs for sidekiq adapter | Azzurrio | 2016-07-28 | 1 | -0/+7 |
| | |||||
* | Fix jobs overriding AJ::Base#logger | Jean Boussier | 2016-06-17 | 1 | -0/+9 |
| | |||||
* | Deprecate exception#original_exception in favor of exception#cause | Yuki Nishijima | 2015-11-03 | 1 | -1/+1 |
| | |||||
* | Initial implementation of ActiveJob AsyncAdapter. | Jerry D'Antonio | 2015-08-25 | 1 | -0/+10 |
| | |||||
* | Fixes #20799 | Johannes Opper | 2015-08-04 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Allow keyword arguments to work with ActiveJob | Sean Griffin | 2015-01-30 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | | 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. | ||||
* | - Inline AJ around_perform and around_enqueue in CallbackJob used for tests. | Vipul A M | 2014-10-21 | 1 | -16/+13 |
| | |||||
* | Active Job refactoring | Cristian Bica | 2014-09-03 | 2 | -2/+2 |
| | |||||
* | [ActiveJob] extract JobBuffer from helper | Abdelkader Boudih | 2014-08-29 | 3 | -0/+6 |
| | |||||
* | [ActiveJob] raise DeserializationError when got an error deserializing | Cristian Bica | 2014-08-17 | 1 | -0/+5 |
| | |||||
* | [ActiveJob] Fix tests for sucker_punch | Abdelkader Boudih | 2014-08-17 | 3 | -4/+4 |
| | |||||
* | Moved AR testing from using global variable to thread variable | Cristian Bica | 2014-08-16 | 3 | -5/+5 |
| | |||||
* | Add 'activejob/' from commit '14f74a8331f94150dfee653224de8fc837797709' | Abdelkader Boudih | 2014-08-12 | 6 | -0/+83 |
git-subtree-dir: activejob git-subtree-mainline: b45b99894a60eda434abec94d133a1cfd8de2dda git-subtree-split: 14f74a8331f94150dfee653224de8fc837797709 |