This might help others who decide to use fastest_csv with sidekiq. Known bug that alias_method (used in fastest_csv) will cause sidekiq to crash (sidekiq/sidekiq#2139). Best way around it when working inside a sidekiq worker is to avoid using FastestCSV#shift such as by:
csv_file=File.open('your/csv/file/here.csv','rb')shift(csv_file)# manually handle it insteaddefshiftcsv_fileifline=csv_file.getsline.parse_csvelsenilendend
This might help others who decide to use fastest_csv with sidekiq. Known bug that
alias_method(used in fastest_csv) will cause sidekiq to crash (sidekiq/sidekiq#2139). Best way around it when working inside a sidekiq worker is to avoid using FastestCSV#shift such as by: