require 'rubygems'
require 'clockwork'
require 'resque'
require 'uri'

require './app.rb'
require File.expand_path('../graph_data', __FILE__)

include Clockwork

handler { |job|
  puts "starting job"
  Resque.enqueue(job)
}

every 12.hours, GraphWorker

require 'rubygems'
require 'clockwork'
require 'resque'
require 'uri'

require './app.rb'
require File.expand_path('../graph_data', __FILE__)

include Clockwork

handler { |job|
  Resque.enqueue(job)
}

every 10.seconds, GraphWorker

Set Clockwork queue to 10 seconds for testing
Set Clockwork queue to 10 seconds for testing
