aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/core.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add JSON round trip verification testcaseMike Perham2016-03-091-1/+1
|
* Job payload should be symmetric across JSON dump/loadMike Perham2016-03-091-1/+1
| | | Placing non-native JSON data types, like symbols, in the hash to serialize means that the deserialize method will return something different from what was serialized, a common bug and source of frustration for devs.
* Add job priorities to ActiveJobwvengen2015-09-171-0/+8
|
* Fixes #20799Johannes Opper2015-08-041-1/+6
| | | | | | | | | | | | | | | | | | | | | | 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.
* Get provider_job_id from DelayedJobKevin Deisz2015-05-051-0/+3
| | | | | When queueing with DelayedJob, get the id of the job instance and report it back to ActiveJob as provider_job_id.
* Add initial doc for Core in AJ [ci skip]Zachary Scott2015-04-291-0/+2
|
* Tiny follow-up to #18260 [ci skip]Robin Dupret2014-12-311-3/+3
| | | | | | | Indent the list content by 4 spaces instead of 2 to match the other changelog files. Also wrap the lines around 80 chars. Finally update the documentation example with nit-picky things.
* ActiveJob: delegate full deserialization to classIsaac Seymour2014-12-301-4/+28
|
* Add documentation for class methods module included for AJ::Core usedZachary Scott2014-11-031-0/+2
| | | | for serialization and deserialization of jobs. [ci skip]
* Tiny documentation improvements [ci skip]Robin Dupret2014-10-311-5/+2
|
* [ci skip] fix typo in set examplesyuuji.yaginuma2014-09-271-2/+2
|
* [ci skip] AJ docs fixesAkshay Vishnoi2014-09-181-1/+1
| | | | | | | | 1. Indentation 2. Spaces issues 3. Spelling correction 4. Grammar correction 5. Add #:nodoc: to all internal classes
* Active Job refactoringCristian Bica2014-09-031-0/+89