Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Jeremy Auguste
oar
Commits
924aab9d
Commit
924aab9d
authored
6 years ago
by
Jeremy Auguste
Browse files
Options
Downloads
Patches
Plain Diff
Catching possible lack of karma
parent
403b0ac8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
oarstats.py
+4
-1
4 additions, 1 deletion
oarstats.py
with
4 additions
and
1 deletion
oarstats.py
+
4
−
1
View file @
924aab9d
...
...
@@ -84,7 +84,10 @@ def main():
wall_time
=
int
(
tokens
[
0
])
*
3600
+
int
(
tokens
[
1
])
*
60
+
int
(
tokens
[
2
])
resources
=
int
(
re
.
search
(
resources_pattern
,
job_info
[
"
message
"
]).
group
(
1
))
queue
=
re
.
search
(
queue_pattern
,
job_info
[
"
message
"
]).
group
(
1
)
try
:
karma
=
float
(
re
.
search
(
karma_pattern
,
job_info
[
"
message
"
]).
group
(
1
))
except
AttributeError
:
karma
=
0.0
devices
=
job_info
[
"
assigned_network_address
"
]
gpu
=
re
.
search
(
gpu_pattern
,
job_info
[
"
properties
"
])
is
not
None
job
=
Job
(
job_id
,
elapsed_time
,
wall_time
,
resources
,
devices
,
gpu
,
queue
,
karma
)
...
...
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