-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-429: Cancel SLURM jobs on DDS shutdown.
- Automatically cancel pending and running slurm jobs on dds session shutdown. (GH-429) - Added dependency on protobuf
- Loading branch information
1 parent
f1037ef
commit 061474b
Showing
11 changed files
with
191 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2022 GSI, Inc. All rights reserved. | ||
# | ||
# | ||
project(dds_proto_lib) | ||
|
||
# | ||
# All protobuf IDL files | ||
# | ||
|
||
file(GLOB PROTOBUF_FILELIST "${CMAKE_CURRENT_SOURCE_DIR}/*.proto") | ||
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${PROTOBUF_FILELIST}) | ||
|
||
SET_SOURCE_FILES_PROPERTIES(${PROTO_SRC} ${PROTO_INCL} PROPERTIES GENERATED TRUE) | ||
|
||
add_library(dds_proto_lib ${PROTO_SRCS} ${PROTO_INCL}) | ||
|
||
target_link_libraries(${PROJECT_NAME} | ||
PUBLIC | ||
${Protobuf_LIBRARIES} | ||
) | ||
|
||
target_include_directories(${PROJECT_NAME} | ||
PUBLIC | ||
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}> | ||
${Protobuf_INCLUDE_DIRS} | ||
) | ||
|
||
install(TARGETS ${PROJECT_NAME} | ||
EXPORT DDSTargets | ||
LIBRARY DESTINATION "${PROJECT_INSTALL_LIBDIR}" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2022 GSI, Inc. All rights reserved. | ||
// | ||
// | ||
// | ||
syntax = "proto3"; | ||
|
||
package dds.protocol; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
import "google/protobuf/any.proto"; | ||
|
||
message SubmitInfo { | ||
string session_id = 1; | ||
string submission_id = 2; | ||
string dds_sandbox_dir = 3; | ||
// Creation date | ||
google.protobuf.Timestamp submission_timestamp = 4; | ||
// RMS plug-in | ||
string rms_plugin = 5; | ||
// actual RMS plug-in data block | ||
google.protobuf.Any rms_plugin_data = 6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2022 GSI, Inc. All rights reserved. | ||
// | ||
// | ||
// | ||
syntax = "proto3"; | ||
|
||
package dds.protocol; | ||
|
||
message SlurmSubmitInfo { | ||
// RMS job ID | ||
repeated string slurm_job_id = 1; | ||
} |