• Home
  • Raw
  • Download

Lines Matching full:retry

62     """Maintain retry information.
64 @var _retry_map: A dictionary that stores retry history.
68 The retry state of a job.
72 We've made an attempt to schedule a retry job. The
75 in scheduling a retry is different from a retry job failure.
76 For each job, we only attempt to schedule a retry once.
78 its second retry job failed. When we attempt to create
79 a third retry job to retry the second, we hit an rpc
83 A retry job has already been successfully
89 @var _retry_level: A retry might be triggered only if the result
91 @var _max_retries: Maximum retry limit at suite level.
107 @param retry_level: A retry might be triggered only if the result is
125 """Add a newly-created job to the retry map.
128 @param retry_max: The maximum of times that we could retry
131 @raises ValueError if new_job_id is already in retry map.
135 raise ValueError('add_job called when job is already in retry map.')
143 """Return whether maximum retry limit for a suite has been reached."""
148 """Record a retry.
150 Update retry map with the retry information.
153 @param new_job_id: The afe_job_id of the retry job.
155 @raises KeyError if old_job_id isn't in the retry map.
157 to retry the old job.
163 'We have already retried or attempted to retry job %d' %
176 @raises KeyError if job_id isn't in the retry map.
182 # We are supposed to retry or attempt to retry each job
192 """Check whether there will be a following retry.
195 - no retry map entry -> retry not required, no following retry
196 - has retry map entry:
197 - already retried -> has following retry
200 - retry_max == 0 --> the last retry job, no more retry
203 following retry due to rpc error --> no more retry
204 - has not attempped --> has following retry if test failed.
208 @returns: True, if there will be a following retry.
219 """Check whether we should retry a job based on its result.
221 We will retry the job that corresponds to the result
228 c) The test requires retry, i.e. the job has an entry in the retry map.
229 d) We haven't made any retry attempt yet, i.e. state == NOT_ATTEMPTED
233 e) The job has not reached its retry max, i.e. retry_max > 0
237 @returns: True if we should retry the job.
251 """Check whether we should retry a job based on information available
254 We will retry the job that corresponds to the result
256 a) The test requires retry, i.e. the job has an entry in the retry map.
257 b) We haven't made any retry attempt yet for this job, i.e.
261 c) The job has not reached its retry max, i.e. retry_max > 0
265 @returns: True if we should retry the job.
272 logging.debug('job_id not in retry map, not retrying.')
285 """Check whether a job id present in the retry map.
302 @raises KeyError if job_id isn't in the retry map.
382 @param retry_for: If the to-be-created job is a retry for an
440 @param retry_for: If the to-be-created job is a retry for an
477 # later our tko parser can figure out the retry relationship and
921 retry.
922 @param max_retries: Maximum retry limit at suite level.
1005 @param retry_for: If we are scheduling a test to retry an
1013 msg = msg + ', to retry afe job %d' % retry_for
1035 # Mark that we've attempted to retry the old job.
1043 # A retry job was just created, record it.
1048 logging.debug('Job %d created to retry job %d. '
1100 logging.debug("retry map created: %s ",
1103 logging.info("Will not retry jobs from suite %s.", self._tag)
1108 """Bump up individual test retries to match suite retry options."""
1150 Return True if this result gets to retry.
1208 # TODO (crbug.com/751428): If the suite times out before a retry could
1232 Retry a test job result.
1239 @returns: True if a job was scheduled for retry, False otherwise.
1493 retry.
1494 @param max_retries: Maximum retry limit at suite level.