summaryrefslogtreecommitdiff
path: root/src/buildstream/_frontend
diff options
context:
space:
mode:
authorTom Pollard <tom.pollard@codethink.co.uk>2019-08-28 17:15:44 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-09-10 10:44:53 +0000
commitaaa104bc2e95e973adb6b61276e38ed573bd97d2 (patch)
tree8497a98c66b65aa62f7daec14ad23f0567443910 /src/buildstream/_frontend
parent1e1e7baeb7adf72ee1a206c58014d7b7eb753f1c (diff)
downloadbuildstream-aaa104bc2e95e973adb6b61276e38ed573bd97d2.tar.gz
scheduler.py: Notification for interactive failure retry
Add a notifcation for RETRY. This moves the retry handling into scheduler, which will be running in the process which has been suspended for interactivity and as such will be able to load the relevant Element. Note a failed job via the scheduler should never not have a related queue, so the try except when matching the queue via the action name should not be needed.
Diffstat (limited to 'src/buildstream/_frontend')
-rw-r--r--src/buildstream/_frontend/app.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/buildstream/_frontend/app.py b/src/buildstream/_frontend/app.py
index f9729a7ce..45160afbc 100644
--- a/src/buildstream/_frontend/app.py
+++ b/src/buildstream/_frontend/app.py
@@ -663,11 +663,7 @@ class App():
elif choice == 'retry':
click.echo("\nRetrying failed job\n", err=True)
unique_id = element[0]
- try:
- self.stream._failure_retry(action_name, unique_id)
- except StreamError:
- click.echo("Job action {} does not have a corresponding queue".format(action_name), err=True)
- self.stream.terminate()
+ self.stream._failure_retry(action_name, unique_id)
#
# Print the session heading if we've loaded a pipeline and there