Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.md
Worker101.java
enqueue.java
gson-1.7.jar
json-java.jar
manifest.txt
worker101.worker

README.md

Worker 101

This covers most of the core concepts of using IronWorker including loading third party dependencies.

  1. Be sure you've setup your Iron.io credentials, see main README.md.
  2. Compile java file 'javac -cp "json-java.jar:gson-1.7.jar" Worker101.java'
  3. Make jar file 'jar cfm worker101.jar manifest.txt Worker101.class'
  4. Run iron_worker upload worker101 to upload the worker code package to IronWorker.
  5. Queue up a task:
    1. From command line: iron_worker queue JavaWorker101 --payload '{"query":"xbox"}' --priority 2 --timeout 60
    2. With enqueue.java - get latest iron_worker_java lib (https://github.com/iron-io/iron_worker_java), change query, compile it and launch.
  6. Look at HUD to view your tasks running, check logs, etc.
  7. Schedule a task:
    1. From command line: iron_worker schedule JavaWorker101 --payload '{"query":"heyaa"}' --delay 5 --timeout 60 --start-at "12:30" --run-times 5 --run-every 70
Something went wrong with that request. Please try again.