~ahasenack/landscape-client/303284-ignore-squashfs

« back to all changes in this revision

Viewing changes to landscape/package/changer.py

  • Committer: Christopher Armstrong
  • Date: 2008-09-26 15:20:10 UTC
  • Revision ID: radix@twistedmatrix.com-20080926152010-us3swt5o2xty2aha
Lower the unknown package timeout from 24 hours to 70 minutes
[r=therve,oubiwann] [qa=andreas] [f=268218]

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
ERROR_RESULT = 100
15
15
DEPENDENCY_ERROR_RESULT = 101
16
16
 
17
 
UNKNOWN_PACKAGE_DATA_TIMEOUT = 24 * 60 * 60
 
17
 
 
18
# The amount of time to wait while we have unknown package data before
 
19
# reporting an error to the server in response to an operation.
 
20
# The two common cases of this are:
 
21
# 1.  The server requested an operation that we've decided requires some
 
22
# dependencies, but we don't know the package ID of those dependencies.  It
 
23
# should only take a bit more than 10 minutes for that to be resolved by the
 
24
# package reporter.
 
25
# 2.  We lost some package data, for example by a deb archive becoming
 
26
# inaccessible for a while.  The earliest we can reasonably assume that to be
 
27
# resolved is in 60 minutes, when the smart cronjob runs again.
 
28
 
 
29
# So we'll give the problem one chance to resolve itself, by only waiting for
 
30
# one run of smart update.
 
31
UNKNOWN_PACKAGE_DATA_TIMEOUT = 70 * 60
18
32
 
19
33
 
20
34
class UnknownPackageData(Exception):