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

Create exec_dir if it does not exist #24

Open
jgaida opened this issue Jul 10, 2015 · 2 comments
Open

Create exec_dir if it does not exist #24

jgaida opened this issue Jul 10, 2015 · 2 comments

Comments

@jgaida
Copy link

jgaida commented Jul 10, 2015

I got the following error trying to create the directory using the JDL prologue:
The job exited because of a working directory error. NFS problem on the cluster?;

@bzizou
Copy link
Contributor

bzizou commented Jul 15, 2015

Yes, it is a good idea to create the exec_dit if it does not exist.
Two solutions:

  • Using the OAR api by posting an empty file into that directory (e.g. POST /media/exec_dir/dummy_file), but which module can do that?
  • Adding an inconditionnal "mkdir -p" at the top of the prologue.
    The second solution is very simple but requires that there's a prologue. For the moment, the prologue is optional. It could be mandatory...

@jgaida
Copy link
Author

jgaida commented Jul 15, 2015

We can make it optional by adding a "create_dir" option in the JDL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants