Interrupting an analysis in ArcGIS Online by closing the browser window while the analysis is processing produces corrupted hosted feature layers and still consumes credits.
Currently, in both ArcGIS Online and ArcGIS Enterprise, if users submit an analysis job, there is a brief period of time and a few requests are made prior to the “submitjob” (The submitjob is where the request is sent to the server).
Prior to “submitjob”:
The token is checked to see if the result name is available. An empty service is created and some user interface elements are loaded which takes a very brief amount of time.
If the browser is disconnected or closed prior to the “submitjob” request, users get an empty feature service and when looking at this empty feature service in Contents, there is an error when viewing the data using the Data tab.
By design, once the “submitjob” is sent to the server, the analysis job completes regardless of the status of the client browser. This is confirmed with both ArcGIS Online web map viewer, ArcGIS Online Web AppBuilder and ArcGIS Enterprise 10.5.1, and 10.7. Once users returns to their contents, the analysis job may be complete or it may still be processing. If it is still processing, then users sees the proper indication on the result layers item info page that the job is still running.
Regarding credits, no credits are deducted until the analysis job has completed.
Based on the above, with the current software, the issues regarding improper credit consumption or corrupted feature services are not reproducible. Again, by design, if the client browser is interrupted before the “submitjob”, an empty feature service is created and no credits are deducted.