view · edit · sidebar · attach · print · history

20120822-debug-download-export-list-job-processs-management

<< | Index | >>


Summary

  • Created duplicate updater detection in Job.
    • use /var/www/oddb.org/log/job.pid

Commits

Index


Debug download_export list

debugged example and datadesc lisnks.

commit

Job process management

Create Checker to detect duplirate updater by PID Checking.

  • update_*
  • import_*

pid file

in /var/www/oddb.org/log/job.pid

8055,import_bsv,2012-08-20 15:21:25 +0900

Notification by E-mail

# subject
ch.ODDB.org Report - Duplicate Job: import_daily - 08/2012

# body
Task: Job import_daily
Error: Job was halted (Duplicate Updater).
Message: Previous Job import_bsv (pid: 8055) is running.

/home/yasuhiro/Documents/workspace/ywesee/var/ch.oddb.org/log/job.pid
commit

Debug migel_search

Continue Debug of error in migel_search.

Problem
Error
Encoding::CompatibilityError incompatible character encodings: UTF-8 and ASCII-8BIT

Migel::Item has multibyte encoding string as unit. at qty_unit in src/view/additional_information.rb

p model.unit
  #=> "St\xC3\xBCck"

Some another String has Problem against This unit in above.

reorganize_components(:migel_item_list_components)

in src/custom/lookandfeelwrapper.rb

    def migel_item_list_components
      {    
        [0,0]   =>  :pharmacode,
        [1,0]   =>  :ean_code,
        [2,0]   =>  :article_name,
        [3,0]   =>  :size,
        [4,0]   =>  :status,
        [5,0]   =>  :companyname,
        [6,0]   =>  :ppub,
        #[7,0]   =>  :google_search,
        #[8,0]   =>  :twitter_share,
      }    
    end 

prevented encoding error by these Migel::Items in oddb view class.

commit
view · edit · sidebar · attach · print · history
Page last modified on August 23, 2012, at 08:28 AM