Questions tagged [ironworker]

IronWorker is a service that provides to cloud developers a facility to queue / schedule jobs in a way that is meant to be simple and scalable.

Official website: https://www.iron.io/worker

60 questions
14
votes
2 answers

When to use a message queue and when to use a cloud background-worker

When would I use a message queue like ironMQ and when would i use a job processing worker like ironWorker? I have just started researching into these two topics and I am finding it hard to distinguish between the two uses. I understand a worker is…
5
votes
2 answers

How do I connect to a database in IronWorker using ActiveRecord?

I have a Rails application that is using IronWorker and I need to connect to my database from the worker. How do I do that?
Travis Reeder
  • 31,147
  • 12
  • 77
  • 80
3
votes
2 answers

When will IronWorkers support Ruby 2.0?

The default language version for ruby on IronWorkers is 1.9.3. When will it be bumped to 2.0? http://dev.iron.io/worker/reference/environment/#default_languages_versions Is there an easy way to upgrade to ruby 2.0 without too much delay when…
dimroc
  • 1,215
  • 1
  • 15
  • 25
3
votes
1 answer

How to require ''pg" gem on iron.io with iron_worker

.worker file runtime "ruby" name "UserMailer" merge_gem "activerecord", "=3.2.8" merge_gem 'actionmailer', '=3.2.8' merge_gem 'devise', '=2.1.2' merge_gem 'pg', "=0.14.0" merge_file "../app/views/user_mailer/new_user.html.erb" ,…
Mukesh
  • 1,139
  • 9
  • 24
3
votes
2 answers

How do I test an IronWorker task locally using the CLI?

How do I test an IronWorker task locally using the CLI?
2
votes
1 answer

task runner/queue/scheduling on openshift with django

few days ago I have asked how to send email with django and openshift, but I guess it was too broad since it was closed. So in this question I would like to know what task runner/queue/scheduling system should I use in general for django and…
Lucas03
  • 1,994
  • 2
  • 28
  • 56
2
votes
0 answers

How is it possible to pass an Iron Worker payload (ie params) to the CasperJS binary?

Iron Worker is a great tool, however there is still some holes in its documentation... I've successfully set up a worker using CasperJS, called by the Iron Worker ruby gem. But when the worker is called with params by the gem (passing a "payload"…
rafa1986
  • 45
  • 5
2
votes
1 answer

Setting type of environment for an ironworker

Looking into using IronWorker to run some common services, however I'm wondering if there is a way to know in the worker itself what environment it is running under. For example, in our main code base we set a server var ENV to equal one of…
Anti-Dentite
  • 531
  • 1
  • 5
  • 11
2
votes
1 answer

How to schedule a task to run regularly in iron.io

I have a worker which is up and running without errors. I would like to schedule tasks to run every morning at 9.30 using the CLI. Documentation is a little confusing when it comes to scheduling regular tasks using CLI. What I would try is joining…
Koba
  • 1,234
  • 4
  • 19
  • 44
2
votes
1 answer

Use IronWorkers while using my work

My website is hosted on AWS Elastic Beanstalk (PHP). I use Yii Framework as an MVC. A while ago I wanted to run a SQL query everyday. I looked up how to run crons on Beanstalk and it seemed complicated to merge the concepts of Cloud and Cron. I ran…
Nathan H
  • 44,105
  • 54
  • 154
  • 235
2
votes
1 answer

Using sqlalchemy declarative in the external worker

I have a web app written in python using Flask and sqlalchemy. This application runs on Heroku, and as a worker I use the ironworker extension, I have all my models defined in the models module like this: from app import db class Player(db.Model): …
lawicko
  • 6,966
  • 2
  • 34
  • 47
2
votes
2 answers

Communication between node.js app and worker on IronWorker. How to properly poll a task status and receive task response?

The application is as follows: First of all, I`m using a node.js app with the express.js framework as web server. On the front-end, when the user sends a payment via a POST form, the express.js routes this task via 'app.post' and calls an external…
igorauad
  • 648
  • 1
  • 8
  • 10
2
votes
1 answer

mime-types issue with ironworker upload

I am trying to upload a worker and remotely build it in my .worker file. I get this error message. You have already activated mime-types 2.0, but your Gemfile requires mime-types 1.25. Using bundle exec may solve this. I have tried uninstalling…
Stephen Nguyen
  • 4,877
  • 5
  • 21
  • 28
2
votes
1 answer

Permission denied when run casperjs in iron.io

I'm testing casperjs in iron.io as this example https://github.com/iron-io/iron_worker_examples/blob/master/binary/casperjs/googlelinks.js but when iron_worker complete this task, it gives an error message ./run.sh: 2: ./run.sh:…
2
votes
2 answers

Inheritance within iron workers when using the iron_worker_ruby gem

I'm considering using IronWorker a project so that I can scale it easily (high traffic expected, with lots of background jobs). In order to stay DRY, I'm trying to define workers using inheritance but I keep getting the following…
Dorian
  • 2,451
  • 21
  • 32
1
2 3 4