Sha256: 7023e2cd32bea505d8649f19dd9c4c82ef89254beb75bdcc5d51e5e28f505cc4

Contents?: true

Size: 595 Bytes

Versions: 13

Compression:

Stored size: 595 Bytes

Contents

= Jobs

Decidim jobs classes are not do not implement anything different than what `ActiveJob` has to offer.

Jobs classes are located in the `app/jobs/decidim/<my_module>` directory, and named: `<my_custom>_job.rb`.

```ruby
# frozen_string_literal: true

# app/jobs/decidim/my_module/my_custom_job.rb
module Decidim
  module MyModule
    class MyCustomJob < ActiveJob::Base
      queue_as :default

      def perform(*args)
        # Do something later
      end
    end
  end
end
```

== More information

- https://edgeguides.rubyonrails.org/active_job_basics.html[Active Job documentation]

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-0.29.1 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.28.4 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.29.0 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.28.3 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.29.0.rc4 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.29.0.rc3 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.29.0.rc2 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.29.0.rc1 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.28.2 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.28.1 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.28.0 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.28.0.rc5 docs/modules/develop/pages/classes/jobs.adoc
decidim-0.28.0.rc4 docs/modules/develop/pages/classes/jobs.adoc