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
fc6b814f
Commit
fc6b814f
authored
2 years ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Clean up sqlite_view script a bit
parent
4f068c21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!683
[Webservice] Restructure database to give more meaningful success/failure information
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/sqlite_view.py
+4
-5
4 additions, 5 deletions
webservice/sqlite_view.py
with
4 additions
and
5 deletions
webservice/sqlite_view.py
+
4
−
5
View file @
fc6b814f
...
...
@@ -2,12 +2,11 @@ import argparse
import
sqlite3
parser
=
argparse
.
ArgumentParser
(
description
=
'
Update run status at MDC for a given run id.
'
)
description
=
'
Check jobs for a given proposal & run number
'
)
parser
.
add_argument
(
'
--sqlite-fpath
'
,
type
=
str
,
help
=
'
Path to sqlite file path
'
,
default
=
'
/home/xcal/calibration_webservice/webservice/webservice_jobs.sqlite
'
)
# noqa
parser
.
add_argument
(
'
--run
'
,
type
=
int
,
help
=
'
The run number required
'
'
for checking its job status.
'
)
parser
.
add_argument
(
'
--proposal
'
,
type
=
str
,
help
=
'
Proposal numer
'
)
default
=
'
webservice_jobs.sqlite
'
)
parser
.
add_argument
(
'
--proposal
'
,
type
=
str
,
required
=
True
,
help
=
'
Proposal number
'
)
parser
.
add_argument
(
'
--run
'
,
type
=
int
,
required
=
True
,
help
=
'
Run number
'
)
args
=
vars
(
parser
.
parse_args
())
...
...
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