Revert "Increase the maximum wait time for async resource creation. (#313)" (#321)

Some RESTler jobs are now taking much longer.  Reverting the update while
we investigate further.

This reverts commit 2cc6793e34.
This commit is contained in:
marina-p 2021-08-30 22:48:16 -07:00 коммит произвёл GitHub
Родитель 3817b597fa
Коммит 6c67ba9512
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -165,7 +165,7 @@ def try_async_poll(request_data, response, max_async_wait_time):
async_waited = True
poll_wait_seconds = 1
start_time = time.time()
RAW_LOGGING(f"Waiting for resource to be available...max wait time: {max_async_wait_time}")
RAW_LOGGING("Waiting for resource to be available...")
while (time.time() - start_time) < max_async_wait_time:
try:
# Send the polling request

Просмотреть файл

@ -296,7 +296,7 @@ MAX_REQUEST_EXECUTION_TIME_DEFAULT = 120
# This time is used as a max timeout when waiting for resources to be created.
# If the timeout is reached we will stop polling the status, but then immediately
# send the GET request for the endpoint just in case it is now ready.
MAX_ASYNC_RESOURCE_CREATION_TIME_DEFAULT = 240
MAX_ASYNC_RESOURCE_CREATION_TIME_DEFAULT = 20
# This small default for the maximum parameter combinations is intended for
# first-time use, such as in Test mode. Users are expected to increase this value
# as needed for more extensive fuzzing.