Skip to content
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

add error when submitting job from srun/slurm #1038

Merged
merged 4 commits into from
Feb 28, 2025

Conversation

misko
Copy link
Collaborator

@misko misko commented Feb 27, 2025

No description provided.

@misko misko added enhancement New feature or request patch Patch version release labels Feb 27, 2025
Copy link

codecov bot commented Feb 27, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/fairchem/core/_cli_hydra.py 50.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/fairchem/core/_cli_hydra.py 82.77% <50.00%> (-0.47%) ⬇️

@misko misko marked this pull request as ready for review February 27, 2025 22:59
@misko misko requested a review from rayg1234 February 27, 2025 22:59
@@ -304,6 +305,11 @@ def main(
scheduler_cfg = cfg.job.scheduler
logging.info(f"Running fairchemv2 cli with {cfg}")
if scheduler_cfg.mode == SchedulerType.SLURM: # Run on cluster
if os.getenv("SLURM_SUBMIT_HOST"):
logging.error(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets raise the error instead of exiting?

@rayg1234
Copy link
Collaborator

Thanks for adding this check!

@misko misko enabled auto-merge February 27, 2025 23:45
@misko misko added this pull request to the merge queue Feb 28, 2025
Merged via the queue into main with commit ab9f004 Feb 28, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request patch Patch version release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants