Skip to content

Commit 470664d

Browse files
Revert: Undo direct merges to staging (#176)
* Revert "Merge branch '172-retry-only-429' into staging" This reverts commit 052796e, reversing changes made to 5be1748. * Revert "Merge branch '171-import-partial-export' into staging" This reverts commit 5be1748, reversing changes made to b095f88. * Revert "Merge branch '170-default-logging-none' into staging" This reverts commit b095f88, reversing changes made to 7b20357.
1 parent 052796e commit 470664d

File tree

4 files changed

+2
-18
lines changed

4 files changed

+2
-18
lines changed

HISTORY.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88
<!-- insertion marker -->
9-
## [1.6.0](https://github.com/cortexapps/cli/releases/tag/1.6.0) - 2025-11-14
10-
11-
<small>[Compare with 1.5.0](https://github.com/cortexapps/cli/compare/1.5.0...1.6.0)</small>
12-
13-
### Bug Fixes
14-
15-
- remove rate limiter initialization log message (#169) #patch ([015107a](https://github.com/cortexapps/cli/commit/015107aca15d5a4cf4eb746834bcbb7dac607e1d) by Jeff Schnitter).
16-
179
## [1.5.0](https://github.com/cortexapps/cli/releases/tag/1.5.0) - 2025-11-13
1810

1911
<small>[Compare with 1.4.0](https://github.com/cortexapps/cli/compare/1.4.0...1.5.0)</small>

cortexapps_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def global_callback(
8787
url: str = typer.Option(None, "--url", "-u", help="Base URL for the API", envvar="CORTEX_BASE_URL"),
8888
config_file: str = typer.Option(os.path.join(os.path.expanduser('~'), '.cortex', 'config'), "--config", "-c", help="Config file path", envvar="CORTEX_CONFIG"),
8989
tenant: str = typer.Option("default", "--tenant", "-t", help="Tenant alias", envvar="CORTEX_TENANT_ALIAS"),
90-
log_level: Annotated[str, typer.Option("--log-level", "-l", help="Set the logging level")] = "WARNING",
90+
log_level: Annotated[str, typer.Option("--log-level", "-l", help="Set the logging level")] = "INFO",
9191
rate_limit: int = typer.Option(None, "--rate-limit", "-r", help="API rate limit in requests per minute (default: 1000)", envvar="CORTEX_RATE_LIMIT")
9292
):
9393
if not ctx.obj:

cortexapps_cli/commands/backup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,6 @@ def import_relationships_file(file_info):
472472
return ("entity-relationships", len(results) - failed_count, [(fp, et, em) for rt, fp, et, em in results if et])
473473

474474
def _import_catalog(ctx, directory):
475-
results = []
476-
failed_count = 0
477475
if os.path.isdir(directory):
478476
print("Processing: " + directory)
479477
files = [(filename, os.path.join(directory, filename))
@@ -509,8 +507,6 @@ def import_catalog_file(file_info):
509507
return ("catalog", len(results) - failed_count, [(fp, et, em) for fn, fp, et, em in results if et])
510508

511509
def _import_plugins(ctx, directory):
512-
results = []
513-
failed_count = 0
514510
if os.path.isdir(directory):
515511
print("Processing: " + directory)
516512
files = [(filename, os.path.join(directory, filename))
@@ -547,8 +543,6 @@ def import_plugin_file(file_info):
547543
return ("plugins", len(results) - failed_count, [(fp, et, em) for fn, fp, et, em in results if et])
548544

549545
def _import_scorecards(ctx, directory):
550-
results = []
551-
failed_count = 0
552546
if os.path.isdir(directory):
553547
print("Processing: " + directory)
554548
files = [(filename, os.path.join(directory, filename))
@@ -585,8 +579,6 @@ def import_scorecard_file(file_info):
585579
return ("scorecards", len(results) - failed_count, [(fp, et, em) for fn, fp, et, em in results if et])
586580

587581
def _import_workflows(ctx, directory):
588-
results = []
589-
failed_count = 0
590582
if os.path.isdir(directory):
591583
print("Processing: " + directory)
592584
files = [(filename, os.path.join(directory, filename))

cortexapps_cli/cortex_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(self, api_key, tenant, numeric_level, base_url='https://api.getcort
9898
max_retries=Retry(
9999
total=3,
100100
backoff_factor=0.3,
101-
status_forcelist=[429], # Only retry on rate limit errors
101+
status_forcelist=[500, 502, 503, 504], # Removed 429 - we avoid it with rate limiting
102102
allowed_methods=["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"],
103103
respect_retry_after_header=True
104104
)

0 commit comments

Comments
 (0)