ondemand icon indicating copy to clipboard operation
ondemand copied to clipboard

support for job dependencies in Batch Connect apps.

Open btsherid opened this issue 4 years ago • 2 comments

Hi,

I'm looking to provide some info about the session for interactive apps like jupyterhub and rstudio.

Essentially all I'm trying to do is run an sacct command after the interactive app is finished running (either time runs out or it gets deleted) and have the output of the sacct command put into the output.log file in the home directory subdir for that session. It has to run after the session finishes to be able to get the data we want.

If I could add it to the session card, that would be nice.

If I could also add that info to the email the user receives upon completion, that would be great but might be more of a SLURM issue than OnDemand.

Thank You, Brendan Sheridan

┆Issue is synchronized with this Asana task by Unito

btsherid avatar Jan 21 '21 18:01 btsherid

Hi, I'm not sure if we support this now. But I'd like to change the title a bit.

We have support for job dependencies, but not at the batch connect level, so I'd think this ticket would be to enable that.

So just as a quick, on the spot, example of how this may work is: If you have an template/afterany directory in your batch connect app, we try to search and template the template/afterany/script.sh.erb and submit it as an after any job dependency to the main batch connect job.

The conventions we use would need some investigation. I know Slurm uses afterany but for us to follow the same convention we'd have to ensure most other schedulers have the same notion.

johrstrom avatar Jan 21 '21 18:01 johrstrom

OK thanks. If this becomes available in a later version I'll try it out.

btsherid avatar Jan 21 '21 19:01 btsherid