Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 698 Bytes

README.markdown

File metadata and controls

26 lines (18 loc) · 698 Bytes

Scheduler Service

Scheduler Service is a JSON web service for invoking delayed triggers or jobs through callback URLs.

Quick Intro

Once up and running, your clients can call this service with two parameters - callback_url and scheduled_for time. It will invoke the callback_url at the scheduled time.

Here is how you will do call the service in Ruby:

require 'rest_client'
require 'json'

# call example.com after 5 minutes from now
RestClient.post "http://service_server_name/jobs/new", { :url => "http://www.example.com", :callback_at => Time.now.utc + 300 }.to_json,
:content_type => :json, :accept => :json

Stack

  • Sinatra
  • MongoDB