Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helloworld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script> | |
<script type='text/javascript'> | |
$(function() | |
{ | |
$('#goBtn').click(function() | |
{ | |
getStats(); | |
setInterval(getStats, 300000); // 5 mins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Threaded delayed_job. Useful for Heroku where each process/dyno costs money. | |
# run "rake jobs:threaded_work[4]" to start 4 worker threads | |
namespace :jobs do | |
desc "Start several delayed_job workers." | |
task :threaded_work, [:num_workers] => :environment do |t,args| | |
args.with_defaults(:num_workers => 1) | |
threads = [] | |
workers = [] | |
workersSemaphore = Mutex.new |