This add-on is operated by Iron.io
Scalable workers to process your background jobs using Docker containers.
IronWorker Job Workers As A Service
Last updated February 19, 2021
IronWorker is a massively scalable task queue/job queue that makes it easy for you offload front end tasks, run background jobs, and process many tasks at once – all in the cloud and with no servers to set up and manage. It can also function as a cron-in-the-cloud service, running tasks on a schedule you define.
IronWorker has partnered with Heroku to make using both services together even easier.
IronWorker Setup on Heroku
1) Install the IronWorker addon for Heroku, Iron’s CLI tool and client library (ruby example)
$ heroku addons:create iron_worker -----> Adding iron_worker to strong-mountain-405... done, v29 (free) $ curl -sSL https://cli.iron.io/install | sh $ gem install iron_worker
2) Configuration: retrieve Token and Project ID
$ heroku config | grep IRON IRON_WORKER_PROJECT_ID => 123456789 IRON_WORKER_TOKEN => aslkdjflaksuilaks
3) Deploy Your Jobs: Zip and Upload your code to Iron or Register your Docker Image with Iron using CLI tool
4) Access Client and Start Pushing Your Jobs
client = IronWorker::Client.new(:token => 'IRON_WORKER_TOKEN', :project_id => 'IRON_WORKER_PROJECT_ID')
When trying to troubleshoot a worker, the best first step is to try and run the worker locally. If the worker runs locally, it should run on the cloud. You can also access your worker logs through the Iron.io HUD. These logs will show you any errors thrown or debug messages you log while the worker is running.
The most common source of worker errors is a mismatch between your local environment and the cloud’s environment. Double-check your
Gemfile and your Ruby version – workers run under Ruby >1.9. Also, make sure your
Gemfile.lock has been updated. Run
bundle install to make sure.
Issues should get logged with Heroku Support. You’re also welcome to stop by the Iron.io support chat room and chat with Iron’s staff about issues. You can also find more resources and documentation on the Iron.io Dev Center.