diff --git a/app.cfg.example b/app.cfg.example index 9a4de158..59a6dc50 100644 --- a/app.cfg.example +++ b/app.cfg.example @@ -139,13 +139,13 @@ poll_interval = 60 # full path to the command for manipulating existing jobs scontrol_command = /usr/bin/scontrol -# variable 'comment' under 'submitted_job_comments' should not be changed as there are regular expression patterns matching it +# variable 'initial_comment' under 'submitted_job_comments' should not be changed as the bot's code uses regular expression pattern to identify a matching comment [submitted_job_comments] initial_comment = New job on instance `{app_name}` for architecture `{arch_name}` for repository `{repo_id}` in job dir `{symlink}` awaits_release = job id `{job_id}` awaits release by job manager [new_job_comments] -awaits_lauch = job awaits launch by Slurm scheduler +awaits_launch = job awaits launch by Slurm scheduler [running_job_comments] running_job = job `{job_id}` is running diff --git a/eessi_bot_job_manager.py b/eessi_bot_job_manager.py index 940162f0..a9126c21 100644 --- a/eessi_bot_job_manager.py +++ b/eessi_bot_job_manager.py @@ -43,7 +43,7 @@ from pyghee.utils import log, error -AWAITS_LAUCH = "awaits_lauch" +AWAITS_LAUNCH = "awaits_launch" FAILURE = "failure" FINISHED_JOB_COMMENTS = "finished_job_comments" NEW_JOB_COMMENTS = "new_job_comments" @@ -58,7 +58,7 @@ SUCCESS = "success" REQUIRED_CONFIG = { - NEW_JOB_COMMENTS: [AWAITS_LAUCH], + NEW_JOB_COMMENTS: [AWAITS_LAUNCH], RUNNING_JOB_COMMENTS: [RUNNING_JOB], FINISHED_JOB_COMMENTS: [SUCCESS, FAILURE, NO_SLURM_OUT, SLURM_OUT, MISSING_MODULES, NO_TARBALL_MESSAGE, NO_MATCHING_TARBALL, MULTIPLE_TARBALLS] @@ -315,7 +315,7 @@ def process_new_job(self, new_job): new_job_comments_cfg = config.read_config()[NEW_JOB_COMMENTS] dt = datetime.now(timezone.utc) update = "\n|%s|released|" % dt.strftime("%b %d %X %Z %Y") - update += f"{new_job_comments_cfg[AWAITS_LAUCH]}|" + update += f"{new_job_comments_cfg[AWAITS_LAUNCH]}|" update_comment(new_job["comment_id"], pr, update) else: log(