To add a background worker (or any other process) to your App, you can add a new Service by adding an entry to your App’s Procfile.
For example, to add a Sidekiq worker to a Rails app, you might add the following line:
worker: bundle exec sidekiq
Alternatively, you can of course add a separate App altogether! See Services vs. Apps for more information.