Skip to content

Commit b9b83f1

Browse files
committed
Simplify fts-index timeout
1 parent 679ee36 commit b9b83f1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ckanext/datastore/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919
get_read_engine,
2020
get_write_engine,
2121
_get_raw_field_info,
22-
_get_timeout,
2322
)
2423
from ckanext.datastore.blueprint import DUMP_FORMATS, dump_to
2524

2625

27-
_TIMEOUT: int = _get_timeout()
2826
log = logging.getLogger(__name__)
2927

3028

@@ -227,7 +225,7 @@ def upgrade():
227225
@click.option(
228226
'--timeout', metavar='SECONDS',
229227
type=click.FloatRange(0, 2147483.647), # because postgres max int
230-
default=_TIMEOUT / 1000, show_default=True,
228+
default=60, show_default=True,
231229
help='maximum index creation time in seconds',
232230
)
233231
def fts_index(timeout: float):

0 commit comments

Comments
 (0)