I have a Rails v6.x app running on Heroku. We use review apps to preview features etc before they go live. Our app uses Sidekiq to manage background jobs that run on a worker dyno in production. When we open a pull request and the review app gets created, the worker dyno is automatically turned off. So none of the background tasks run unless we go in and manually turn it on. Is there a way to do this programmatically?
How to enable a worker dyno for a Heroku review app
123 Views Asked by emersonthis At
1
There are 1 best solutions below
Related Questions in RUBY-ON-RAILS
- Rails HABTM: Select everything a that a record 'has'
- Best way to make an HABTM association via console
- dynamically create an ical / ics file from a rails model
- Ruby destroy is not working? Or objects still present?
- NoMethodError: undefined method `update_average_rating' for nil:NilClass
- Select results where joined table contains records with an attribute, but without another
- Showing posts only created when boolean was true
- Ruby on rails and HAML - Print a hash with background color
- How can I monitor an endpoint's status with Ruby?
- How to create dynamic pages without form_for helper in Rails?
- Rails 4.2 jQuery loads only after refresh
- "Access Denied" - User's Permissions to S3 Bucket
- ActiveRecord, Rails 4: has_many :through with scoped conditions failure
- Rails - formatting a list of options
- Rails - Ajax do not work properly on production server
Related Questions in HEROKU
- NoMethodError: undefined method `update_average_rating' for nil:NilClass
- Using Amazon KMS service on Heroku
- How to have Heroku build my development branch on a staging server?
- Heroku not fetching from DB when scheduler running
- Search for a key in django.core.cache
- Ruby app fails in https request on heroku.com
- Rails: NameError: uninitialized constant Rails::Application::YAML
- clojure worker-only app on heroku fails with Error R10
- Clockwork not logging to Heroku console
- Javascript working in development locally but not production on Heroku
- Heroku PostgreSQL Studio not finding databases
- Heroku : Username for 'https://git.heroku.com': git
- Pg backups curl latest dump from Heroku
- How do you deploy build artifacts to Heroku from Codeship?
- Custom validation message (in model file) that includes a path not working
Related Questions in DEVOPS
- Error when adding a new build stage on Bluemix DevOps Services
- Capistrano current/ directory doesn't get created
- Using puppet to create a lvm with dynamic size
- Jenkins - (private subnet) WebHook with Github does not trigger automatic build
- How to automate the creation of a vCAP user-defined variable in a Bluemix deployment?
- Jenkins - Webhooks OR PollSCM
- Iterating over EncryptedDataBagItem in Chef Recipe
- add newly created AWS EC2 IP to Ansible inventory at runtime
- JazzHub and Bitbucket
- Continuous Deployment with Bitbucket and Jazzhub
- Jenkins - Access to build logs, artifacts, git-commit change logs of upstream builds
- Chef - difference between knife.rb and solo.rb
- What tools are there to visualise the merge structure of dozens of git branches?
- Using attributes in Chef
- Ansible error message
Related Questions in SIDEKIQ
- rails, Cannot run sidekiq
- Rails / Rspec: How would I test #any? for Sidekiq?
- Do sidekiq jobs run inside a large transaction?
- Sidekiq donot start on ec2 server reboot
- Rails, Sidekiq and systemd are on a debian 8 ship
- Using Sidekiq with Nokogiri for scraping
- delayed_paperclip is not hitting sidekiq
- Importing data that may take 10-15 minutes to process, what are my options in Rails?
- sidekiq not starting with mina deployment of rails 4 app.
- How to enqueue a Job to ActiveJob without loading the whole rails environment?
- Ruby On Rails : Mailer : Sidekiq - asset path not valid in email : Engineyard : Nginx : Passenger
- After a deploy to EC2 sidekiq now reports SocketError: getaddrinfo: Name or service not known
- sidekiq + heroku + paperclip working very slowly
- How to avoid duplicates from saving in database parsed from external JSON file with sidekiq in Rails
- How to clear ActiveJob queue
Related Questions in HEROKU-REVIEW-APP
- Can I output timestamps in heroku review app build logs?
- Disable heroku from redeploying review app on every push to a github pull request
- Custom Procfile for Review Apps in Heroku
- See an empty page when access `/rails/mailers` in production
- Enable uuid-ossp on heroku-postgresql automatically for review apps
- Using NodeJS development dependencies in Heroku review-app post-deploy step
- How to cancel redundant builds on Heroku Review-app
- Is it possible to use free dynos for review apps by default?
- Can't view Review Apps despite View permission being granted
- How to obtain review app name through platform api
- Heroku pipeline (for GitHub review app) keeps disappearing
- Set python version in heroku review apps
- Heroku seems to be ignoring addons section in app.json
- How to automatically enable custom worker dynos on Heroku specified in Procfile and app.json?
- Specify Postgres database plan in Heroku review apps
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Found it! This can be configured in app.json according to these docs: https://devcenter.heroku.com/articles/app-json-schema#formation
Ex for posterity: