ert icon indicating copy to clipboard operation
ert copied to clipboard

After clicking `Kill realizations` realizations with state `Waiting` are submitted before being stopped.

Open oyvindeide opened this issue 2 years ago • 2 comments

After executing Kill realizations, ERT spends time on submitting realizations of state Waiting before it kills them. Would be nice if ERT could just avoid submitting the Waiting - and focus on killing the pending and running realizations.

Some context here: https://github.com/equinor/ert/blob/main/src/clib/lib/include/ert/job_queue/job_status.hpp

oyvindeide avatar Sep 22 '23 07:09 oyvindeide

This might be already solved by the new Scheduler Queue system.

xjules avatar Dec 08 '23 11:12 xjules

Can this be closed @oyvindeide ?

xjules avatar Mar 04 '24 10:03 xjules

This is solved in the new Scheduler. The "Waiting" state is the implicit state in job.py before it is submitted, and if the time in waiting is nonzero, it is awaiting "sleep_until_we_can_submit". When kill is clicked, all job tasks are cancelled from scheduler.py, and this await will be cancelled and the realization killed.

berland avatar Apr 10 '24 10:04 berland