Skip to content

Commit

Permalink
ten minutes?
Browse files Browse the repository at this point in the history
  • Loading branch information
emmettbutler committed Oct 18, 2024
1 parent bc98973 commit c92d4fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/onboarding/backend_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _query_for_crash_log(runtime_id):
host = "https://api.datadoghq.com"
try:
time_to = datetime.now(timezone.utc)
time_from = time_to - timedelta(minutes=5)
time_from = time_to - timedelta(minutes=10)

queryJson = {
"filter": {
Expand Down Expand Up @@ -151,5 +151,5 @@ def wait_backend_data(
def cause_and_verify_crash(runtime_id: str, vm_ip: str, vm_port: str):
logger.info(f"Making a crash-inducing request to weblog [{vm_ip}:{vm_port}]")
make_get_request(f"http://{vm_ip}:{vm_port}/crashme", swallow=True)
(status,) = _retry_request_until_timeout(functools.partial(_query_for_crash_log, runtime_id), timeout=300.0)
(status,) = _retry_request_until_timeout(functools.partial(_query_for_crash_log, runtime_id), timeout=600.0)
logger.info(f"crash from runtime {runtime_id} found in the backend!")

0 comments on commit c92d4fc

Please sign in to comment.