dask-jobqueue icon indicating copy to clipboard operation
dask-jobqueue copied to clipboard

Use configurable templated header with jinja2 as in batchspawner

Open guillaumeeb opened this issue 7 years ago • 2 comments

I feel https://github.com/jupyterhub/batchspawner is using an interesting way of templating job script. See SlurmSpawner for instance.

I know we used some templated script before too, but we did not make use of jinja2 thus being force to define some useless parameters to avoid issues. This would allow us to me more easily compatible with different job scheduler versions (i.e. Torque vs PBS), and be much more generic.

Any thoughts?

See historic discussion on the current code here https://github.com/dask/dask-jobqueue/issues/7#issuecomment-370473064.

guillaumeeb avatar Aug 22 '18 11:08 guillaumeeb

I think this is a good idea. I think our current approach made sense as a starting point but poses some challenges when maintaining many job schedulers.

jhamman avatar Aug 30 '18 06:08 jhamman

I'm interested in implementing the headers as Jinja2 templates. See #338 for more details.

wtbarnes avatar Sep 11 '19 15:09 wtbarnes