Skip to content

Commit

Permalink
Merge branch 'release_24.0' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed May 11, 2024
2 parents 40177d3 + 375268c commit 65f258c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
9 changes: 3 additions & 6 deletions lib/galaxy/job_execution/actions/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@

from galaxy.model import PostJobActionAssociation
from galaxy.model.base import transaction
from galaxy.util import (
send_mail,
unicodify,
)
from galaxy.util import send_mail
from galaxy.util.custom_logging import get_logger

log = get_logger(__name__)
Expand Down Expand Up @@ -70,8 +67,8 @@ def execute(cls, app, sa_session, action, job, replacement_dict, final_job_state
if link_invocation:
body += f"\n\nWorkflow Invocation Report:\n{link_invocation}"
send_mail(app.config.email_from, to, subject, body, app.config)
except Exception as e:
log.error("EmailAction PJA Failed, exception: %s", unicodify(e))
except Exception:
log.exception("EmailAction PJA Failed")

@classmethod
def get_short_str(cls, pja):
Expand Down
4 changes: 2 additions & 2 deletions lib/galaxy/jobs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1420,8 +1420,8 @@ def fail(
try:
shutil.move(dataset_path.false_path, dataset_path.real_path)
log.debug("fail(): Moved %s to %s", dataset_path.false_path, dataset_path.real_path)
except OSError as e:
log.error("fail(): Missing output file in working directory: %s", unicodify(e))
except FileNotFoundError as e:
log.warning("fail(): Missing output file in working directory: %s", unicodify(e))
except Exception as e:
log.exception(str(e))
for dataset_assoc in job.output_datasets + job.output_library_datasets:
Expand Down
3 changes: 3 additions & 0 deletions lib/galaxy/jobs/runners/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ def __check_memory_limit(self, efile_path):
return OUT_OF_MEMORY_MSG
elif any(_ in stripped_line for _ in SLURM_MEMORY_LIMIT_EXCEEDED_PARTIAL_WARNINGS):
return PROBABLY_OUT_OF_MEMORY_MSG
except FileNotFoundError:
# Entirely expected, as __check_memory_limit is only called if the job state is CANCELLED
return False
except Exception:
log.exception("Error reading end of %s:", efile_path)

Expand Down

0 comments on commit 65f258c

Please sign in to comment.