From 6884d29c615f932c1a64eea7647f321f620b1705 Mon Sep 17 00:00:00 2001 From: Yuchen Date: Mon, 30 Sep 2024 21:51:50 -0400 Subject: [PATCH] Update submission.py Cleanup some unused comments --- dpdispatcher/submission.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dpdispatcher/submission.py b/dpdispatcher/submission.py index 4eb38367..28e38f4a 100644 --- a/dpdispatcher/submission.py +++ b/dpdispatcher/submission.py @@ -55,7 +55,6 @@ def __init__( *, task_list=[], ): - # self.submission_list = submission_list self.local_root = None self.work_base = work_base self._abs_work_base = os.path.abspath(work_base) @@ -515,12 +514,9 @@ def submission_to_json(self): def submission_from_json(cls, json_file_name="submission.json"): with open(json_file_name) as f: submission_dict = json.load(f) - # submission_dict = machine.context.read_file(json_file_name) submission = cls.deserialize(submission_dict=submission_dict, machine=None) return submission - # def check_if_recover() - def try_recover_from_json(self): submission_file_name = f"{self.submission_hash}.json" if_recover = self.machine.context.check_file_exists(submission_file_name) @@ -545,7 +541,6 @@ def try_recover_from_json(self): f"machine.context.remote_root:{self.machine.context.remote_root}; " f"submission.work_base:{submission.work_base};" ) - # self = submission.bind_machine(machine=self.machine) else: print(self.serialize()) print(submission.serialize()) @@ -759,7 +754,6 @@ def __init__( self.fail_count = 0 self.job_uuid = uuid.uuid4() - # self.job_hash = self.get_hash() self.job_hash = self.get_hash() self.script_file_name = self.job_hash + ".sub"