Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • willsalmon/buildstream
  • CumHoleZH/buildstream
  • tchaik/buildstream
  • DCotyPortfolio/buildstream
  • jesusoctavioas/buildstream
  • patrickmmartin/buildstream
  • franred/buildstream
  • tintou/buildstream
  • alatiera/buildstream
  • martinblanchard/buildstream
  • neverdie22042524/buildstream
  • Mattlk13/buildstream
  • PServers/buildstream
  • phamnghia610909/buildstream
  • chiaratolentino/buildstream
  • eysz7-x-x/buildstream
  • kerrick1/buildstream
  • matthew-yates/buildstream
  • twofeathers/buildstream
  • mhadjimichael/buildstream
  • pointswaves/buildstream
  • Mr.JackWilson/buildstream
  • Tw3akG33k/buildstream
  • AlexFazakas/buildstream
  • eruidfkiy/buildstream
  • clamotion2/buildstream
  • nanonyme/buildstream
  • wickyjaaa/buildstream
  • nmanchev/buildstream
  • bojorquez.ja/buildstream
  • mostynb/buildstream
  • highpit74/buildstream
  • Demo112/buildstream
  • ba2014sheer/buildstream
  • tonimadrino/buildstream
  • usuario2o/buildstream
  • Angelika123456/buildstream
  • neo355/buildstream
  • corentin-ferlay/buildstream
  • coldtom/buildstream
  • wifitvbox81/buildstream
  • 358253885/buildstream
  • seanborg/buildstream
  • SotK/buildstream
  • DouglasWinship/buildstream
  • karansthr97/buildstream
  • louib/buildstream
  • bwh-ct/buildstream
  • robjh/buildstream
  • we88c0de/buildstream
  • zhengxian5555/buildstream
51 results
Show changes
Commits on Source (2)
......@@ -119,6 +119,8 @@ class Job():
self._result = None # Return value of child action in the parent
self._tries = 0 # Try count, for retryable jobs
self._skipped_flag = False # Indicate whether the job was skipped.
self._terminated = False # Whether this job has been explicitly terminated
# If False, a retry will not be attempted regardless of whether _tries is less than _max_retries.
#
self._retry_flag = True
......@@ -190,6 +192,8 @@ class Job():
# Terminate the process using multiprocessing API pathway
self._process.terminate()
self._terminated = True
# terminate_wait()
#
# Wait for terminated jobs to complete
......@@ -273,18 +277,22 @@ class Job():
# running the integration commands).
#
# Args:
# (int): The plugin identifier for this task
# task_id (int): The plugin identifier for this task
#
def set_task_id(self, task_id):
self._task_id = task_id
# skipped
#
# This will evaluate to True if the job was skipped
# during processing, or if it was forcefully terminated.
#
# Returns:
# bool: True if the job was skipped while processing.
# (bool): Whether the job should appear as skipped
#
@property
def skipped(self):
return self._skipped_flag
return self._skipped_flag or self._terminated
#######################################################
# Abstract Methods #
......
......@@ -326,16 +326,20 @@ class Queue():
detail=traceback.format_exc())
self.failed_elements.append(element)
else:
# No exception occured, handle the success/failure state in the normal way
#
# No exception occured in post processing
#
# All jobs get placed on the done queue for later processing.
self._done_queue.append(job)
if success:
if not job.skipped:
self.processed_elements.append(element)
else:
self.skipped_elements.append(element)
# A Job can be skipped whether or not it has failed,
# we want to only bookkeep them as processed or failed
# if they are not skipped.
if job.skipped:
self.skipped_elements.append(element)
elif success:
self.processed_elements.append(element)
else:
self.failed_elements.append(element)
......