Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion curator/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ def do_action(self):

class DeleteSnapshots(object):
"""Delete Snapshots Action Class"""
def __init__(self, slo, retry_interval=120, retry_count=3):
def __init__(self, slo, retry_interval=120, retry_count=2):
"""
:arg slo: A :class:`curator.snapshotlist.SnapshotList` object
:arg retry_interval: Number of seconds to delay betwen retries. Default:
Expand Down
2 changes: 1 addition & 1 deletion curator/cli_singletons/delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def delete_indices(ctx, ignore_empty_list, allow_ilm_indices, filter_list):
#### Snapshots ####
@click.command(context_settings=get_width())
@click.option('--repository', type=str, required=True, help='Snapshot repository name')
@click.option('--retry_count', type=int, help='Number of times to retry (max 3)')
@click.option('--retry_count', type=int, help='Number of times to retry (max 100)')
@click.option('--retry_interval', type=int, help='Time in seconds between retries')
@click.option(
'--ignore_empty_list',
Expand Down
2 changes: 1 addition & 1 deletion curator/defaults/option_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def requests_per_second():
return {Optional('requests_per_second', default=-1): Any(-1, Coerce(int), None)}

def retry_count():
return {Optional('retry_count', default=3): All(Coerce(int), Range(min=0, max=100))}
return {Optional('retry_count', default=2): All(Coerce(int), Range(min=0, max=100))}

def retry_interval():
return {Optional('retry_interval', default=120): All(Coerce(int), Range(min=1, max=600))}
Expand Down
4 changes: 2 additions & 2 deletions curator/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ def find_snapshot_tasks(client):
retval = True
return retval

def safe_to_snap(client, repository=None, retry_interval=120, retry_count=3):
def safe_to_snap(client, repository=None, retry_interval=120, retry_count=2):
"""
Ensure there are no snapshots in progress. Pause and retry accordingly

Expand All @@ -1219,7 +1219,7 @@ def safe_to_snap(client, repository=None, retry_interval=120, retry_count=3):
"""
if not repository:
raise exceptions.MissingArgument('No value for "repository" provided')
for count in range(1, retry_count+1):
for count in range(1, retry_count+2):
in_progress = snapshot_in_progress(
client, repository=repository
)
Expand Down
2 changes: 1 addition & 1 deletion docs/asciidoc/actions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ description: "Delete selected snapshots from 'repository'"
options:
repository: ...
retry_interval: 120
retry_count: 3
retry_count: 2
filters:
- filtertype: ...
-------------
Expand Down
4 changes: 2 additions & 2 deletions docs/asciidoc/options.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2289,7 +2289,7 @@ description: "Delete selected snapshots from 'repository'"
options:
repository: ...
retry_interval: 120
retry_count: 3
retry_count: 2
filters:
- filtertype: ...
-------------
Expand All @@ -2312,7 +2312,7 @@ description: "Delete selected snapshots from 'repository'"
options:
repository: ...
retry_interval: 120
retry_count: 3
retry_count: 2
filters:
- filtertype: ...
-------------
Expand Down