Hi Reka, Yes at least getting a certain undeployment time would satisfy our requirement. I had an offline chat with Akila and got to know that previously undeployment call was synchronous, where we are getting a response if the undeployment is success or not, which solves the issue.
On Fri, Aug 21, 2015 at 4:44 PM, Reka Thirunavukkarasu <r...@wso2.com> wrote: > Hi Anuruddha, > > Our purpose was to differentiate application undeployment and deletion as > we have treated application run time and the application definition > separately. IMO, it is not good to merge undeployment and deletion to one > call. In some other scenarios, users can undeploy an application, then > update the application and re-deploy it again. But, you can customize this > from your client side if you really want to merge both calls. > > I understand your issue here as undeployment or force-undeployment don't > support a definite undeployment time. We can try to see the possibility of > implementing force-undeployment with a definite time interval. In that > case, you can also do the pre-process after the certain time interval. > WDYT? We will need to go though the implementation and try to find out the > possible approach to improve the forceful undeployment. > > Thanks, > Reka > > > On Fri, Aug 21, 2015 at 3:43 PM, Anuruddha Premalal < > anuruddhaprema...@gmail.com> wrote: > >> Hi Devs, >> >> When we want to delete a single tenant application user have to first >> undeploy the application and then delete it. If a user wants to do it >> programatically, one way is to undepoy and wait for a certain period and >> then delete this is not reliable since the waiting time is uncertain. >> >> Other way is to register an event listener to listen to application event >> and delete the app on undeployent. Are there any options to achieve app >> deletion instead of the above? >> >> If not IMO it's better to provide a single method to delete the >> application (either forcefully) instead of letting the user to do it using >> a listener. WDYT? >> >> Use case here is I'm spinning stratos applications for each single tenant >> appfactory application and it's versions, when a user deletes an appfactory >> application, appfactory should be able to delete all the related resources >> from stratos either forcefully andd user should be able to create an >> application with the same name again. >> >> Regards, >> -- >> *Anuruddha Premalala (MIEEE)Mobile : +94710461070 <%2B94710461070>E-mail >> : anuruddhaprema...@gmail.com <anuruddhaprema...@gmail.com>web : >> www.regilandvalley.com <http://www.regilandvalley.com>Sri Lanka.* >> > > > > -- > Reka Thirunavukkarasu > Senior Software Engineer, > WSO2, Inc.:http://wso2.com, > Mobile: +94776442007 > > > -- *Anuruddha Premalala (MIEEE)Mobile : +94710461070E-mail : anuruddhaprema...@gmail.com <anuruddhaprema...@gmail.com>web : www.regilandvalley.com <http://www.regilandvalley.com>Sri Lanka.*