Questions about purge app usage event API


Nitta, Minoru <minoru.nitta@...>
 

Hi,

I have some questions about 'Purge and reseed App Usage Events' API.
https://apidocs.cloudfoundry.org/212/app_usage_events/purge_and_reseed_app_usage_events.html

I am wondering about app started events. The API populates new events for started app.
This may cause the problems if the API and stopping app occur at the same time (race condition).
(e.g. app stopped after the API execution, which populates new app start event but stop app event
never occur).

How can I workaround this problem? Or CloudFoundry handles such race condition internally and
I do not have to consider the workaround for it?

Regards,
Minoru

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.