Skip to content

Commit

Permalink
Edits from PR - removing unused imports; including logger updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rajasriramoju committed Apr 10, 2024
1 parent f59162f commit 1161b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
7 changes: 0 additions & 7 deletions orchestration/flows/bl7012/ptycho_nersc.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
import json
import logging
import time

from authlib.integrations.requests_client import OAuth2Session
from authlib.oauth2.rfc7523 import PrivateKeyJWT

from orchestration.ptycho_jobscript import (
get_job_script,
cdtool_args_string,
Expand Down
9 changes: 2 additions & 7 deletions orchestration/nersc.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ def init_directory_paths(self):
self.home_path = f"/global/homes/{self.user().name[0]}/{self.user().name}"
self.scratch_path = f"/pscratch/sd/{self.user().name[0]}/{self.user().name}"

def request_task_status(self):
"""Could need session variable in class, if this function
is to be used, due to information access requirements."""
pass

def request_job_status(self):
self.job = self.perlmutter.job(jobid=self.jobid)

Expand All @@ -106,9 +101,9 @@ def submit_job(self, job_script):
self.has_ran = False

self.job_script_string = job_script
#self.logger.info(f"Submitting job with script: {job_script}")
self.logger.info(f"Submitting job with script: {job_script}")
self.job = self.perlmutter.submit_job(job_script)
self.update_job_id()
#self.update_job_state()
#self.logger.info(f"Submitted job id: {self.jobid}")
self.logger.info(f"Submitted job id: {self.jobid}")

0 comments on commit 1161b22

Please sign in to comment.