mirakc / mirakc-arib

mirakc-tools for Japanese TV broadcast contents
Apache License 2.0
24 stars 6 forks source link

scan-services doesn't finish #31

Open masnagam opened 2 years ago

masnagam commented 2 years ago

log message from mirakc:

mirakc_core::job: update-schedules: acquiring semaphore...
mirakc_core::job: update-schedules: Already running, skip

scan-services got stuck:

$ ps
...
 6582 root     12h57 recpt1 --device /dev/px4video2 13 - -
 6583 root      3h52 mirakc-arib scan-services --sids=23656

config.yml

channels:
  - name: JCOM-TV
    type: GR
    channel: '13'
    services: [23656]
masnagam commented 2 years ago

One of the solutions is using the timeout command like below as described in できるmirakc:

jobs:
  scan-services:
    # stop after 30s
    command: >-
      timeout 30 mirakc-arib scan-services
      {{#sids}} --sids={{{.}}}{{/sids}}{{#xsids}} --xsids={{{.}}}{{/xsids}}
    schedule: '0 31 5 * * * *'