DataBiosphere / dsub

Open-source command-line tool to run batch computing tasks and workflows on backend services such as Google Cloud.
Apache License 2.0
265 stars 44 forks source link

Shutdown Script for Preemptible #193

Open albertofpena opened 4 years ago

albertofpena commented 4 years ago

Hi there,

I was wondering if there is an easy way to provide a shutdown script to the instances launched with the preemptible flag. This way we could save the progress of a terminated instance.

Thank you for your work.

mbookman commented 4 years ago

Hi @albertofpena !

As implemented today, it doesn't appear that the Life Sciences Pipelines API which handles the on-VM execution framework for dsub supports any kind of signaling to user actions when a VM is shutting down (whether from preemption or otherwise).

I have filed a feature request to see if such a feature can be provided.

albertofpena commented 4 years ago

Hi @mbookman,

Thanks for your answer. I've been looking, and I didn't find a straightforward way to do it. I don't have experience with this API, but probably you can find a way to do it.

Thank you very much for this useful tool.