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
#!/bin/sh | |
######################################################### | |
# usage | |
#do_mongoexport '2015-04-01' '2015-04-02' 'hoge' | |
######################################################### | |
get_millis() | |
{ | |
if [ $# != 1 ]; then |
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
# do only retry if not yet retried | |
def retry_failure | |
(Resque::Failure.count-1).downto(0).each do |i| | |
job = Resque::Failure.all(i, 1) | |
puts job['queue'] | |
puts job['failed_at'] | |
puts "retried_at: #{job['retried_at'].present?}" | |
puts job['error'][0..512] | |
if !job['retried_at'].present? | |
puts "requeue: #{i}" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.