Closed mtitov closed 11 months 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}"
TODO: check if signal forwarding is standardized for OpenMPI / MPICH / MVAPICH
Use case SOMA+RCT:
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