Don't forget to lycansubscribe

cleaner stop on ctrl+c

Changed files
+10
lib
tasks
+10
lib/tasks/import.rake
··· 51 51 52 52 Thread.new { downloader.import_from_queue(queue) } 53 53 54 + trap("SIGINT") { 55 + puts "\n\n\n\n\n" 56 + exit 57 + } 58 + 54 59 importer.run_import(ENV['UNTIL']) 55 60 end 56 61 57 62 task :process_posts do 58 63 queue = LikeQueue.new(Like.where(post: nil).to_a) 59 64 report = ImportReport.new 65 + 66 + trap("SIGINT") { 67 + puts "\n\n\n\n\n" 68 + exit 69 + } 60 70 61 71 downloader = PostDownloader.new 62 72 downloader.report = report