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

TMPDIR cleanup and Docs #2

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

TMPDIR cleanup and Docs #2

wants to merge 3 commits into from

Conversation

marcnnn
Copy link
Owner

@marcnnn marcnnn commented Nov 26, 2024

No description provided.

# remove the TMP folder
# this should be called since SLURM sends
IO.puts(file, """
rm -rf $TMPDIR/$SLURMJOBID
Copy link
Contributor

Choose a reason for hiding this comment

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

We could set the tmpdir and remove it in the Elixir script itself. Would that be preferrable?

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated
# Cleanup

On some clusters TMPDIR is cleaned per Job on others not.
This is why TMPDIR is changed to one based on the Job ID and deleted after SIGUSR1 is send by SLURM this is Configured by default in Flame SLurm to 30 Seconds before kill.
Copy link
Contributor

@josevalim josevalim Nov 26, 2024

Choose a reason for hiding this comment

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

Suggested change
This is why TMPDIR is changed to one based on the Job ID and deleted after SIGUSR1 is send by SLURM this is Configured by default in Flame SLurm to 30 Seconds before kill.
This is why `TMPDIR` is changed to one based on the Job ID, which is automatically cleared when the Job terminates. More precisely, Slurm is automatically configured to send a SIGUSR1 signal to FLAME 30 seconds before it terminates the Job, which then deletes the directory.

README.md Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants