Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kelkawi-a committed Jun 24, 2024
1 parent 7d276cd commit 9b2fb99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ config:
##### Secrets config #####
secret-persistence:
description: |
Defines the Secret Persistence type. Defaults to NO_OP.
Defines the Secret Persistence type.
Acceptable values are: "GOOGLE_SECRET_MANAGER", "AWS_SECRET_MANAGER", "TESTING_CONFIG_DB_TABLE", "VAULT"
If set, acceptable values are: "GOOGLE_SECRET_MANAGER", "AWS_SECRET_MANAGER", "TESTING_CONFIG_DB_TABLE", "VAULT"
type: string

secret-store-gcp-project-id:
Expand Down Expand Up @@ -193,6 +193,7 @@ config:

sync-job-max-timeout-days:
description: Number of days a sync job will execute for before timing out.
default: 3
type: int

job-main-container-cpu-request:
Expand All @@ -214,14 +215,17 @@ config:
##### Connections config #####
max-fields-per-connections:
description: Maximum number of fields able to be selected for a single connection.
default: 20000
type: int

max-days-of-only-failed-jobs-before-connection-disable:
description: Number of consecuative days of only failed jobs before the connection is disabled.
default: 14
type: int

max-failed-jobs-in-a-row-before-connection-disable:
description: Number of consecuative failed jobs before the connection is disabled.
default: 20
type: int

##### Worker config #####
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ def create_plan(container_name, storage_type):
"KEYCLOAK_INTERNAL_HOST": "localhost",
"LOG_LEVEL": "INFO",
"MAX_CHECK_WORKERS": 5,
"MAX_DAYS_OF_ONLY_FAILED_JOBS_BEFORE_CONNECTION_DISABLE": 14,
"MAX_DISCOVER_WORKERS": 5,
"MAX_FAILED_JOBS_IN_A_ROW_BEFORE_CONNECTION_DISABLE": 20,
"MAX_FIELDS_PER_CONNECTION": 20000,
"MAX_SPEC_WORKERS": 5,
"MAX_SYNC_WORKERS": 5,
"RUNNING_TTL_MINUTES": 240,
Expand All @@ -373,6 +376,7 @@ def create_plan(container_name, storage_type):
"STORAGE_BUCKET_WORKLOAD_OUTPUT": "airbyte-state-storage",
"STORAGE_TYPE": storage_type,
"SUCCEEDED_TTL_MINUTES": 30,
"SYNC_JOB_MAX_TIMEOUT_DAYS": 3,
"SYNC_JOB_RETRIES_COMPLETE_FAILURES_BACKOFF_BASE": 3,
"SYNC_JOB_RETRIES_COMPLETE_FAILURES_BACKOFF_MAX_INTERVAL_S": 1800,
"SYNC_JOB_RETRIES_COMPLETE_FAILURES_BACKOFF_MIN_INTERVAL_S": 10,
Expand Down

0 comments on commit 9b2fb99

Please sign in to comment.