PDA

View Full Version : errTmBackgroundHoldoff



Yem
13-05-2004, 07:20 PM
As in..


[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?

tenty
17-05-2004, 07:20 AM
I don't know if this is any consolation:

http://lists.merlins.org/archives/extractstream/2002-July/001878.html



#
# 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