view · edit · sidebar · attach · print · history

20130514-debug-ebps-fachinfo-yaml-exporter

<< | Index | >>


Summary

  • Debug ebps Ebook Jobs
  • Debug Fachinfo yaml Exporter Jobs

Commits

Index


Debug Fachinfo yaml exporter

src/util/exporter.rb
# export_yaml for export_daily job.

      run_on_weekday(2) {
        safe_export 'fachinfo.yaml' do
          exporter.export_fachinfos
        end 
      }   
      run_on_weekday(3) {
        safe_export 'patinfo.yaml' do
          exporter.export_patinfos
        end 
      }
  • export_daily export only fachinfo.yaml. (does not export fachinfo_now.yaml)
  • currently, fachinfo_now.yaml is exported manualy.
crontab
1 2 * * *       apache  /var/www/oddb.org/jobs/export_daily
1 6 28 * *       apache  /var/www/oddb.org/jobs/export_fachinfo_yaml
commit

Debug ebps rus script

in /var/ebps/bin
run_ch.oddb_ebooks     ---> fachinfo_now.yaml #=> oddb_firefox_now
run_ch.oddb_now_ebooks ---> fachinfo_now.yaml #=> oddb_firefox_now, oddb_stanza_now, oddb_kindle_now

Debug missing 23 FI titles.

z.B.

  • 00450
  • 00683
% be bin/admin 
ch.oddb> registration("00450").fachinfo.class
-> ODDB::Fachinfo
ch.oddb> registration("00450").fachinfo.description("de")
-> #<ODDB::FachinfoDocument2001:0x00000006e98a58>
ch.oddb> registration("00450").fachinfo.description("de").name.class
-> NilClass
ch.oddb> registration("00450").fachinfo.description("fr").name.class
-> NilClass
ch.oddb> effective_fachinfos.values.select{|fi| fi.description("de").name.nil? }.length
-> 42
ch.oddb> effective_fachinfos.values.select{|fi| fi.description("fr").name.nil? }.length
-> 48

ch.oddb> effective_fachinfos.values.select{|fi| fi.description("fr").name.nil? }.first.registrations.first.iksnr
-> 34057
ch.oddb> registration("34057").fachinfo.description("de").name
-> PRED FORTEŽ 1%
ch.oddb> registration("34057").fachinfo.description("fr").name
-> 
view · edit · sidebar · attach · print · history
Page last modified on May 14, 2013, at 09:58 AM