Sha256: 3ce18efeb553163c648b80a3966bcd85391aa0cd28e09d70c946f1b6aaa56f7d

Contents?: true

Size: 1.18 KB

Versions: 23

Compression:

Stored size: 1.18 KB

Contents

<!--
# @title README - mod: delayed job
-->

This mod lets you run card events after sending an act response by using DelayedJobs.

Any card event defined in the `integrate_with_delay` stage will be handled after an act
is completed. For example, suppose you define a `notify` event in `integrate_with_delay`
that's intended to notify you when someone edits a card. With this mod, the email will
be sent _after_ the card is edited and the editor has received his web response.

At present you will need to add the following configuration to application.rb or an
environments.rb file:
    
    config.active_job.queue_adapter = :delayed_job
    config.delaying = true

You will then need to run a separate background process to process these events, eg:

     script/delayed_job start

See https://github.com/collectiveidea/delayed_job#running-jobs for more info.


To have access to a web interface to inspect the jobs, add something like this
to `config/routes.rb`:

    require 'decko/engine'
    require 'delayed_job_web'
    
    Rails.application.routes.draw do
     mount DelayedJobWeb => "/*admin/delayed_job"
     mount Decko::Engine => '/'
    end

...and then it will show up at `/*admin/delayed_job`.

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
card-mod-delayed_job-0.18.1 README.md
card-mod-delayed_job-0.18.0 README.md
card-mod-delayed_job-0.17.0 README.md
card-mod-delayed_job-0.16.0 README.md
card-mod-delayed_job-0.15.6 README.md
card-mod-delayed_job-0.15.5 README.md
card-mod-delayed_job-0.15.4 README.md
card-mod-delayed_job-0.15.3 README.md
card-mod-delayed_job-0.15.2.pre1 README.md
card-mod-delayed_job-0.15.1.1 README.md
card-mod-delayed_job-0.15.1 README.md
card-mod-delayed_job-0.15.0 README.md
card-mod-delayed_job-0.14.2 README.md
card-mod-delayed_job-0.14.1 README.md
card-mod-delayed_job-0.14.0 README.md
card-mod-delayed_job-0.13.4 README.md
card-mod-delayed_job-0.13.3 README.md
card-mod-delayed_job-0.13.2 README.md
card-mod-delayed_job-0.13.1 README.md
card-mod-delayed_job-0.13.0 README.md