Coder Social home page Coder Social logo

delayed_job_data_mapper's Introduction

delayed_job DataMapper backend

Installation

Add the gems to your Gemfile:

gem 'delayed_job', '2.1.0.pre2'
gem 'delayed_job_data_mapper', '1.0.0.rc'

If you're using dm-rails gem, add this to your environment.rb:

XXX::Application::configure do
 config.after_initialize do
   Delayed::Worker.backend.auto_upgrade!
 end
end

Otherwise, add an initializer:

Delayed::Worker.backend.auto_upgrade!

That's it. Use delayed_job as normal.

delayed_job_data_mapper's People

Contributors

alexgb avatar bkeepers avatar bryckbost avatar djcas9 avatar lanej avatar laserlemon avatar sferik avatar tpitale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

delayed_job_data_mapper's Issues

Latest Delayed Job

It appears that there is a much newer delayed job (3.0+) but it appears that the gem version of delayed_job_data_mapper is still 1.0.0.rc and is linked to 2.1.4.

I'd like to update this all if I can, but wanted to create this issue to start the discussion.

Gem release

Can we get a gem release to replace 1.0.0.rc? I think master is working with dj on master. May need a gem release their too.

Can't perform rake jobs:work

Getting an error:

$ rake jobs:work
syck has been removed, psych is used instead
[Worker(host:sergey-K50IJ pid:20241)] Starting job worker
[Worker(host:sergey-K50IJ pid:21280)] Hash failed with NoMethodError: undefined method `perform' for #<Hash:0x9be9d2c> - 5 failed attempts
rake aborted!
undefined method `sum' for [0, 0]:Array
/home/sergey/.rvm/gems/ruby-2.0.0-p247/gems/delayed_job-2.1.4/lib/delayed/worker.rb:81:in `block in start'
/home/sergey/.rvm/gems/ruby-2.0.0-p247/gems/delayed_job-2.1.4/lib/delayed/worker.rb:74:in `loop'
/home/sergey/.rvm/gems/ruby-2.0.0-p247/gems/delayed_job-2.1.4/lib/delayed/worker.rb:74:in `start'
/home/sergey/.rvm/gems/ruby-2.0.0-p247/gems/delayed_job-3.0.5/lib/delayed/tasks.rb:9:in `block (2 levels) in <top (required)>'
/home/sergey/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval'
/home/sergey/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `<main>'

I do:

  def perform
    store(dump)
    cleanup
  end
  handle_asynchronously :perform

A job is stored but can't be executed.

I'm using Sinatra, Ruby 2.0.0, the egde version of delayed_job_data_mapper and 1.2.0 version of datamapper

auto_upgrade! method missing

I'm trying to configure this to work with MongoMapper but I'm having problems with the initializer:

/home/abel/.rvm/gems/ruby-1.8.7-p299/gems/dm-core-1.0.2/lib/dm-core/model/relationship.rb:373:in method_missing': undefined methodauto_upgrade!' for Delayed::Backend::DataMapper::Job:Class (NoMethodError)

I can't find that method anywhere in the code either.

Support for lasted activesupport versions

It would be nice to have support for lasted activesupport versions, otherwise this can screw some projects... :(

In snapshot (Gemfile.lock):
activesupport (= 4.2.1)

In Gemfile:
delayed_job_data_mapper (>= 0) ruby depends on
delayed_job (~> 4.0) ruby depends on
activesupport (< 5.0, >= 3.0)
ruby
activesupport (>= 0) ruby

delayed_job_data_mapper (>= 0) ruby depends on
dm-active_model (> 1.0) ruby depends on
activemodel (
> 3.1.0) ruby depends on
activesupport (= 3.1.0) ruby

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.