mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-21 04:10:27 +00:00
Add --statuscancels option
The statusdb is only used to check for task completions if this option is used, requiring the user to explicitly request the feature.
This commit is contained in:
parent
5fc8df43f8
commit
67212a20e5
3 changed files with 7 additions and 3 deletions
|
@ -185,7 +185,7 @@ class SbyProc:
|
|||
self.task.cancel()
|
||||
return
|
||||
|
||||
if time.time() >= self.next_db:
|
||||
if self.task.status_cancels and time.time() >= self.next_db:
|
||||
tasks_status = self.task.status_db.all_tasks_status()
|
||||
for task_status in tasks_status.values():
|
||||
if (task_status["status"] in ["PASS", "FAIL", "CANCELLED"] and
|
||||
|
@ -913,12 +913,13 @@ class SbySummary:
|
|||
|
||||
|
||||
class SbyTask(SbyConfig):
|
||||
def __init__(self, sbyconfig, workdir, early_logs, reusedir, taskloop=None, logfile=None, name=None, live_csv=False):
|
||||
def __init__(self, sbyconfig, workdir, early_logs, reusedir, status_cancels, taskloop=None, logfile=None, name=None, live_csv=False):
|
||||
super().__init__()
|
||||
self.used_options = set()
|
||||
self.models = dict()
|
||||
self.workdir = workdir
|
||||
self.reusedir = reusedir
|
||||
self.status_cancels = status_cancels
|
||||
self.name = name
|
||||
self.live_csv = live_csv
|
||||
self.status = "UNKNOWN"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue