Skip to content

Commit a482f9d

Browse files
committed
do not set default async API timeout
to allow waiting for the API result indefinitely
1 parent e11eb6e commit a482f9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/src/main/python/opengrok_tools/projadm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# CDDL HEADER END
1919

2020
#
21-
# Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
21+
# Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
2222
#
2323

2424
"""
@@ -54,7 +54,7 @@
5454
print("Need Python 3, you are running {}".format(MAJOR_VERSION))
5555
sys.exit(1)
5656

57-
__version__ = "0.6"
57+
__version__ = "0.7"
5858

5959

6060
def exec_command(doit, logger, cmd, msg):
@@ -265,7 +265,7 @@ def main():
265265
add_http_headers(parser)
266266
parser.add_argument('--api_timeout', type=int, default=3,
267267
help='Set response timeout in seconds for RESTful API calls')
268-
parser.add_argument('--async_api_timeout', type=int, default=300,
268+
parser.add_argument('--async_api_timeout', type=int, default=None,
269269
help='Set timeout in seconds for asynchronous RESTful API calls')
270270

271271
group = parser.add_mutually_exclusive_group()

0 commit comments

Comments
 (0)