This repository was archived by the owner on Jul 3, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +15
-1
lines changed Expand file tree Collapse file tree 5 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,11 @@ class Api::StatusController < ApplicationController
22 def index
33 render json : { status : "OK" }
44 end
5+
6+ def job
7+ # Just an example of enqueuing an ActiveJob to the worker container.
8+ # perform_later will cause it to be enqueud to the worker
9+ # whilst perform will cause it to be executed in the current Rails process
10+ TestJob . perform_later
11+ end
512end
Original file line number Diff line number Diff line change 11class ApplicationJob < ActiveJob ::Base
2+ queue_as :default
23end
Original file line number Diff line number Diff line change 1+ class TestJob < ApplicationJob
2+ def perform
3+ Rails . logger . info "BOOBS"
4+ end
5+ end
Original file line number Diff line number Diff line change 3737 # Raise an error on page load if there are pending migrations.
3838 config . active_record . migration_error = :page_load
3939
40-
4140 # Raises error for missing translations
4241 # config.action_view.raise_on_missing_translations = true
4342
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ services:
1212 command : bundle exec sidekiq
1313 environment :
1414 REDIS_URL : redis://redis:6379/0
15+ volumes :
16+ - ./backend:/usr/src/backend-app
1517 depends_on :
1618 - db
1719 - redis
You can’t perform that action at this time.
0 commit comments