Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
0e2fa35d
Commit
0e2fa35d
authored
1 year ago
by
Robert Rosca
Browse files
Options
Downloads
Patches
Plain Diff
abort job submission on 'n' response
parent
692ccbd3
No related branches found
Branches containing commit
No related tags found
1 merge request
!904
Fix/manual submit confirmation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/manual_launch.py
+3
-3
3 additions, 3 deletions
webservice/manual_launch.py
with
3 additions
and
3 deletions
webservice/manual_launch.py
+
3
−
3
View file @
0e2fa35d
...
@@ -18,7 +18,7 @@ from rich.progress import (
...
@@ -18,7 +18,7 @@ from rich.progress import (
TextColumn
,
TextColumn
,
TimeElapsedColumn
,
TimeElapsedColumn
,
)
)
from
rich.prompt
import
Prompt
from
rich.prompt
import
Confirm
parser
=
argparse
.
ArgumentParser
(
parser
=
argparse
.
ArgumentParser
(
description
=
"
Manually submit calibration jobs.
"
,
description
=
"
Manually submit calibration jobs.
"
,
...
@@ -195,9 +195,9 @@ def main(
...
@@ -195,9 +195,9 @@ def main(
if
not
really
:
if
not
really
:
print
(
"
[yellow]`--really` flag missing, not submitting jobs
"
)
print
(
"
[yellow]`--really` flag missing, not submitting jobs
"
)
if
not
noconfirm
and
not
Prompt
.
ask
(
if
not
noconfirm
and
not
Confirm
.
ask
(
f
"
Submit [red bold]
{
len
(
requests
)
}
[/red bold] jobs for proposal
"
f
"
Submit [red bold]
{
len
(
requests
)
}
[/red bold] jobs for proposal
"
f
"
[bold]
{
proposal_no
}
[/bold]?
[y/[bold]n[/bold]]
"
,
f
"
[bold]
{
proposal_no
}
[/bold]?
"
,
default
=
False
,
default
=
False
,
):
):
print
(
"
[bold red]Aborted[/bold red]
"
)
print
(
"
[bold red]Aborted[/bold red]
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment