Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

#Yet another background processing abstraction layer

Assuming that every time you want to do something in a background job, it's defined in a method on an active record object.

Zero explicit dependencies. (just respond to id and find like AR does)

##Example

gem is called async-jobs

require'async'require'async/resque'Async.backend=Async::ResqueBackendclassInvoice < ActiveRecord::Basedefprocess(arg)Async.run{process_now(arg)}enddefprocess_now(arg)#actually do itendendinvoice.process1

Will enqueue a Resque job that runs invoice.process_now 1

About

Yet another background processing abstraction layer

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages