VisTrails / tej

Trivial Extensible Job-submission -- a simple (no setup on the server) but extensible (in case you need scheduling/queueing) job submission mechanism in Python
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

First job creation always fails #21

Closed JosuaKrause closed 7 years ago

JosuaKrause commented 7 years ago

Not sure if my setup only but the first job I create always gets stuck in the created phase and crashes the new_job script (resulting in JobNotFound("Couldn't create job") on the python side).

Might have to do with the unused line https://github.com/VisTrails/tej/blob/master/tej/remotes/default/commands/new_job#L40

Subsequent job creations work without any problem and execute properly.

remram44 commented 7 years ago

The only thing different between the first job and the next ones is that the runtime gets installed. But I never encountered that on my test machines (or Travis).

remram44 commented 7 years ago

That line is left over from 31041b83 when I changed new_job to not create the "stage" subdirectory, which makes it easier to scp a directory to the server (adb887f7). I'll remove it, but I don't think that will change anything.

remram44 commented 7 years ago

I think tej cannot resolve a relative queue path before it exists. I only test with absolute paths (starting with ~/). Resolving it once it exists works, hence the subsequent submits work. I will fix it.

JosuaKrause commented 7 years ago

I changed my tej-path to absolute and it works now. Thanks!

remram44 commented 7 years ago

06bf1521 should fix all this.