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

Make slurm job name accesible in all tasks #67

Open
Trophime opened this issue Jun 13, 2018 · 0 comments
Open

Make slurm job name accesible in all tasks #67

Trophime opened this issue Jun 13, 2018 · 0 comments

Comments

@Trophime
Copy link

Hi,
would it be possible to somehow get the slurm_id_job out of the submission to be able to
notify the user of the output of the slurm job by, for instance, sending email in the revert step?

for instance in workload_manager.py in submit_job method :

        output, exit_code = self._execute_shell_command(ssh_client,
                                                        call,
                                                        workdir=workdir,
                                                        wait_result=True)
        if exit_code is not 0:
            logger.error("Job submission '" + call + "' exited with code " +
                         str(exit_code) + ":\n" + output)
            return False        
        else:
            slurm_job_id = output.replace("Submitted batch job ",'').strip()
            logger.info("slurm_job_id=%s"%slurm_job_id)

the trouble is how to get slurm_job_id accessible from the rest of the code...

@emepetres emepetres changed the title get the slurm_id_job out of the submission Make slurm job name accesible in all tasks Jul 6, 2018
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

No branches or pull requests

1 participant