Results 1 to 2 of 2

Thread: errTmBackgroundHoldoff

  1. #1

    errTmBackgroundHoldoff

    As in..

    Code:
    [TiVo [p0] /var/hack/guide]# ./lssources
    commit failed (errTmBackgroundHoldoff)
    
    [TiVo [p0] /var/hack/guide]# ./lssources
    Listing source 2274/25
    retrying after errTmBackgroundHoldoff ...
    SignalSource 2274/25 {
      Connector      = 1
      ProviderName   = FTA
      RFChannel      = 0
      SignalType     = 1
    }
    It's kind of annoying. Often have to retry a script several times before it succeeds. Is there anything I can do about this?

  2. #2
    Join Date
    Mar 2004
    Location
    Victoria, Melbourne
    Posts
    190

    Post Solution? Make the script retry

    I don't know if this is any consolation:

    http://lists.merlins.org/archives/ex...ly/001878.html

    Code:
    #
    # I do not use the regular RetryTransaction because I do not like the fact
    # it adds a puts in the middle if a transaction fails
    proc MyRetryTransaction { body } {
    global errorInfo errorCode
    
    while { 1 } {
    set code [catch {transaction {uplevel $body}} string]
    if { $code == 0 } {
    return $string
    } elseif { $code == 1 } {
    if { $errorCode == "errTmActiveLockConflict" ||
    $errorCode == "errTmBackgroundHoldoff" ||
    $errorCode == "errFsLockConflict" } {
    after 100
    # retry the transaction
    continue
    }
    return -code error -errorinfo $errorInfo -errorcode $errorCode $string
    } elseif { $code == 2 } {
    return -code return $string
    } elseif { $code == 3 } {
    return -code break $string
    } elseif { $code == 4 } {
    return -code continue $string
    }
    }
    }
    I'm not too sure what this does because I'm not a TCL programmer, but I have a feeling that it will retry the script. The code may have to be adapted slightly though.

    Cheers
    Ex Tivo Owner.
    Philips Tivo
    Version 1.3 Emulator Image from Minnie
    200Gig Western Digital HDD
    No Turbonet or Cachecard
    Slices: Cable Digital FTA

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •