radical-cybertools / radical.pilot

RADICAL-Pilot
http://radical-cybertools.github.io/radical-pilot/index.html
Other
54 stars 23 forks source link

Possibility to terminate services #2967

Closed mtitov closed 11 months ago

mtitov commented 1 year ago

How we can control the termination process? - termination command as a part of task description, or special method for service tasks (task.cancel())

p.s. it is needed for Chimbuko app (RECUP project), since some summary/statistics is collected during the termination

mtitov commented 1 year ago

@andre-merzky Example of a set of operations to terminate Chimbuko service

provdb_addr=$(cat chimbuko/provdb/provider.address)
echo "Provenance DB is on ${provdb_addr}"
pserver_addr=$(cat chimbuko/vars/chimbuko_ad_opts.var | sed 's/.*pserver_addr\s\([^ ]\+\).*/\1/')
echo "Pserver is on ${pserver_addr}"
echo "Shutting down pserver"
pshutdown "${pserver_addr}"
sleep 4
echo "Shutting down provDB"
provdb_shutdown "${provdb_addr}"
andre-merzky commented 1 year ago

TODO: check if signal forwarding is standardized for OpenMPI / MPICH / MVAPICH

mtitov commented 1 year ago

Use case SOMA+RCT:

mtitov commented 11 months ago

Close in favor https://github.com/radical-cybertools/radical.pilot/issues/3062