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.
62
questions
0
votes
0
answers
9
views
Docker image caching in iron.io with the same tag hence couldn't run the latest code in iron.io with the same image
We are using iron.io jobs for our internal Projects. Docker Images which we use in ironworker are always overridden during our Jenkins CI build with the latest code and registering the Ironworker job ...
0
votes
1
answer
155
views
Certificate has expired [CERT_HAS_EXPIRED]
When sending via Iron Worker, I have below problem as:
{ [FetchError: request to https://xxxx/api/send-mail failed, reason: certificate has expired]
message: 'request to https://xxxx/api/send-mail ...
0
votes
1
answer
58
views
How to require dependencies for ruby IronWorker
I put together a simple script to run in iron.io. I follow the steps in this tutorial but fail during testing.
$ docker run --rm -it -e "SLACK_API_TOKEN="xox-LALLALA"" -v "$PWD":/worker -w /worker ...
0
votes
1
answer
35
views
Remote build doesn't install dependencies using python 3.2 standard runtime
i'm uploading a worker to iron worker running Python 3.2 with in the standard environment, using my own http client directly (not the ruby or go cli) according to the REST API. However, despite having ...
1
vote
1
answer
268
views
How can I launch an IronWorker with Docker without needing to pay for private Docker repositories, nor make my code public?
I have multiple Ruby applications that are run in crons using IronWorker. I am new to Docker and I want to test the application locally before pushing the code to Iron. How do I do that?
0
votes
2
answers
45
views
How to prevent ironworker from enqueuing tasks of workers that are still running?
I have this worker whose runtime greatly varies from 10 seconds to up to an hour. I want to run this worker every five minutes. This is fine as long as the job finishes within five minutes. However, ...
0
votes
1
answer
44
views
Can only install one of: iron-io/iron_mq[2.0.0, 1.5.3] -- Laraworker vs ironQueue
I am having a problem while trying to use two wonderful packages iron-io/laraworker and laracollective/iron-queue at same project.
The prior package requires version (max) 1.5.3 of iron-io/iron_mq ...
1
vote
1
answer
48
views
How to divide workers and aggregate results?
Given a payload submitted to a parentWorker:
I divide the work amongst otherWorkers and I add the taskId of the parentWorker as an additional property in the payload
each of the otherWorkers finish ...
1
vote
2
answers
105
views
How to integrate slack with IronWorker tasks to get its status
I would like to get the notification about the status of the IronWorker task after its finished.
I tried to setup and incoming-webhook, but could not find any way to achieve this.
Update
I know how ...
0
votes
1
answer
75
views
What are the Docker RUN params for mimicking IronWorker memory constraints?
In the past I've run into trouble when hosting my workers in a cloud infrastructure because of memory constraints that weren't faithfully reproduced when testing the code locally on my overpowered ...
0
votes
1
answer
260
views
How to use MongoDB driver of PHP in an iron worker task?
I'm using iron.io and its worker tasks for a background process.
My code is fairly simple, just like:
<?php
require 'vendor/autoload.php';
$uri = "my_connection_string";
$client = new MongoClient(...
0
votes
1
answer
109
views
Iron.io Workers PHP error Class 'PDO' not found
I've got this error when launching a php worker on Iron.io :
PHP Fatal error: Class 'PDO' not found in /mnt/task/...
My PHP script just call the native PDO extension like this :
$db = new PDO (...)...
0
votes
2
answers
135
views
How can I set NODE_ENV variable for ironworker (iron.io) task?
Is there a way to set/configure NODE_ENV for an ironworker task? It's not set in the process.env output. Because of that the config module loads config/development.json configuration file.
0
votes
1
answer
60
views
ironWorker not inserting to my database
How to connect iron.io to my UserController.php? Im using app/views.
My code in app/views/iron/hello_worker.php
<?php
// Worker code can be anything you want.
echo "Starting ...
2
votes
1
answer
165
views
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 ...
1
vote
1
answer
486
views
Updating field of million of document from a worker
Currently I have to update a field in over 1 million documents indexed in elasticsearch. This is a complex task due to this field contains metadata generated from XML files, evaluating xpath ...
2
votes
0
answers
133
views
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 ...
0
votes
1
answer
181
views
CasperJS and IronWorker : unrecognized option `--ssl-protocol=any'
I've just started to mess around with CasperJS and IronWorker and was first blocked by this error when trying to queue a worker :
./run.sh: 2: ./run.sh: casperjs/bin/casperjs: Permission denied
This ...
0
votes
1
answer
63
views
GhostScript on Iron.io Workers
Does anyone know how to get GhostScript working in Iron.io workers?
I am using the ffmpeg stack with node.js and need to convert a pdf to a series of jpegs using imagemagic and GhostScript is ...
0
votes
1
answer
190
views
IronWorker, CasperJS and cookies support
I got everything working with Ironworker and casperjs and I have one more step which fails: enabling cookie support in this setup.
I'm starting casper with the --cookies-file=cookies.txt param and ...
2
votes
1
answer
298
views
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 ...
0
votes
1
answer
233
views
Using .NET dependencies with Iron.io IronWorker
I'm brand new to Iron.io's IronWorker, and I'm attempting to interface with it via C#.NET. I have managed to get the sample on the site to work, which utilizes the System.Web.Script.Serialization ...
1
vote
2
answers
416
views
How do I handle push messages from IronMQ when my endpoint is an IronWorker?
The documentation for IronMQ push queues describes how endpoints should handle/respond to push messages. However, I get the impression this is for normal webhooks and I can't find any documentation or ...
0
votes
1
answer
114
views
getting openssl error running on iron.io
I get the following error when trying to run a worker on iron.io:
http.rb:920:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: sslv3 alert handshake failure (OpenSSL::SSL:...
0
votes
1
answer
207
views
Python workers in Rails [closed]
I'm building rails application, I have workers from other project, they called ironworker and written on Python. Is it possible to use this workers in Rails application?
As one of solution, I'm going ...
0
votes
1
answer
46
views
How to install ant in an iron.io worker
I am using an iron.io node.js worker. I have ant as a dependency. How can I install this?
I could only see the instructions for language specific dependencies installations (like node modules).
...
0
votes
1
answer
104
views
Iron.io worker + Laravel 4 - mcrypt extension required
I am trying Iron Workers with Laravel 4. I managed to upload the code but it can't run it on the server because Laravel requires mcrypt extension. Does anyone know how can I install it on iron servers?...
2
votes
1
answer
193
views
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 ...
1
vote
2
answers
159
views
Java code execution in cloud [closed]
I've Genetic Algorithm implemented in Java, I want to write API/Service layer so that any developer can run their own fitness function for their own problem by some means to extend or to push their ...
15
votes
2
answers
4k
views
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 ...
0
votes
1
answer
154
views
Running rake tasks via Iron Worker
I'm trying to run a rake task (rake db:send_pending_emails) every minute via Iron Worker, but I can't seem to get it to work... Maybe I don't understand the IronWorker API so well, but I'm doing ...
1
vote
3
answers
378
views
Spawning child workers from a master worker using Iron.io's IronWorker service
Currently, I have a PHP script (e.g. masterProcessor.php) that my server executes at regular intervals using cron. This script has a static list of about 80 URLs it must fetch and process. Since ...
2
votes
1
answer
145
views
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 ...
2
votes
1
answer
908
views
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 ...
2
votes
2
answers
939
views
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 ...
0
votes
1
answer
97
views
My IronWorker master slave setup results in a rest client 400 error. How do I solve this issue?
I am setting up a simple Ironworker Master/Slave worker,
but Iam consistently getting this error
/Users/Dan/.rvm/gems/ruby-1.9.3-head@healthberry/gems/rest-2.6.3/lib/rest/wrappers/typhoeus_wrapper....
2
votes
1
answer
136
views
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 ...
1
vote
1
answer
365
views
Ironworker payload variable Node
I might be missing something really obvious here, but the documentation available for using Node with Iron Worker is still quite limited.
So I've created my worker just fine, but I can't figure out ...
1
vote
0
answers
207
views
Create many IronWorker tasks in one API call
Right now, the iron_worker_ruby_ng gem allows one to create tasks one at a time:
iron-worker client.tasks.create('MyWorker', {:client => 'Joe'})
Some scenarios require the creation of thousands of ...
1
vote
1
answer
272
views
.worker file with `gemfile "Gemfile", "group"` increases remote build time x10
To better manage the required gems across my application, I created a Gemfile group called :iron:
group :default, :iron do
gem "activerecord", require: 'active_record
gem 'mysql2'
gem 'aws-sdk'
...
3
votes
2
answers
149
views
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 ...
1
vote
2
answers
323
views
What is the recommended way of storing db connection strings in an IronWorker
It's common practice on Heroku to have environment variables hold sensitive credentials so that one doesn't need to check in a passsword file into git.
Is there something similar for IronWorkers? How ...
1
vote
1
answer
224
views
How to run shell scripts on IronWorker?
How do I run shell scripts on IronWorker? It would only perform a simple Curl inside the worker.
1
vote
1
answer
179
views
how can I send an email from an IronWorker for a rails3 app?
I followed all the docs for IronWorkerNG::Client.new and rails:
https://github.com/iron-io/iron_worker_rails_example
My .worker file is doing:
runtime 'ruby'
name 'CompanyList'
merge_gem '...
0
votes
1
answer
293
views
iron_worker zip/zip (LoadError) error using iron_worker_ng gem
I am receiving this error when I'm using ironworker's iron_worker gem to upload and build my worker.
iron_worker upload results in
error:/usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:...
2
votes
1
answer
752
views
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 ...
1
vote
0
answers
154
views
managing ironworker task queue delays
I have a project where we make a request from an iPhone client to our API, the api spawns an ironworker task, if the task completes it notifies the iPhone client and several Android phones that all ...
1
vote
1
answer
692
views
Installing "standalone" version of Wine to Ubuntu directory
I'm attempting to create an IronWorker and I'd like to use a Windows binary to run the task. I believe that if I can create a standalone Wine executable in a subdirectory and reference it in my ...
0
votes
1
answer
290
views
Using Hugin and libpano13 in an iron.io worker
I would like to use an iron.io worker to stich panoramas and create HDRs using the OpenSource Hugin and libpano13 toolkits. The programs needed are all command-line (no GUI is needed) but I'm not ...
1
vote
1
answer
356
views
PHP Required Files Iron Worker
I am uploading a .worker file to ironworker. The worker's code requires (with the require command) other php files. Do I need to upload them too to ironworker?
In other words, do I need to add ...