Hello everyone,
This is me again, with more questios about saga:)
We keep learing saga and using it for our web-application, but we are
stuck with one thing which prevent us from the next step. If you could
help us with some ideas/suggestions on how to solve it - we would
greately appreciate it.
We want to do copy to/copy back of file to/from the execution node
when we launch a job. Basically, the idea is that we have some storage
nodes, where users put their files that need to be processed, but for
actual processing we copy these files to the execution node(s) and
then we copy back the resulting files to the user folder.
The main issue is that we don't know which node will be assigned by
slurm as an execution node. Thus we don't know how to implement
copy/copyback. Are there any options in saga so that we could do some
actions after job.rub()?
We investigated three options:
1. callbacks (
http://saga-python.readthedocs.org/en/latest/library/attribute.html
), but unsure if it would do what we want?
2. maybe it is possible with jd.executable? if yes, then how?
3. maybe we could use a function which would be executed after
job.run() , but before an execution of task set in jd.executable?
So, in essense, how can we get that saga.filesystem.Directory and
saga.filesystem.File would "know" an execution node ?
For instance, we tried:
_dir = "output-work"
baseDir = saga.filesystem.Directory("sftp://NODE_NAME/home/user1")
baseDir.make_dir(_dir)
But now we need to have NODE_NAME in order to copy files to the execution node.
Any ideas/suggestions would be really greatly appreciated. Thanks a
lot guys for helping us with your great project
Anna