All Projects → tatey → delayed-web

tatey / delayed-web

Licence: MIT License
A rails engine that provides a simple web interface for exposing the Delayed::Job queue.

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to delayed-web

wor-authentication
Gem to add authentication to your application using JWT, with expirable, renewable and customizable tokens!
Stars: ✭ 63 (-11.27%)
Mutual labels:  ruby-gem, ruby-on-rails
katapult
Kickstart Rails development!
Stars: ✭ 21 (-70.42%)
Mutual labels:  ruby-gem, ruby-on-rails
activerecord-setops
Union, Intersect, and Difference set operations for ActiveRecord (also, SQL's UnionAll).
Stars: ✭ 21 (-70.42%)
Mutual labels:  ruby-gem, ruby-on-rails
Filestack Rails
Official Ruby on Rails plugin for Filestack File Picker that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
Stars: ✭ 220 (+209.86%)
Mutual labels:  ruby-gem, ruby-on-rails
rails cursor pagination
Add cursor pagination to your ActiveRecord backed application
Stars: ✭ 21 (-70.42%)
Mutual labels:  ruby-gem, ruby-on-rails
superglue
A productive library for Classic Rails, React and Redux
Stars: ✭ 106 (+49.3%)
Mutual labels:  ruby-gem, ruby-on-rails
tag columns
Fast & simple Rails ActiveRecord model tagging using PostgreSQL's Array datatype
Stars: ✭ 40 (-43.66%)
Mutual labels:  ruby-gem, ruby-on-rails
Ransack
Object-based searching.
Stars: ✭ 5,020 (+6970.42%)
Mutual labels:  ruby-gem, ruby-on-rails
mobility-actiontext
Translate Rails Action Text rich text with Mobility.
Stars: ✭ 27 (-61.97%)
Mutual labels:  ruby-gem, ruby-on-rails
has placeholder image
A Ruby gem for generating string based placeholder images in Rails.
Stars: ✭ 20 (-71.83%)
Mutual labels:  ruby-gem, ruby-on-rails
Rorvswild
Ruby on Rails app monitoring: performances & exceptions insights for rails developers.
Stars: ✭ 159 (+123.94%)
Mutual labels:  ruby-gem, ruby-on-rails
slack widgets
An abstraction of the JSON structure needed to create widgets in Slack message attachments
Stars: ✭ 14 (-80.28%)
Mutual labels:  ruby-gem, ruby-on-rails
Mailjet Gem
[API v3] Mailjet official Ruby GEM
Stars: ✭ 119 (+67.61%)
Mutual labels:  ruby-gem, ruby-on-rails
activerecord-crate-adapter
Ruby on Rails ActiveRecord adapter for CrateDB
Stars: ✭ 27 (-61.97%)
Mutual labels:  ruby-gem, ruby-on-rails
Sidekiq Cron
Scheduler / Cron for Sidekiq jobs
Stars: ✭ 1,383 (+1847.89%)
Mutual labels:  ruby-gem, ruby-on-rails
request store-sidekiq
Provides an easy integration between RequestStore and Sidekiq
Stars: ✭ 32 (-54.93%)
Mutual labels:  ruby-gem, ruby-on-rails
Motion
Reactive frontend UI components for Rails in pure Ruby
Stars: ✭ 498 (+601.41%)
Mutual labels:  ruby-gem, ruby-on-rails
React on rails
Integration of React + Webpack + Rails + rails/webpacker including server-side rendering of React, enabling a better developer experience and faster client performance.
Stars: ✭ 4,815 (+6681.69%)
Mutual labels:  ruby-gem, ruby-on-rails
eight ball
Ruby gem for querying feature flags
Stars: ✭ 17 (-76.06%)
Mutual labels:  ruby-gem, ruby-on-rails
filtered
Filters ActiveRecord queries in a nice way
Stars: ✭ 28 (-60.56%)
Mutual labels:  ruby-gem, ruby-on-rails

Delayed::Web for Delayed::Job

Build Status

A rails engine that provides a simple web interface for exposing the Delayed::Job queue.

Requirements

  • Ruby 2.2.x, 2.3.x
  • Rails 3.2.x, 4.0.x, 4.1.x, 4.2.x, 5.0.x, 6.x
  • Delayed::Job 3.0.x, 4.0.x
  • ActiveRecord or Mongoid

Installation

Put this in your Gemfile.

gem 'delayed-web'

Run bundler.

bundle install

Run the installation generator.

rails generate delayed:web:install

This will install an initializer into config/initializers/delayed_web.rb, mount the engine at /jobs in config/routes.rb and add the stylesheets to the list of precomiled assets in application.rb (If assets are enabled).

Routes

The installation script will automatically add routes into your app, like this.

# config/routes.rb
Rails.application.routes.draw do
  mount Delayed::Web::Engine, at: '/jobs'
end

This will mount the following routes.

GET /
GET /jobs
GET /jobs/:id

Authentication

Out of the box Delayed::Web doesn't make any assumptions about authentication. It's possible to take advantage of rails routing constraints or rack middleware.

An example using Devise's authenticated constraint.

# config/routes.rb
authenticated :user, -> user { user.admin? } do
  mount Delayed::Web::Engine, at: '/jobs'
end

An example using Rack::Auth::Basic.

# config/routes.rb
Delayed::Web::Engine.middleware.use Rack::Auth::Basic do |username, password|
  username == ENV['USERNAME'] && password == ENV['PASSWORD']
end

Backend

The installation script will automatically set the backend you're using for Delayed::Job, like this.

# config/initializers/delayed_web.rb
Rails.application.config.to_prepare do
  Delayed::Web::Job.backend = 'active_record'
end

Currently supported backends are 'active_record' and mongoid'. Patches are always welcome.

Asset Pipeline

The installation script will automatically add the engine's assets to your application's list of precompiled assets.

# config/application.rb
config.assets.enabled = true
config.assets.precompile << 'delayed/web/application.css'

This step is skipped if your project is configured not to use the asset pipeline.

I18n

If you want to translate flash messages, titles, or sentences you can set your own I18n translations to override defaults one:

en:
  delayed/web:
    views:
      id: ID
      status: Status
      created_at: Created At
      run_at: Run At
      attempts: Attempts
      last_error: Last Error

🇬🇧 English, 🇪🇸 Spanish, 🇫🇷 French, 🇩🇪 German, and 🇧🇷 Portuguese are supported. You can find the full list here.

Developing Locally

After you've cloned the repository, run bundler.

bundle install

Make sure the specs are passing.

rake

Run the dummy rails app.

cd spec/dummy
rails s

Go to http://localhost:3000.

The dummy rails app uses Delayed::Web::Job::Double as its backend. It is an in-memory double of a real Delayed::Job.

Special Thanks

We're grateful for all our contributors, but we're especially grateful for contributions by the following people:

License

Released under the MIT license. See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].