Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scord
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
eu
ADMIRE
scord
Commits
ef504e45
Commit
ef504e45
authored
11 months ago
by
Ramon Nou
Browse files
Options
Downloads
Patches
Plain Diff
added adhoc uuid to query
parent
fe41a711
No related branches found
No related tags found
1 merge request
!126
Resolve "Root issues and stage-out with SPANK"
Pipeline
#4448
failed
11 months ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cli/scord_query.cpp
+2
-1
2 additions, 1 deletion
cli/scord_query.cpp
src/lib/scord/types.hpp
+9
-2
9 additions, 2 deletions
src/lib/scord/types.hpp
src/scord/rpc_server.cpp
+4
-0
4 additions, 0 deletions
src/scord/rpc_server.cpp
with
15 additions
and
3 deletions
cli/scord_query.cpp
+
2
−
1
View file @
ef504e45
...
...
@@ -85,8 +85,9 @@ main(int argc, char* argv[]) {
fmt
::
print
(
stdout
,
"Job metadata:
\n
"
" adhoc_controller: {}
\n
"
" adhoc_uuid: {}
\n
"
" io_procs: {}
\n
"
,
info
.
adhoc_controller_address
(),
info
.
io_procs
());
info
.
adhoc_controller_address
(),
info
.
uuid
(),
info
.
io_procs
());
}
catch
(
const
std
::
exception
&
ex
)
{
fmt
::
print
(
stderr
,
"Error: {}
\n
"
,
ex
.
what
());
...
...
This diff is collapsed.
Click to expand it.
src/lib/scord/types.hpp
+
9
−
2
View file @
ef504e45
...
...
@@ -493,9 +493,9 @@ class job_info {
public:
job_info
()
=
default
;
explicit
job_info
(
std
::
string
adhoc_controller_address
,
explicit
job_info
(
std
::
string
adhoc_controller_address
,
std
::
string
uuid
,
std
::
uint32_t
procs_for_io
)
:
m_adhoc_address
(
std
::
move
(
adhoc_controller_address
)),
:
m_adhoc_address
(
std
::
move
(
adhoc_controller_address
)),
m_uuid
(
std
::
move
(
uuid
)),
m_procs_for_io
(
procs_for_io
)
{}
constexpr
std
::
string
const
&
...
...
@@ -512,16 +512,23 @@ public:
return
m_procs_for_io
;
}
constexpr
std
::
string
const
&
uuid
()
const
{
return
m_uuid
;
}
private
:
friend
class
cereal
::
access
;
template
<
class
Archive
>
void
serialize
(
Archive
&
ar
)
{
ar
&
m_adhoc_address
;
ar
&
m_uuid
;
ar
&
m_procs_for_io
;
}
std
::
string
m_adhoc_address
;
std
::
string
m_uuid
;
std
::
uint32_t
m_procs_for_io
;
};
...
...
This diff is collapsed.
Click to expand it.
src/scord/rpc_server.cpp
+
4
−
0
View file @
ef504e45
...
...
@@ -164,9 +164,13 @@ rpc_server::query(const network::request& req, slurm_job_id job_id) {
return
tl
::
make_unexpected
(
error_code
::
no_resources
);
}
return
job_info
{
job_metadata_ptr
->
adhoc_storage_metadata
()
->
controller_address
(),
job_metadata_ptr
->
adhoc_storage_metadata
()
->
uuid
(),
job_metadata_ptr
->
io_procs
()};
});
...
...
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