view · edit · sidebar · attach · print · history

20130319-change-swissmedicinfo-fi-pi-jobs

<< | Index | >>


Summary

  • Update rebuild_indices job to take argument
  • Divide swissmedicinfo job by target {:fi|:pi|:both}

Commits

Index


Add argument for rebuild_indices job

$ ruby jobs/rebuild_indices
$ ruby jobs/rebuild_indices doctor_index
commit

Divide Swissmedicinfo Jobs by target

option is {:fi|:pi|:both}

# bin/admin
ch.oddb> TextInfoPlugin.new(self).import_swissmedicinfo(:fi)
ch.oddb> Updater.new(self).update_textinfo_swissmedicinfo({:target => :pi})

# Job
$ ruby jobs/update_textinfo_swissmedicinfo --target=pi --reparse
$ ruby jobs/update_textinfo_swissmedicinfo --target=both
$ ruby jobs/update_textinfo_swissmedicinfo --target=fi #=> same without option

Job module does not allow to use OptionParser.

process: jobs/update_textinfo_swissmedicinfo
init system
init system: 6.458067802
setup drb-delegation
/var/ch.oddb.org/log/job.pid is deleted
/path/to/ruby/1.9.1/drb/drb.rb:736:in `rescue in block in open': druby://localhost:10000 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> (DRb::DRbConnError)
        from /path/to/ruby/1.9.1/drb/drb.rb:730:in `block in open'
        from /path/to/ruby/1.9.1/drb/drb.rb:729:in `each'
        from /path/to/ruby/1.9.1/drb/drb.rb:729:in `open'
        from /path/to/ruby/1.9.1/drb/drb.rb:1191:in `initialize'
commit
view · edit · sidebar · attach · print · history
Page last modified on March 19, 2013, at 08:29 AM