numbers for people.

IronWorker is really easy to use

Background: I’m putting together a demo for PagerDuty to show off how easy CORS makes our configuration API, so I threw together a quick script and originally just set it to sleep a minute and loop.

IronWorker is probably a better solution though, since I really want this to run quietly in the background forever. It was impressively easy to get started, even after I skipped out of the walkthrough.

  1. gem install iron_worker_ng
  2. create “trigger_pd.worker
  3. iron_worker upload trigger_pd
  4. Schedule the task to run every minute through the UI1

And bam! my script runs happily every minute. It does some quick heuristics to figure out the probability of my imaginary service triggering an incident and randomly triggers an incident or doesn’t. You can click here to see the results.

  1. One amusing quirk, the UI to schedule a task seems not to scroll, and so I couldn’t see or click the “Schedule Task” button. One of the benefits of having developers as customer though is that we don’t mind popping open a console and changing the CSS to use a page

Comments are closed.