Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to terminate services #2967

Closed
mtitov opened this issue Jun 16, 2023 · 4 comments
Closed

Possibility to terminate services #2967

mtitov opened this issue Jun 16, 2023 · 4 comments

Comments

@mtitov
Copy link
Contributor

mtitov commented Jun 16, 2023

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
Copy link
Contributor Author

mtitov commented Jun 27, 2023

@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 andre-merzky self-assigned this Jul 7, 2023
@andre-merzky
Copy link
Member

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

@mtitov
Copy link
Contributor Author

mtitov commented Aug 4, 2023

Use case SOMA+RCT:

  • SOMA needs to dump monitoring data before the termination (which should be triggered by a corresponding RPC call)

@mtitov
Copy link
Contributor Author

mtitov commented Oct 11, 2023

Close in favor #3062

@mtitov mtitov closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants