Skip to content

Getting Started

MohammedNazeer10 edited this page Dec 19, 2024 · 1 revision

Getting Started with ActiveJob::Web

Activejob::Web

Activejob::Web is a Rails engine, which means it's a packaged set of functionality that can be easily integrated into a Ruby on Rails application. This engine specifically focuses on providing a web-based dashboard. This dashboard serves the purpose of managing and monitoring background job processing within a Ruby on Rails application

Usage

The ActiveJob::Web engine simplifies the execution of active jobs by providing a user-friendly interface accessible through a web browser.

Gem Installation

Add this line to your application's Gemfile:

gem "activejob-web"

And then execute:

$ bundle install

Setup

you need to run the generator:

$ rails generate activejob:web:setup

The generator adds these core files, among others:

  • activejob_web.rb: Initializer file in the config/initializers directory.

  • Migrations in the db/migrate directory:

    • create_jobs.rb
    • create_activejob_web_job_executions.rb
    • create_join_table_job_executors.rb
    • create_job_approval_requests.rb
    • create_join_table_job_approvers.rb
    • create_active_job_web_active_storage_tables.active_storage.rb

Then run:

$ rake db:migrate

Clone this wiki locally