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
6a0923d3
Commit
6a0923d3
authored
5 years ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
MR comments
parent
e3cacdf8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!228
Feat/batch prioritization darks
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
webservice/webservice.py
+4
-2
4 additions, 2 deletions
webservice/webservice.py
webservice/webservice.yaml
+2
-0
2 additions, 0 deletions
webservice/webservice.yaml
xfel_calibrate/calibrate.py
+8
-4
8 additions, 4 deletions
xfel_calibrate/calibrate.py
with
14 additions
and
6 deletions
webservice/webservice.py
+
4
−
2
View file @
6a0923d3
...
...
@@ -689,7 +689,8 @@ async def server_runner(config, mode):
"
EPIX
"
,
"
EPIX10K
"
]:
priority
=
'
0
'
cmd
=
[
"
python
"
,
"
-m
"
,
"
xfel_calibrate.calibrate
"
,
detector
,
"
DARK
"
,
'
--priority
'
,
priority
,
'
--slurm-priority
'
,
'
10
'
]
detector
,
"
DARK
"
,
'
--priority
'
,
priority
,
'
--slurm-scheduling
'
,
str
(
config
[
action
][
'
sched-prio
'
])]
#noqa
# Avoid giving a reservation parameter after the
# ITDM changes for giving xcal high priority by default
...
...
@@ -757,7 +758,8 @@ async def server_runner(config, mode):
if
"
-
"
in
detector
:
detector
,
_
=
detector
.
split
(
"
-
"
)
cmd
=
[
"
python
"
,
"
-m
"
,
"
xfel_calibrate.calibrate
"
,
detector
,
"
CORRECT
"
,
'
--slurm-priority
'
,
'
100
'
]
detector
,
"
CORRECT
"
,
'
--slurm-scheduling
'
,
str
(
config
[
action
][
'
sched-prio
'
])]
cmd
=
await
parse_config
(
cmd
,
dconfig
)
...
...
This diff is collapsed.
Click to expand it.
webservice/webservice.yaml
+
2
−
0
View file @
6a0923d3
...
...
@@ -25,8 +25,10 @@ metadata-client:
correct
:
in-folder
:
/gpfs/exfel/exp/{instrument}/{cycle}/p{proposal}/raw
out-folder
:
/gpfs/exfel/d/proc/{instrument}/{cycle}/p{proposal}/{run}
sched-prio
:
100
dark
:
in-folder
:
/gpfs/exfel/exp/{instrument}/{cycle}/p{proposal}/raw
out-folder
:
/gpfs/exfel/u/usr/{instrument}/{cycle}/p{proposal}/dark/runs_{runs}
sched-prio
:
10
This diff is collapsed.
Click to expand it.
xfel_calibrate/calibrate.py
+
8
−
4
View file @
6a0923d3
...
...
@@ -53,10 +53,12 @@ def make_initial_parser():
help
=
"
Do not run as a cluster job
"
)
parser
.
add_argument
(
'
--report-to
'
,
type
=
str
,
help
=
'
Filename (and optionally path) for output report
'
)
help
=
'
Filename (and optionally path) for output
'
'
report
'
)
parser
.
add_argument
(
'
--priority
'
,
type
=
int
,
default
=
2
,
help
=
"
Priority of batch jobs. If priority<=1, reserved nodes become available.
"
)
help
=
"
Priority of batch jobs. If priority<=1, reserved
"
"
nodes become available.
"
)
parser
.
add_argument
(
'
--vector-figs
'
,
action
=
"
store_true
"
,
default
=
False
,
help
=
"
Use vector graphics for figures in the report.
"
)
...
...
@@ -67,8 +69,10 @@ def make_initial_parser():
parser
.
add_argument
(
'
--slurm-name
'
,
type
=
str
,
default
=
'
xfel_calibrate
'
,
help
=
'
Name of slurm job
'
)
parser
.
add_argument
(
'
--slurm-priority
'
,
type
=
int
,
default
=
0
,
help
=
'
Change priority of srurm job +- 2147483645 (negative value increases priority)
'
)
parser
.
add_argument
(
'
--slurm-scheduling
'
,
type
=
int
,
default
=
0
,
help
=
'
Change scheduling priority for a slurm job
'
'
+- 2147483645 (negative value increases
'
'
priority)
'
)
parser
.
add_argument_group
(
'
required arguments
'
)
...
...
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