Add app timeout.

pull/1002/head
Andrey 2024-01-27 22:33:56 +02:00
rodzic e723dabaaf
commit c7c89aaadd
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -965,6 +965,7 @@ def create_resource_for_user(
token=MOONSTREAM_ADMIN_ACCESS_TOKEN, token=MOONSTREAM_ADMIN_ACCESS_TOKEN,
application_id=MOONSTREAM_APPLICATION_ID, application_id=MOONSTREAM_APPLICATION_ID,
resource_data=resource_data, resource_data=resource_data,
timeout=BUGOUT_REQUEST_TIMEOUT_SECONDS,
) )
except BugoutResponseException as e: except BugoutResponseException as e:
raise MoonstreamHTTPException(status_code=e.status_code, detail=e.detail) raise MoonstreamHTTPException(status_code=e.status_code, detail=e.detail)
@ -986,6 +987,7 @@ def create_resource_for_user(
ResourcePermissions.DELETE, ResourcePermissions.DELETE,
], ],
), ),
timeout=BUGOUT_REQUEST_TIMEOUT_SECONDS,
) )
except BugoutResponseException as e: except BugoutResponseException as e:
logger.error( logger.error(