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
b8e0bbd1
"README.md" did not exist on "086f33ec92336c301dfcfd8c970cc0fdad465964"
Commit
b8e0bbd1
authored
5 years ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
CLI manual_run input
parent
98573b89
No related branches found
No related tags found
1 merge request
!93
feat/reportservice
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reportservice/manual_run.py
+5
-4
5 additions, 4 deletions
reportservice/manual_run.py
with
5 additions
and
4 deletions
reportservice/manual_run.py
+
5
−
4
View file @
b8e0bbd1
...
...
@@ -9,13 +9,13 @@ import zmq
import
zmq.asyncio
def
manual_run
(
req_
conf
):
def
manual_run
(
req_
instr
):
"""
Run the report service manually from any machine
and provide the requested configuration for
reports generation.
:param req_
conf
: a list for generating reports for the
:param req_
instr
: a list for generating reports for the
requested Instruments. This list can
contain the Instruments names e.g [
'
SPB
'
]
or [
'
all
'
] for generating reports for all
...
...
@@ -32,11 +32,12 @@ def manual_run(req_conf):
con
=
zmq
.
Context
()
socket
=
con
.
socket
(
zmq
.
REQ
)
con
=
socket
.
connect
(
port
)
socket
.
send_pyobj
(
req_
conf
)
socket
.
send_pyobj
(
req_
instr
)
msg
=
socket
.
recv_pyobj
()
logging
.
info
(
'
{} Manual Run
'
.
format
(
msg
))
arg_parser
=
argparse
.
ArgumentParser
(
description
=
'
Manual Launch
'
)
arg_parser
.
add_argument
(
'
--req-instr
'
,
default
=
'
all
'
,
nargs
=
'
+
'
)
arg_parser
.
add_argument
(
'
--config-file
'
,
type
=
str
,
default
=
'
./report_conf.yaml
'
)
arg_parser
.
add_argument
(
'
--log-file
'
,
type
=
str
,
default
=
'
./report.log
'
)
arg_parser
.
add_argument
(
'
--logging
'
,
type
=
str
,
default
=
"
INFO
"
,
...
...
@@ -56,4 +57,4 @@ if __name__ == "__main__":
format
=
'
%(levelname)-6s: %(asctime)s %(message)s
'
,
datefmt
=
'
%Y-%m-%d %H:%M:%S
'
)
manual_run
(
[
'
all
'
])
manual_run
(
args
[
"
req_instr
"
])
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