-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(WIP) LIU-423: Initial work submitting subgraph through SlurmClient component. #299
Draft
myxie
wants to merge
12
commits into
master
Choose a base branch
from
LIU-423
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
(Incomplete) - Basic use of SLURM 'template' script - Skeleton use of .ini file for environment variables - Added unittests to help prototyping
- Tests pass for config and slurm template - Tested on Setonix
- Successfully passed the subgraph to setonix - There are a few hacks that would be good to sort out in future discussions.
Reviewer's Guide by SourceryThis PR implements initial functionality for submitting subgraphs through the SlurmClient component. The changes focus on enhancing the SlurmClient class to handle subgraph submissions, improving type hints, and modifying the validation process in the translator REST API. The implementation includes temporary solutions that will need refinement in future updates. Sequence diagram for subgraph submission through SlurmClientsequenceDiagram
participant Client
participant SlurmClient
participant FileSystem
participant Remote
Client->>SlurmClient: submit_job(subgraph)
SlurmClient->>FileSystem: Write subgraph to /tmp/subgraph.graph
SlurmClient->>SlurmClient: Set _logical_graph to /tmp/subgraph.graph
SlurmClient->>SlurmClient: mk_session_dir()
alt physical_graph_template_file exists
SlurmClient->>FileSystem: Copy physical graph template
else logical_graph exists
SlurmClient->>Remote: Copy logical graph to remote
end
SlurmClient->>FileSystem: Create job submission script
SlurmClient-->>Client: Return jobId
Sequence diagram for gen_pgt_post functionsequenceDiagram
participant Client
participant TranslatorREST
Client->>TranslatorREST: gen_pgt_post(json_data)
TranslatorREST->>TranslatorREST: Parse logical_graph
alt Validation is commented out
TranslatorREST->>TranslatorREST: Skip validation
end
TranslatorREST->>TranslatorREST: prepare_lgt(logical_graph, rmode)
TranslatorREST-->>Client: Return prepared logical graph
Updated class diagram for SlurmClientclassDiagram
class SlurmClient {
-str dlg_root
-str log_root
-str host
-str acc
-str physical_graph_template_file
-str logical_graph
-int job_dur
-int num_nodes
-bool run_proxy
-int mon_host
-int mon_port
-int logv
-str facility
-bool zerorun
-int max_threads
-bool sleepncopy
-int num_islands
-bool all_nics
-bool check_with_session
-bool submit
-bool remote
-str pip_name
-str username
+submit_job(subgraph: dict)
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
- Previous approach ended up using local graph as input to the script; this isn't how client.submit_job() works; it uses the remote path the phyiscal graph is expected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JIRA Ticket
Type
Problem/Issue
Solution
Checklist
Summary by Sourcery
Implement initial functionality for submitting a subgraph using the SlurmClient component, including handling subgraph data and updating the job submission process.
New Features:
Enhancements: