zowe / sample-spring-boot-api-service

Zowe REST API service SDK and sample API service that integrates with Zowe API Mediation Layer
Other
26 stars 18 forks source link

zowe-api-dev stop supports only java started by Jzos launcher #115

Open jandadav opened 4 years ago

jandadav commented 4 years ago

We are trying to use the tool and migrate API Mediation Layer pipeline deployments to zowe-api-dev. We want to stop the deployed job after we are done with it, for example when pipeline is done, release the resources. Our job is started with BPXBATCH and the zowe-api-dev is sending stop command, which is not effective for java launched this way. We would like to be able to do something like `zowe-api-dev stop --force' that would also send the cancel command.

We would like to have this in place before we migrate our pipeline to this tool.

plavjanik commented 4 years ago

This is a good idea too!

plavjanik commented 4 years ago

What about having the stop command to be intelligent as in PTG2? Try to stop it using /P, check if it has stopped. If not, /CANCEL it and wait until it is canceled. There would be option --cancel to cancel without trying to stop too. I do not want to call it --force since there is also a FORCE command in z/OS that is stronger than CANCEL but should not be used since it can cause problems to the system.

jandadav commented 4 years ago

Good idea