Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.md
System.Web.Extensions.dll
enqueue.cs
hello.cs
hello.worker

README.md

Hello Mono Worker!

This is one of the simplest workers you can run:

  1. Be sure you've setup your Iron.io credentials, see main README.md.
  2. Compile your worker using Microsoft Visual Studio
    1. or if you're using mono: gmcs hello.cs or if you see message that Script doesn't exist then use gmcs -r:System.Web.Extensions.dll hello.cs
  3. Run iron_worker upload hello to upload the worker code package to IronWorker. This reads the hello.worker file to build the package. .worker files define the worker dependencies.
  4. Queue up a task:
    1. From command line: iron_worker queue hello --payload '{"query":"xbox"}'
    2. From code: Open enqueue.cs and edit it to set your token and project_id. Then compile and run it (mono users: gmcs enqueue.cs; mono enqueue.exe).
  5. Look at HUD to view your tasks running, check logs, etc.
  6. Schedule a task:
    1. From command line: iron_worker schedule hello --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.