Skip to content

Commit 98bc86c

Browse files
hubatishcopybara-github
authored andcommitted
Add convenience function for long running
PiperOrigin-RevId: 843424475
1 parent 1882cf0 commit 98bc86c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

perfkitbenchmarker/app_service.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,12 @@ def GetLifeCycleMetrics(self):
307307
s.metadata.update(self.metadata)
308308
return self.samples
309309

310+
def IsAppLongRunning(self) -> bool:
311+
"""Returns true if the app is long running."""
312+
if not self.builder:
313+
return False
314+
return self.builder.IsAppLongRunning()
315+
310316
def _PostCreate(self):
311317
"""Method called after _CreateResource."""
312318
if self.builder:

0 commit comments

Comments
 (0)