resque-web 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +39 -0
- data/Rakefile +34 -0
- data/app/assets/images/resque_web/idle.png +0 -0
- data/app/assets/images/resque_web/lifebuoy.png +0 -0
- data/app/assets/images/resque_web/poll.png +0 -0
- data/app/assets/images/resque_web/rails.png +0 -0
- data/app/assets/images/resque_web/working.png +0 -0
- data/app/assets/javascripts/resque_web/application.js +105 -0
- data/app/assets/javascripts/resque_web/bootstrap.js.coffee +4 -0
- data/app/assets/javascripts/resque_web/jquery.relative-date.js +47 -0
- data/app/assets/stylesheets/resque_web/application.css +13 -0
- data/app/assets/stylesheets/resque_web/bootstrap_and_overrides.css +146 -0
- data/app/controllers/resque_web/application_controller.rb +15 -0
- data/app/controllers/resque_web/failures_controller.rb +62 -0
- data/app/controllers/resque_web/overview_controller.rb +7 -0
- data/app/controllers/resque_web/queues_controller.rb +12 -0
- data/app/controllers/resque_web/stats_controller.rb +17 -0
- data/app/controllers/resque_web/workers_controller.rb +18 -0
- data/app/controllers/resque_web/working_controller.rb +4 -0
- data/app/helpers/resque_web/application_helper.rb +65 -0
- data/app/helpers/resque_web/failures_helper.rb +54 -0
- data/app/helpers/resque_web/overview_helper.rb +6 -0
- data/app/helpers/resque_web/queues_helper.rb +72 -0
- data/app/helpers/resque_web/stats_helper.rb +54 -0
- data/app/helpers/resque_web/workers_helper.rb +16 -0
- data/app/helpers/resque_web/working_helper.rb +19 -0
- data/app/views/layouts/resque_web/application.html.erb +58 -0
- data/app/views/resque_web/failures/_failed_job.html.erb +53 -0
- data/app/views/resque_web/failures/_overview.html.erb +24 -0
- data/app/views/resque_web/failures/index.html.erb +33 -0
- data/app/views/resque_web/failures/show.html.erb +20 -0
- data/app/views/resque_web/overview/show.html.erb +4 -0
- data/app/views/resque_web/queues/_queues.html.erb +4 -0
- data/app/views/resque_web/queues/_queues_advanced.html.erb +14 -0
- data/app/views/resque_web/queues/_queues_basic.html.erb +17 -0
- data/app/views/resque_web/queues/index.html.erb +1 -0
- data/app/views/resque_web/queues/show.html.erb +26 -0
- data/app/views/resque_web/stats/key.html.erb +26 -0
- data/app/views/resque_web/stats/keys.html.erb +19 -0
- data/app/views/resque_web/stats/redis.html.erb +14 -0
- data/app/views/resque_web/stats/resque.html.erb +14 -0
- data/app/views/resque_web/workers/index.html.erb +19 -0
- data/app/views/resque_web/workers/show.html.erb +38 -0
- data/app/views/resque_web/working/_working.html.erb +34 -0
- data/app/views/resque_web/working/index.html.erb +1 -0
- data/config/initializers/resque_config.rb +3 -0
- data/config/routes.rb +26 -0
- data/lib/resque_web.rb +4 -0
- data/lib/resque_web/engine.rb +8 -0
- data/lib/resque_web/version.rb +3 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +16 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1351 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/00d7e4d5eefd54b7a2b5415b3f4f0619 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/02a14af754d35f9d015020c827dc4aad +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/060ba1e3c27350033cb45603b40ec988 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0aa776b181456a7f52abf642461a339d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0ad1874459c89c2b7b055fbfc086093c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0d7923c4212365467631d19aafa9ae2c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/14882e8f1f7d019b37950944b1053585 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/15d6969ab8e6cc86d7e4ec72a9f29473 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/16bf950594dc4e49b471963acc1a15d4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1a3e7714b622f1753a451d9417ce2934 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1cabd5edcfb985bf0e754597f453c2d8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1f93ad5cf36f5c7e5bec2b9cecedfe5c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/201c8ed8e16a6bad90959a270eb42af5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2352f28661a506c2c3e144d28bf6a6ca +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2359b362b8c593ecacced9da62d27781 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/23d4f21bc0a61aa91d818a1cbefbfa38 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/24fe9e2e6b73f666f6f50460b5fe12db +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/267d0243760c55e0ff8039158fbfa98d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2768ee82dea9ebd337e20faa4c08eda4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/29c7be01674c14314b1321da043c31cd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2b60e487f5394d3820f0d9008328de94 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/32fdb0387d5cd8aba5f0185f10ccaf6b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/36bf84c5368755f6fbc0c1808cfe7c5d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/373b0c58027ae58f732cc7e48e62a522 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3fde4850b9ad7516ecd360a4c20cae8b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/47e84a019922f151c4815a3cd738beb6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4d22200fb380d8ae9d5f07525088622f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4ef303154e5471cbc5a1b7b312a5fbd3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4ff25675e9d69ac5d68dff1d4372f3d1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/50caadcf8e73c45ce4720b9a1f6f833d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/510c0a3f6fbee936a507ab77436c1713 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/530c2753f447f8c666f628c5b5d65782 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/54745c7a7543c4a5899cf4a7c285c505 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/58c7ee7b861e3bd17b1eb3c09a0ccb7e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5ae7043abf033ad9c1db3190239296f4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5d4f24f37f52ec24be03c3ae69a710c2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5e3a1f4192671516ef3c5b040d3a04ec +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6104f6b3d705c20e2485d2bb6f388f11 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/61883ec63e4f9e11b14de9de4ca5157c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/61a6ced52f8ef4bc0e18a0f42c45376e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/67bdb77a662fa6c60ca6ec804ec4e72c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/67c23683dbf4e2e805770a041018f256 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6c9f5bc4bee5fb0d8056b4c75fafef1e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6e4717cabfe91d260f46c4adb0acae43 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6ee0033c04cc130b81becd605709135b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/706b6b4aca8f925cbbff8a4bf161cd03 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/722f2a204ab15e0261bc526aa3ea4a3d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/79973091687030ef9b77e73884ab0c78 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7bdd86db98ea61e2b45fa7a427617a3c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7eab29f4bea09503894bcabf91a971b0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7eadf8ac6771f3b20086c935c28b0b95 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/815e702f76d5de58787af0b2954544b4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/821dd3a673cddb023723b5a4b98fd493 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8362592cdd4c1b1517d5e3fba760f0d3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8855c560fba1bd85e26f55568144a4d5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/885603ea8649d78da8ba6674b31dd289 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/88e93f0cb6b7ecfaf55472f4aade58f9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8c71f2e04c07ba078f3fed661fea07ca +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8c86ace126a96b8c90b30f12a136fa81 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8d0a322f394a2e12a350a4caf9b2c80e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8fbf100e961e22baca23d1850b41e4d5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9048f98bf002a866ef7831c71f7124d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/92ad487c49bf84126118e1ada216eb52 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/938ed33abaeec8bfc22e533de5d92fd6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9780116ab7edfbe2fc71dab2b7d361f8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/99cfb6fcfcd8fc23cc41ccfa12576a38 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9a13af754490df860af9928bcd00fbd3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9b1a227146b80c04976c0a885c248f82 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9f48e8c551b5f898ca5667d92067e33d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a0113b5b044a3468edab999708723b3d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a64f702451323ab621d1836cdb352123 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aa5c2d7aaabb3df93a734411e42a3bfc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/abd1afcb16ba6e09d6002038d03d56b7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/acda3fb5202cc9aefb599fd43a058105 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ade126a20aa1092d23cc0afaf17c164b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ae5d2a05a28b6aea379acad80dd0b343 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b02ffe2d07d7ce606d1c3a0656d82bfe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b13218598c5f77a5c239c023e3fff575 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b1952fdaabef91d96f551aead4200069 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b1d2f68953967d51ade8c6d223c2a2aa +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b4505cc242ed408c99b7b2466d1f6099 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b5e993500308f32fff09cd7e0ee89efd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b99c09238dcefa3d795f9f7594d819b7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bae95ffbad9e9c33e3d4492a4b986c0b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/baf363f79f6cd9b6a2b3688b77b58aba +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bc2f95ead37a4ea1f050f6f21a446d7c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/be47e0dd1cd9914997311db690cf38d7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bfc8b2b4f4c3f91fdc360b426adb2d94 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c0a0dbfbf315a3edf26670c0f5ca7ecb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c11cf414168c34e88a7c152937e0041c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c2607067849ffce81a050a64bdf2e31b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c29df33a00fdc6a29f73386c3e0ae5f4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c4902d10c0dbd2ef1e2edbb71c13456a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c79e7b418287c2b4155c8aecd24be5a7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c7f7c001ba2ad5623ead9e6f2d6188e9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c81b1182b5c851c35680c7acc88d4812 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c90e9c573e54b170859449cb2ceb3a7a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c981eb8fa4e3e9ae04dbf1b7b8d7f395 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cb1265ab418e2013b182c8deafcf897e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cee0dd733846ecda4ac940c6f033fb28 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ceebd7d45f23e34cda37b878e2af5b18 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d0cf471bea69c5583f5cb22f924c9d81 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d2c37ec460e77ea6ea41bbc670889f89 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d3347e44949d8909be6fb1d64cfb9967 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d592f7f190f2ed0852437aeaf413ffb7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d9f00b466d45c065d1281b100de9311f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dc0f4af8c3937297fe2fd3f5f4906763 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e05ff4f8801c918dc89fef1d37880568 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e2bae9a171482111f585b481dc2c04c8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e46693bc631ec8f6c63f67a75c33f785 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e5d439d83d3f264ee47b9f82005a4eef +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e64aa4663498f985d9a5c2c65a0f2401 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eb8ceeb4c92c6bd813a541d672206eff +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ebf2449fa00d257e175bd62b6a757bd3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eece52c31fc27f6dbb1d3e9dad9c6a67 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f28711adf8b5584c6956034b86f4cbee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f375226842bb99acc2a5a8f2396b54d3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f8181ea5c5ea111ed8a3f0c5c0d59ebe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f83b6fecae01f81acf9c39e710258b98 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fa282debca304f7fac3307d091f5ecac +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fab96f7950f4025de51c865e118904a7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fee8b1f906f22a2ad21ffc8f21dec56b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ff4777d609a0a67e637cc1530d6dc7b2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/00d7e4d5eefd54b7a2b5415b3f4f0619 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0aa776b181456a7f52abf642461a339d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0ad1874459c89c2b7b055fbfc086093c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0d7923c4212365467631d19aafa9ae2c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/16bf950594dc4e49b471963acc1a15d4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1a3e7714b622f1753a451d9417ce2934 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/201c8ed8e16a6bad90959a270eb42af5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2359b362b8c593ecacced9da62d27781 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/23d4f21bc0a61aa91d818a1cbefbfa38 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/267d0243760c55e0ff8039158fbfa98d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2b60e487f5394d3820f0d9008328de94 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/32fdb0387d5cd8aba5f0185f10ccaf6b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/373b0c58027ae58f732cc7e48e62a522 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4d22200fb380d8ae9d5f07525088622f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4ef303154e5471cbc5a1b7b312a5fbd3 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/50caadcf8e73c45ce4720b9a1f6f833d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/510c0a3f6fbee936a507ab77436c1713 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/54745c7a7543c4a5899cf4a7c285c505 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5d4f24f37f52ec24be03c3ae69a710c2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5e3a1f4192671516ef3c5b040d3a04ec +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/61883ec63e4f9e11b14de9de4ca5157c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/61a6ced52f8ef4bc0e18a0f42c45376e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/67c23683dbf4e2e805770a041018f256 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6c9f5bc4bee5fb0d8056b4c75fafef1e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6e4717cabfe91d260f46c4adb0acae43 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/722f2a204ab15e0261bc526aa3ea4a3d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/815e702f76d5de58787af0b2954544b4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8362592cdd4c1b1517d5e3fba760f0d3 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8855c560fba1bd85e26f55568144a4d5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/88e93f0cb6b7ecfaf55472f4aade58f9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8c71f2e04c07ba078f3fed661fea07ca +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8d0a322f394a2e12a350a4caf9b2c80e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8fbf100e961e22baca23d1850b41e4d5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/92ad487c49bf84126118e1ada216eb52 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/938ed33abaeec8bfc22e533de5d92fd6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/9780116ab7edfbe2fc71dab2b7d361f8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/abd1afcb16ba6e09d6002038d03d56b7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ade126a20aa1092d23cc0afaf17c164b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ae5d2a05a28b6aea379acad80dd0b343 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b13218598c5f77a5c239c023e3fff575 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b1952fdaabef91d96f551aead4200069 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b1d2f68953967d51ade8c6d223c2a2aa +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b4505cc242ed408c99b7b2466d1f6099 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b99c09238dcefa3d795f9f7594d819b7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c11cf414168c34e88a7c152937e0041c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c29df33a00fdc6a29f73386c3e0ae5f4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c90e9c573e54b170859449cb2ceb3a7a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d2c37ec460e77ea6ea41bbc670889f89 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d592f7f190f2ed0852437aeaf413ffb7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d9f00b466d45c065d1281b100de9311f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e05ff4f8801c918dc89fef1d37880568 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e46693bc631ec8f6c63f67a75c33f785 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e5d439d83d3f264ee47b9f82005a4eef +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/eb8ceeb4c92c6bd813a541d672206eff +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f8181ea5c5ea111ed8a3f0c5c0d59ebe +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/fee8b1f906f22a2ad21ffc8f21dec56b +0 -0
- data/test/functional/failures_controller_test.rb +73 -0
- data/test/functional/overview_controller_test.rb +7 -0
- data/test/functional/queues_controller_test.rb +20 -0
- data/test/functional/stats_controller_test.rb +7 -0
- data/test/functional/workers_controller_test.rb +7 -0
- data/test/functional/working_controller_test.rb +7 -0
- data/test/test_helper.rb +23 -0
- data/test/unit/helpers/failures_helper_test.rb +4 -0
- data/test/unit/helpers/jobs_helper_test.rb +4 -0
- data/test/unit/helpers/overview_helper_test.rb +4 -0
- data/test/unit/helpers/queues_helper_test.rb +4 -0
- data/test/unit/helpers/retry_controller_helper_test.rb +4 -0
- data/test/unit/helpers/stats_helper_test.rb +4 -0
- data/test/unit/helpers/workers_helper_test.rb +4 -0
- data/test/unit/helpers/working_helper_test.rb +4 -0
- metadata +632 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
<table class="table table-bordered" id="failed">
|
2
|
+
<tbody>
|
3
|
+
<tr class="total">
|
4
|
+
<td class="queue">Total Failed</td>
|
5
|
+
<td class="center"><%= Resque::Failure.count %></td>
|
6
|
+
</tr>
|
7
|
+
|
8
|
+
<% Resque::Failure.queues.sort.each do |queue| %>
|
9
|
+
<tr>
|
10
|
+
<th><%= link_to queue, failure_path(queue), :class => 'label label-info' %></th>
|
11
|
+
<th style="width:75px;" class="center"><%= Resque::Failure.count(queue) %></th>
|
12
|
+
</tr>
|
13
|
+
|
14
|
+
<% failure_class_counts(queue).each do |klass, count| %>
|
15
|
+
<tr id="<%= klass %>">
|
16
|
+
<td>
|
17
|
+
<%= link_to klass, failure_path(queue, :class => klass), :class => "failed failed_class" %>
|
18
|
+
</td>
|
19
|
+
<td style="text-align: center;" class="failed<%= (count.to_i > 1000) ? '_many' : '' %>"><%= count %></td>
|
20
|
+
</tr>
|
21
|
+
<% end %>
|
22
|
+
<% end %>
|
23
|
+
</tbody>
|
24
|
+
</table>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<% if multiple_failure_queues? && !params[:queue] %>
|
2
|
+
<h1>All Failure Queues</h1>
|
3
|
+
<% else %>
|
4
|
+
<h1>Failed Jobs <%= "on '#{params[:queue]}'" if params[:queue] %> <%= "with class '#{params[:class]}'" if params[:class] %></h1>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% unless failure_size.zero? %>
|
8
|
+
<%= form_tag(destroy_all_failures_path(:queue=>params[:queue]), :method => :delete) do %>
|
9
|
+
<%= submit_tag "Clear #{params[:queue] ? "'#{params[:queue]}'" : 'Failed'} Jobs", :confirm => "Are you sure?", :class => 'btn btn-danger' %>
|
10
|
+
<% if failure_size >ApplicationHelper::PER_PAGE %>
|
11
|
+
<%= link_to "Last page »".html_safe, {:start => (failure_size - ApplicationHelper::PER_PAGE)}, :class => 'btn' %>
|
12
|
+
<% end %>
|
13
|
+
<% end %>
|
14
|
+
<%= form_tag(retry_all_failures_path(:queue=>params[:queue]), :method => :put) do %>
|
15
|
+
<%= submit_tag "Retry #{params[:queue] ? "'#{params[:queue]}'" : 'Failed'} Jobs", :class => 'btn' %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
|
19
|
+
<% if multiple_failure_queues? && !params[:queue] %>
|
20
|
+
<p class="sub"><b><%= Resque::Failure.queues.size %></b> failure queues total</sub>
|
21
|
+
<%= render :partial => 'overview' %>
|
22
|
+
<% else %>
|
23
|
+
<p class="sub">Showing <%= failure_start_at %> to <%= failure_end_at %> of <b><%= failure_size %></b> jobs</p>
|
24
|
+
|
25
|
+
<ul class="failed">
|
26
|
+
<% each_failure do |id, job| %>
|
27
|
+
<%= render :partial => 'failed_job', :locals => {:id => id, :job => job} %>
|
28
|
+
<% end %>
|
29
|
+
</ul>
|
30
|
+
|
31
|
+
<%= pagination :start => failure_start_at, :total => failure_size unless params[:class] %>
|
32
|
+
|
33
|
+
<% end %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<h1>Failed Jobs <%= "on '#{params[:id]}'" if params[:id] %> <%= "with class '#{params[:class]}'" if params[:class] %></h1>
|
2
|
+
|
3
|
+
<% if @jobs.any? %>
|
4
|
+
<%= form_tag("/failures/#{params[:id] if params[:id]}", :method => :delete) do %>
|
5
|
+
<%= submit_tag "Clear #{params[:id] ? "'#{params[:id]}'" : 'Failed'} Jobs", :confirm => "Are you sure?", :class => 'btn btn-danger' %>
|
6
|
+
<% end %>
|
7
|
+
<%= form_tag("/failures/#{params[:id] ? params[:id] : "all"}/retry") do %>
|
8
|
+
<%= submit_tag "Retry #{params[:id] ? "'#{params[:id]}'" : 'Failed'} Jobs", :class => 'btn' %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<p class="sub">Showing <%= failure_start_at %> to <%= failure_end_at %> of <b><%= failure_size %></b> jobs</p>
|
13
|
+
|
14
|
+
<ul class="failed">
|
15
|
+
<% @jobs.each do |id, job| %>
|
16
|
+
<%= render :partial => 'failed_job', :locals => {:id => id, :job => job} %>
|
17
|
+
<% end %>
|
18
|
+
</ul>
|
19
|
+
|
20
|
+
<%= pagination :start => failure_start_at, :total => failure_size unless params[:class] %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<table class="table table-bordered queues">
|
2
|
+
<tr>
|
3
|
+
<th>Name</th>
|
4
|
+
<th>Jobs</th>
|
5
|
+
<th>Failures</th>
|
6
|
+
</tr>
|
7
|
+
<% queue_names.each do |queue_name| %>
|
8
|
+
<tr>
|
9
|
+
<td class="queue"><%= link_to queue_name, queue_path(queue_name) %></td>
|
10
|
+
<td class="size"><%= queue_size(queue_name) %></td>
|
11
|
+
<td class="failure"><%= failed_queue_info(queue_name) %></td>
|
12
|
+
</tr>
|
13
|
+
<% end %>
|
14
|
+
</table>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<table class="table table-bordered queues">
|
2
|
+
<tr>
|
3
|
+
<th>Name</th>
|
4
|
+
<th>Jobs</th>
|
5
|
+
</tr>
|
6
|
+
<% queue_names.each do |queue_name| %>
|
7
|
+
<tr>
|
8
|
+
<td class="queue"><%= link_to queue_name, queue_path(queue_name) %></td>
|
9
|
+
<td class="size"><%= queue_size(queue_name) %></td>
|
10
|
+
</tr>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<tr class="<%= failed_queue_class('failed') %> first_failure">
|
14
|
+
<td class="queue failed"><%= link_to 'failed', failures_path, :class => 'queue' %></td>
|
15
|
+
<td class="size"><%= failed_queue_size('failed') %></td>
|
16
|
+
</tr>
|
17
|
+
</table>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render 'queues' %>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<h1>Pending jobs on <span class='hl'><%= params[:id] %></span></h1>
|
2
|
+
|
3
|
+
<%= form_tag(queue_path(params[:id]), :method => :delete, :class => 'remove-queue') do %>
|
4
|
+
<%= submit_tag "Remove Queue", :confirm => "Are you absolutely sure? This cannot be undone.", :class => 'btn btn-danger' %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<p class="sub">Showing <%= queue_start_at %> to <%= queue_end_at %> of <b><%= queue_size %></b> jobs</p>
|
8
|
+
<table class="table table-bordered jobs">
|
9
|
+
<tr>
|
10
|
+
<th>Class</th>
|
11
|
+
<th>Args</th>
|
12
|
+
</tr>
|
13
|
+
<% queue_jobs.each do |job| %>
|
14
|
+
<tr>
|
15
|
+
<td class='class'><%= job['class'] %></td>
|
16
|
+
<td class='args'><%=h job['args'].inspect %></td>
|
17
|
+
</tr>
|
18
|
+
<% end %>
|
19
|
+
<% if queue_jobs.empty? %>
|
20
|
+
<tr>
|
21
|
+
<td class='no-data' colspan='2'>There are no pending jobs in this queue</td>
|
22
|
+
</tr>
|
23
|
+
<% end %>
|
24
|
+
</table>
|
25
|
+
|
26
|
+
<%= pagination :start => queue_start_at, :total => queue_size %>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<% if redis_key_type(params[:key]) == 'string' %>
|
2
|
+
<h1>Key "<%= params[:id] %>" is a string</h1>
|
3
|
+
<h2>size: <%= redis_key_size(params[:id]) %></h2>
|
4
|
+
<table class="table table-bordered">
|
5
|
+
<tr>
|
6
|
+
<td><%= redis_get_array(key) %></td>
|
7
|
+
</tr>
|
8
|
+
</table>
|
9
|
+
<% else %>
|
10
|
+
<p class="sub">
|
11
|
+
Showing <%= start = params[:start].to_i %> to <%= start + 20 %> of <b><%=size = redis_key_size(params[:id]) %></b>
|
12
|
+
</p>
|
13
|
+
|
14
|
+
<h1>Key "<%= params[:id] %>" is a <%= redis_key_type(params[:id]) %></h1>
|
15
|
+
<table class="table table-bordered">
|
16
|
+
<% redis_get_array(params[:id], start).each do |row| %>
|
17
|
+
<tr>
|
18
|
+
<td>
|
19
|
+
<%= row %>
|
20
|
+
</td>
|
21
|
+
</tr>
|
22
|
+
<% end %>
|
23
|
+
</table>
|
24
|
+
|
25
|
+
<%= pagination :start => start, :total => size %>
|
26
|
+
<% end %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<h1>Keys owned by <%= Resque %></h1>
|
2
|
+
<p class="sub">(All keys are actually prefixed with "<%= Resque.redis.namespace %>:")</p>
|
3
|
+
|
4
|
+
<table class="table table-bordered stats">
|
5
|
+
<tr>
|
6
|
+
<th>key</th>
|
7
|
+
<th>type</th>
|
8
|
+
<th>size</th>
|
9
|
+
</tr>
|
10
|
+
<% Resque.keys.sort.each do |key| %>
|
11
|
+
<tr>
|
12
|
+
<th>
|
13
|
+
<%= link_to key, "/stats/keys/#{key}" %>
|
14
|
+
</th>
|
15
|
+
<td><%= redis_key_type key %></td>
|
16
|
+
<td><%= redis_key_size key %></td>
|
17
|
+
</tr>
|
18
|
+
<% end %>
|
19
|
+
</table>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<h1 class="wi">Workers</h1>
|
2
|
+
<p class="intro">The hostnames below all have registered workers. Select a hostname to view its workers, or "all" to see all workers.</p>
|
3
|
+
|
4
|
+
<table class="table table-bordered queues">
|
5
|
+
<tr>
|
6
|
+
<th>Hostname</th>
|
7
|
+
<th>Workers</th>
|
8
|
+
</tr>
|
9
|
+
<% worker_hosts.each do |hostname, workers| %>
|
10
|
+
<tr>
|
11
|
+
<td class="queue"><%= link_to hostname, worker_path(hostname), :class => 'queue' %></td>
|
12
|
+
<td class="size"><%= workers.size %></td>
|
13
|
+
</tr>
|
14
|
+
<% end %>
|
15
|
+
<tr class="failed">
|
16
|
+
<td class="queue failed"><%= link_to "all workers", worker_path('all'), :class => 'queue' %></td>
|
17
|
+
<td class="size"><%= Resque.workers.size %></td>
|
18
|
+
</tr>
|
19
|
+
</table>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<h1 class="wi"><%= @workers.size %> Workers</h1>
|
2
|
+
<p class="intro">The workers listed below are all registered as active on your system.</p>
|
3
|
+
|
4
|
+
<table class="table table-bordered workers">
|
5
|
+
<tr>
|
6
|
+
<th> </th>
|
7
|
+
<th>Where</th>
|
8
|
+
<th>Queues</th>
|
9
|
+
<th>Processing</th>
|
10
|
+
</tr>
|
11
|
+
<% @workers.each do |worker| %>
|
12
|
+
<tr class="<% worker.state %>">
|
13
|
+
<td class="icon"><%= image_tag "#{worker.state}.png", :alt => worker.state, :title => worker.state %></td>
|
14
|
+
|
15
|
+
<% host, pid, queues = worker.to_s.split(':') %>
|
16
|
+
<td class="where"><%= host %>:<%= pid %></td>
|
17
|
+
<td class="queues">
|
18
|
+
<% queues.split(',').each do |queue_name| %>
|
19
|
+
<%= link_to queue_name, queue_path(queue_name), :class => 'label label-info' %>
|
20
|
+
<% end %>
|
21
|
+
</td>
|
22
|
+
<td class="process">
|
23
|
+
<% data = worker.processing || {} %>
|
24
|
+
<% if data['queue'] %>
|
25
|
+
<code><%= data['payload']['class'] %></code>
|
26
|
+
<small><%= data['run_at'] %></small>
|
27
|
+
<% else %>
|
28
|
+
<span class="waiting">Waiting for a job...</span>
|
29
|
+
<% end %>
|
30
|
+
</td>
|
31
|
+
</tr>
|
32
|
+
<% end %>
|
33
|
+
<% if @workers.empty? %>
|
34
|
+
<tr>
|
35
|
+
<td colspan="4" class="no-data">There are no registered workers</td>
|
36
|
+
</tr>
|
37
|
+
<% end %>
|
38
|
+
</table>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<h1 class="wi"><%= worker_jobs.size %> of <%= workers.size %> Workers Working</h1>
|
2
|
+
<p class="intro">The list below contains all workers which are currently running a job.</p>
|
3
|
+
<table class="table table-bordered workers">
|
4
|
+
<tr>
|
5
|
+
<th> </th>
|
6
|
+
<th>Where</th>
|
7
|
+
<th>Queue</th>
|
8
|
+
<th>Processing</th>
|
9
|
+
</tr>
|
10
|
+
<% if worker_jobs.empty? %>
|
11
|
+
<tr>
|
12
|
+
<td colspan="4" class="no-data">Nothing is happening right now...</td>
|
13
|
+
</tr>
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
<% sorted_worker_jobs.each do |worker, job| %>
|
17
|
+
<tr>
|
18
|
+
<td class="icon"><%= image_tag "#{worker.state}.png", :alt => worker.state, :title => worker.state %></td>
|
19
|
+
<% host, pid, queues = worker.to_s.split(':') %>
|
20
|
+
<td class="where"><%= link_to "#{host}:#{pid}", worker_path(host) %></td>
|
21
|
+
<td class="queues queue">
|
22
|
+
<%= link_to job['queue'], queue_path(job['queue']), :class => 'label label-info' %>
|
23
|
+
</td>
|
24
|
+
<td class="process">
|
25
|
+
<% if job['queue'] %>
|
26
|
+
<code><%= job['payload']['class'] %></code>
|
27
|
+
<small><%= job['run_at'] %></small>
|
28
|
+
<% else %>
|
29
|
+
<span class="waiting">Waiting for a job...</span>
|
30
|
+
<% end %>
|
31
|
+
</td>
|
32
|
+
</tr>
|
33
|
+
<% end %>
|
34
|
+
</table>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render 'working' %>
|
data/config/routes.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# Match IDs with dots in them
|
2
|
+
id_pattern = /[^\/]+/
|
3
|
+
|
4
|
+
ResqueWeb::Engine.routes.draw do
|
5
|
+
|
6
|
+
resource :overview, :only => [:show], :controller => :overview
|
7
|
+
resources :working, :only => [:index]
|
8
|
+
resources :queues, :only => [:index,:show,:destroy], :constraints => {:id => id_pattern}
|
9
|
+
resources :workers, :only => [:index,:show], :constraints => {:id => id_pattern}
|
10
|
+
resources :failures, :only => [:show,:index,:destroy] do
|
11
|
+
member do
|
12
|
+
put 'retry'
|
13
|
+
end
|
14
|
+
collection do
|
15
|
+
put 'retry_all'
|
16
|
+
delete 'destroy_all'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
get '/stats' => "stats#index"
|
21
|
+
get '/stats/:action', :controller => :stats
|
22
|
+
get '/stats/:action/:id', :controller => :stats, :constraints => {:id => id_pattern}
|
23
|
+
|
24
|
+
root :to => 'overview#show'
|
25
|
+
|
26
|
+
end
|
data/lib/resque_web.rb
ADDED
data/test/dummy/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*/
|