infrahub-server 1.6.2__py3-none-any.whl → 1.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- infrahub/actions/tasks.py +4 -2
- infrahub/api/exceptions.py +2 -2
- infrahub/api/schema.py +3 -1
- infrahub/artifacts/tasks.py +1 -0
- infrahub/auth.py +2 -2
- infrahub/cli/db.py +54 -28
- infrahub/computed_attribute/gather.py +3 -4
- infrahub/computed_attribute/tasks.py +23 -6
- infrahub/config.py +8 -0
- infrahub/constants/enums.py +12 -0
- infrahub/core/account.py +12 -9
- infrahub/core/attribute.py +106 -108
- infrahub/core/branch/models.py +44 -71
- infrahub/core/branch/tasks.py +5 -3
- infrahub/core/changelog/diff.py +1 -20
- infrahub/core/changelog/models.py +0 -7
- infrahub/core/constants/__init__.py +17 -0
- infrahub/core/constants/database.py +0 -1
- infrahub/core/constants/schema.py +0 -1
- infrahub/core/convert_object_type/repository_conversion.py +3 -4
- infrahub/core/diff/branch_differ.py +1 -1
- infrahub/core/diff/conflict_transferer.py +1 -1
- infrahub/core/diff/data_check_synchronizer.py +4 -3
- infrahub/core/diff/enricher/cardinality_one.py +2 -2
- infrahub/core/diff/enricher/hierarchy.py +1 -1
- infrahub/core/diff/enricher/labels.py +1 -1
- infrahub/core/diff/merger/merger.py +28 -2
- infrahub/core/diff/merger/serializer.py +3 -10
- infrahub/core/diff/model/diff.py +1 -1
- infrahub/core/diff/query/merge.py +376 -135
- infrahub/core/diff/repository/repository.py +3 -1
- infrahub/core/graph/__init__.py +1 -1
- infrahub/core/graph/constraints.py +3 -3
- infrahub/core/graph/schema.py +2 -12
- infrahub/core/ipam/reconciler.py +8 -6
- infrahub/core/ipam/utilization.py +8 -15
- infrahub/core/manager.py +133 -152
- infrahub/core/merge.py +1 -1
- infrahub/core/metadata/__init__.py +0 -0
- infrahub/core/metadata/interface.py +37 -0
- infrahub/core/metadata/model.py +31 -0
- infrahub/core/metadata/query/__init__.py +0 -0
- infrahub/core/metadata/query/node_metadata.py +301 -0
- infrahub/core/migrations/graph/__init__.py +4 -0
- infrahub/core/migrations/graph/m012_convert_account_generic.py +12 -12
- infrahub/core/migrations/graph/m013_convert_git_password_credential.py +7 -12
- infrahub/core/migrations/graph/m017_add_core_profile.py +5 -2
- infrahub/core/migrations/graph/m018_uniqueness_nulls.py +2 -1
- infrahub/core/migrations/graph/m019_restore_rels_to_time.py +0 -10
- infrahub/core/migrations/graph/m020_duplicate_edges.py +0 -8
- infrahub/core/migrations/graph/m025_uniqueness_nulls.py +2 -1
- infrahub/core/migrations/graph/m026_0000_prefix_fix.py +2 -1
- infrahub/core/migrations/graph/m029_duplicates_cleanup.py +0 -1
- infrahub/core/migrations/graph/m031_check_number_attributes.py +2 -2
- infrahub/core/migrations/graph/m038_redo_0000_prefix_fix.py +2 -1
- infrahub/core/migrations/graph/m041_deleted_dup_edges.py +1 -1
- infrahub/core/migrations/graph/m049_remove_is_visible_relationship.py +53 -0
- infrahub/core/migrations/graph/m050_backfill_vertex_metadata.py +168 -0
- infrahub/core/migrations/query/__init__.py +2 -2
- infrahub/core/migrations/query/attribute_add.py +17 -6
- infrahub/core/migrations/query/attribute_remove.py +19 -5
- infrahub/core/migrations/query/attribute_rename.py +21 -5
- infrahub/core/migrations/query/node_duplicate.py +19 -4
- infrahub/core/migrations/query/schema_attribute_update.py +1 -1
- infrahub/core/migrations/schema/attribute_kind_update.py +26 -6
- infrahub/core/migrations/schema/attribute_name_update.py +1 -1
- infrahub/core/migrations/schema/attribute_supports_profile.py +5 -3
- infrahub/core/migrations/schema/models.py +3 -0
- infrahub/core/migrations/schema/node_attribute_add.py +5 -2
- infrahub/core/migrations/schema/node_attribute_remove.py +1 -1
- infrahub/core/migrations/schema/node_kind_update.py +1 -1
- infrahub/core/migrations/schema/node_remove.py +24 -2
- infrahub/core/migrations/schema/tasks.py +4 -1
- infrahub/core/migrations/shared.py +13 -6
- infrahub/core/models.py +6 -6
- infrahub/core/node/__init__.py +157 -58
- infrahub/core/node/base.py +9 -5
- infrahub/core/node/create.py +7 -3
- infrahub/core/node/delete_validator.py +1 -1
- infrahub/core/node/standard.py +100 -14
- infrahub/core/order.py +30 -0
- infrahub/core/property.py +0 -1
- infrahub/core/protocols.py +1 -0
- infrahub/core/protocols_base.py +10 -2
- infrahub/core/query/__init__.py +11 -6
- infrahub/core/query/attribute.py +164 -49
- infrahub/core/query/branch.py +58 -70
- infrahub/core/query/delete.py +1 -1
- infrahub/core/query/diff.py +7 -7
- infrahub/core/query/ipam.py +104 -43
- infrahub/core/query/node.py +1072 -281
- infrahub/core/query/relationship.py +531 -325
- infrahub/core/query/resource_manager.py +107 -18
- infrahub/core/query/standard_node.py +25 -5
- infrahub/core/query/utils.py +2 -4
- infrahub/core/relationship/constraints/count.py +1 -1
- infrahub/core/relationship/constraints/peer_kind.py +1 -1
- infrahub/core/relationship/constraints/peer_parent.py +1 -1
- infrahub/core/relationship/constraints/peer_relatives.py +1 -1
- infrahub/core/relationship/constraints/profiles_kind.py +1 -1
- infrahub/core/relationship/constraints/profiles_removal.py +168 -0
- infrahub/core/relationship/model.py +293 -139
- infrahub/core/schema/attribute_parameters.py +28 -1
- infrahub/core/schema/attribute_schema.py +11 -17
- infrahub/core/schema/basenode_schema.py +3 -0
- infrahub/core/schema/definitions/core/__init__.py +8 -2
- infrahub/core/schema/definitions/core/account.py +10 -10
- infrahub/core/schema/definitions/core/artifact.py +14 -8
- infrahub/core/schema/definitions/core/check.py +10 -4
- infrahub/core/schema/definitions/core/generator.py +26 -6
- infrahub/core/schema/definitions/core/graphql_query.py +1 -1
- infrahub/core/schema/definitions/core/group.py +9 -2
- infrahub/core/schema/definitions/core/ipam.py +80 -10
- infrahub/core/schema/definitions/core/menu.py +41 -7
- infrahub/core/schema/definitions/core/permission.py +16 -2
- infrahub/core/schema/definitions/core/profile.py +16 -2
- infrahub/core/schema/definitions/core/propose_change.py +24 -4
- infrahub/core/schema/definitions/core/propose_change_comment.py +23 -11
- infrahub/core/schema/definitions/core/propose_change_validator.py +50 -21
- infrahub/core/schema/definitions/core/repository.py +10 -0
- infrahub/core/schema/definitions/core/resource_pool.py +8 -1
- infrahub/core/schema/definitions/core/template.py +19 -2
- infrahub/core/schema/definitions/core/transform.py +11 -5
- infrahub/core/schema/definitions/core/webhook.py +27 -9
- infrahub/core/schema/manager.py +63 -43
- infrahub/core/schema/relationship_schema.py +6 -2
- infrahub/core/schema/schema_branch.py +115 -11
- infrahub/core/task/task.py +4 -2
- infrahub/core/utils.py +3 -25
- infrahub/core/validators/aggregated_checker.py +1 -1
- infrahub/core/validators/attribute/choices.py +1 -1
- infrahub/core/validators/attribute/enum.py +1 -1
- infrahub/core/validators/attribute/kind.py +6 -3
- infrahub/core/validators/attribute/length.py +1 -1
- infrahub/core/validators/attribute/min_max.py +1 -1
- infrahub/core/validators/attribute/number_pool.py +1 -1
- infrahub/core/validators/attribute/optional.py +1 -1
- infrahub/core/validators/attribute/regex.py +1 -1
- infrahub/core/validators/determiner.py +3 -3
- infrahub/core/validators/node/attribute.py +1 -1
- infrahub/core/validators/node/relationship.py +1 -1
- infrahub/core/validators/relationship/peer.py +1 -1
- infrahub/database/__init__.py +4 -4
- infrahub/dependencies/builder/constraint/grouped/node_runner.py +2 -0
- infrahub/dependencies/builder/constraint/relationship_manager/profiles_removal.py +8 -0
- infrahub/dependencies/registry.py +2 -0
- infrahub/display_labels/tasks.py +12 -3
- infrahub/git/integrator.py +18 -18
- infrahub/git/tasks.py +1 -1
- infrahub/git/utils.py +1 -1
- infrahub/graphql/app.py +2 -2
- infrahub/graphql/constants.py +3 -0
- infrahub/graphql/context.py +1 -1
- infrahub/graphql/field_extractor.py +1 -1
- infrahub/graphql/initialization.py +11 -0
- infrahub/graphql/loaders/account.py +134 -0
- infrahub/graphql/loaders/node.py +5 -12
- infrahub/graphql/loaders/peers.py +5 -7
- infrahub/graphql/manager.py +175 -21
- infrahub/graphql/metadata.py +91 -0
- infrahub/graphql/mutations/account.py +6 -6
- infrahub/graphql/mutations/attribute.py +0 -2
- infrahub/graphql/mutations/branch.py +9 -5
- infrahub/graphql/mutations/computed_attribute.py +1 -1
- infrahub/graphql/mutations/display_label.py +1 -1
- infrahub/graphql/mutations/hfid.py +1 -1
- infrahub/graphql/mutations/ipam.py +4 -6
- infrahub/graphql/mutations/main.py +9 -4
- infrahub/graphql/mutations/profile.py +16 -22
- infrahub/graphql/mutations/proposed_change.py +4 -4
- infrahub/graphql/mutations/relationship.py +40 -10
- infrahub/graphql/mutations/repository.py +14 -12
- infrahub/graphql/mutations/schema.py +2 -2
- infrahub/graphql/order.py +14 -0
- infrahub/graphql/queries/branch.py +62 -6
- infrahub/graphql/queries/diff/tree.py +5 -5
- infrahub/graphql/queries/resource_manager.py +25 -24
- infrahub/graphql/resolvers/account_metadata.py +84 -0
- infrahub/graphql/resolvers/ipam.py +6 -8
- infrahub/graphql/resolvers/many_relationship.py +77 -35
- infrahub/graphql/resolvers/resolver.py +59 -14
- infrahub/graphql/resolvers/single_relationship.py +87 -23
- infrahub/graphql/subscription/graphql_query.py +2 -0
- infrahub/graphql/types/__init__.py +0 -1
- infrahub/graphql/types/attribute.py +10 -5
- infrahub/graphql/types/branch.py +40 -53
- infrahub/graphql/types/enums.py +3 -0
- infrahub/graphql/types/metadata.py +28 -0
- infrahub/graphql/types/node.py +22 -2
- infrahub/graphql/types/relationship.py +10 -2
- infrahub/graphql/types/standard_node.py +12 -7
- infrahub/hfid/tasks.py +12 -3
- infrahub/lock.py +7 -0
- infrahub/menu/repository.py +1 -1
- infrahub/patch/queries/base.py +1 -1
- infrahub/pools/number.py +1 -8
- infrahub/profiles/gather.py +56 -0
- infrahub/profiles/mandatory_fields_checker.py +116 -0
- infrahub/profiles/models.py +66 -0
- infrahub/profiles/node_applier.py +154 -13
- infrahub/profiles/queries/get_profile_data.py +143 -31
- infrahub/profiles/tasks.py +79 -27
- infrahub/profiles/triggers.py +22 -0
- infrahub/proposed_change/action_checker.py +1 -1
- infrahub/proposed_change/tasks.py +4 -1
- infrahub/services/__init__.py +1 -1
- infrahub/services/adapters/cache/nats.py +1 -1
- infrahub/services/adapters/cache/redis.py +7 -0
- infrahub/tasks/artifact.py +1 -0
- infrahub/transformations/tasks.py +2 -2
- infrahub/trigger/catalogue.py +2 -0
- infrahub/trigger/models.py +1 -0
- infrahub/trigger/setup.py +3 -3
- infrahub/trigger/tasks.py +3 -0
- infrahub/validators/tasks.py +1 -0
- infrahub/webhook/gather.py +1 -1
- infrahub/webhook/models.py +1 -1
- infrahub/webhook/tasks.py +23 -7
- infrahub/workers/dependencies.py +9 -3
- infrahub/workers/infrahub_async.py +13 -4
- infrahub/workflows/catalogue.py +19 -0
- infrahub_sdk/analyzer.py +2 -2
- infrahub_sdk/branch.py +12 -39
- infrahub_sdk/checks.py +4 -4
- infrahub_sdk/client.py +36 -0
- infrahub_sdk/ctl/cli_commands.py +2 -1
- infrahub_sdk/ctl/graphql.py +15 -4
- infrahub_sdk/ctl/utils.py +2 -2
- infrahub_sdk/enums.py +6 -0
- infrahub_sdk/graphql/renderers.py +21 -0
- infrahub_sdk/graphql/utils.py +85 -0
- infrahub_sdk/node/attribute.py +12 -2
- infrahub_sdk/node/constants.py +12 -0
- infrahub_sdk/node/metadata.py +69 -0
- infrahub_sdk/node/node.py +65 -14
- infrahub_sdk/node/property.py +3 -0
- infrahub_sdk/node/related_node.py +37 -5
- infrahub_sdk/node/relationship.py +18 -1
- infrahub_sdk/operation.py +2 -2
- infrahub_sdk/schema/repository.py +1 -2
- infrahub_sdk/transforms.py +2 -2
- infrahub_sdk/types.py +18 -2
- {infrahub_server-1.6.2.dist-info → infrahub_server-1.7.0.dist-info}/METADATA +17 -16
- {infrahub_server-1.6.2.dist-info → infrahub_server-1.7.0.dist-info}/RECORD +252 -231
- infrahub_testcontainers/container.py +3 -3
- infrahub_testcontainers/docker-compose-cluster.test.yml +7 -7
- infrahub_testcontainers/docker-compose.test.yml +13 -5
- infrahub_testcontainers/models.py +3 -3
- infrahub_testcontainers/performance_test.py +1 -1
- infrahub/graphql/models.py +0 -6
- {infrahub_server-1.6.2.dist-info → infrahub_server-1.7.0.dist-info}/WHEEL +0 -0
- {infrahub_server-1.6.2.dist-info → infrahub_server-1.7.0.dist-info}/entry_points.txt +0 -0
- {infrahub_server-1.6.2.dist-info → infrahub_server-1.7.0.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -30,8 +30,8 @@ INFRAHUB_SERVICES: dict[str, ContainerService] = {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
PROJECT_ENV_VARIABLES: dict[str, str] = {
|
|
33
|
-
"MESSAGE_QUEUE_DOCKER_IMAGE": "rabbitmq:
|
|
34
|
-
"CACHE_DOCKER_IMAGE": "redis:
|
|
33
|
+
"MESSAGE_QUEUE_DOCKER_IMAGE": "rabbitmq:4.2.1-management",
|
|
34
|
+
"CACHE_DOCKER_IMAGE": "redis:8.4.0",
|
|
35
35
|
"INFRAHUB_TESTING_DOCKER_IMAGE": "registry.opsmill.io/opsmill/infrahub",
|
|
36
36
|
"INFRAHUB_TESTING_DOCKER_ENTRYPOINT": f"gunicorn --config backend/infrahub/serve/gunicorn_config.py -w {os.environ.get('INFRAHUB_TESTING_WEB_CONCURRENCY', '4')} --logger-class infrahub.serve.log.GunicornLogger infrahub.server:app", # noqa: E501
|
|
37
37
|
"INFRAHUB_TESTING_IMAGE_VERSION": infrahub_version,
|
|
@@ -152,7 +152,7 @@ class InfrahubDockerCompose(DockerCompose):
|
|
|
152
152
|
"INFRAHUB_TESTING_DOCKER_ENTRYPOINT": f"gunicorn --config community/backend/infrahub/serve/gunicorn_config.py -w {os.environ.get('INFRAHUB_TESTING_WEB_CONCURRENCY', '4')} --logger-class infrahub.serve.log.GunicornLogger infrahub_enterprise.server:app", # noqa: E501
|
|
153
153
|
"INFRAHUB_TESTING_WORKFLOW_DEFAULT_WORKER_TYPE": "infrahubentasync",
|
|
154
154
|
"INFRAHUB_TESTING_PREFECT_UI_ENABLED": "false",
|
|
155
|
-
"NEO4J_DOCKER_IMAGE": "neo4j:2025.
|
|
155
|
+
"NEO4J_DOCKER_IMAGE": "neo4j:2025.10.1-enterprise",
|
|
156
156
|
}
|
|
157
157
|
)
|
|
158
158
|
if os.environ.get("INFRAHUB_TESTING_TASKMGR_SCALEOUT"):
|
|
@@ -22,7 +22,7 @@ x-neo4j-config-common: &neo4j-config-common
|
|
|
22
22
|
|
|
23
23
|
services:
|
|
24
24
|
message-queue:
|
|
25
|
-
image: ${MESSAGE_QUEUE_DOCKER_IMAGE:-rabbitmq:
|
|
25
|
+
image: ${MESSAGE_QUEUE_DOCKER_IMAGE:-rabbitmq:4.2.1-management}
|
|
26
26
|
restart: unless-stopped
|
|
27
27
|
environment:
|
|
28
28
|
RABBITMQ_DEFAULT_USER: infrahub
|
|
@@ -37,7 +37,7 @@ services:
|
|
|
37
37
|
- ${INFRAHUB_TESTING_MESSAGE_QUEUE_PORT:-0}:15692
|
|
38
38
|
|
|
39
39
|
cache:
|
|
40
|
-
image: ${CACHE_DOCKER_IMAGE:-redis:
|
|
40
|
+
image: ${CACHE_DOCKER_IMAGE:-redis:8.4.0}
|
|
41
41
|
restart: unless-stopped
|
|
42
42
|
healthcheck:
|
|
43
43
|
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
|
@@ -67,7 +67,7 @@ services:
|
|
|
67
67
|
limits:
|
|
68
68
|
cpus: ${INFRAHUB_TESTING_DB_CPU_LIMIT}
|
|
69
69
|
memory: ${INFRAHUB_TESTING_DB_MEMORY_LIMIT}
|
|
70
|
-
image: "${DATABASE_DOCKER_IMAGE:-neo4j:
|
|
70
|
+
image: "${DATABASE_DOCKER_IMAGE:-neo4j:2025.10.1-enterprise}"
|
|
71
71
|
restart: unless-stopped
|
|
72
72
|
environment:
|
|
73
73
|
<<: *neo4j-config-common
|
|
@@ -100,7 +100,7 @@ services:
|
|
|
100
100
|
limits:
|
|
101
101
|
cpus: ${INFRAHUB_TESTING_DB_CPU_LIMIT}
|
|
102
102
|
memory: ${INFRAHUB_TESTING_DB_MEMORY_LIMIT}
|
|
103
|
-
image: "${DATABASE_DOCKER_IMAGE:-neo4j:
|
|
103
|
+
image: "${DATABASE_DOCKER_IMAGE:-neo4j:2025.10.1-enterprise}"
|
|
104
104
|
environment:
|
|
105
105
|
<<: *neo4j-config-common
|
|
106
106
|
NEO4J_metrics_prometheus_endpoint: 0.0.0.0:2005
|
|
@@ -135,7 +135,7 @@ services:
|
|
|
135
135
|
limits:
|
|
136
136
|
cpus: ${INFRAHUB_TESTING_DB_CPU_LIMIT}
|
|
137
137
|
memory: ${INFRAHUB_TESTING_DB_MEMORY_LIMIT}
|
|
138
|
-
image: "${DATABASE_DOCKER_IMAGE:-neo4j:
|
|
138
|
+
image: "${DATABASE_DOCKER_IMAGE:-neo4j:2025.10.1-enterprise}"
|
|
139
139
|
environment:
|
|
140
140
|
<<: *neo4j-config-common
|
|
141
141
|
NEO4J_metrics_prometheus_endpoint: 0.0.0.0:2006
|
|
@@ -240,14 +240,14 @@ services:
|
|
|
240
240
|
PREFECT_SERVER_SERVICES_TASK_RUN_RECORDER_ENABLED: "true"
|
|
241
241
|
|
|
242
242
|
task-manager-db:
|
|
243
|
-
image: "${POSTGRES_DOCKER_IMAGE:-postgres:
|
|
243
|
+
image: "${POSTGRES_DOCKER_IMAGE:-postgres:18-alpine}"
|
|
244
244
|
command: postgres -c 'max_connections=${INFRAHUB_TESTING_TASK_MANAGER_DB_MAX_CONNECTIONS:-100}'
|
|
245
245
|
environment:
|
|
246
246
|
- POSTGRES_USER=postgres
|
|
247
247
|
- POSTGRES_PASSWORD=postgres
|
|
248
248
|
- POSTGRES_DB=prefect
|
|
249
249
|
volumes:
|
|
250
|
-
- workflow_db:/var/lib/postgresql/
|
|
250
|
+
- workflow_db:/var/lib/postgresql/18/docker
|
|
251
251
|
- "./${INFRAHUB_TESTING_LOCAL_DB_BACKUP_DIRECTORY}:${INFRAHUB_TESTING_INTERNAL_DB_BACKUP_DIRECTORY}"
|
|
252
252
|
healthcheck:
|
|
253
253
|
test: ["CMD-SHELL", "pg_isready"]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# https://docs.infrahub.app/reference/configuration
|
|
6
6
|
services:
|
|
7
7
|
message-queue:
|
|
8
|
-
image: ${MESSAGE_QUEUE_DOCKER_IMAGE:-rabbitmq:
|
|
8
|
+
image: ${MESSAGE_QUEUE_DOCKER_IMAGE:-rabbitmq:4.2.1-management}
|
|
9
9
|
restart: unless-stopped
|
|
10
10
|
environment:
|
|
11
11
|
RABBITMQ_DEFAULT_USER: infrahub
|
|
@@ -20,7 +20,7 @@ services:
|
|
|
20
20
|
- ${INFRAHUB_TESTING_MESSAGE_QUEUE_PORT:-0}:15692
|
|
21
21
|
|
|
22
22
|
cache:
|
|
23
|
-
image: ${CACHE_DOCKER_IMAGE:-redis:
|
|
23
|
+
image: ${CACHE_DOCKER_IMAGE:-redis:8.4.0}
|
|
24
24
|
restart: unless-stopped
|
|
25
25
|
healthcheck:
|
|
26
26
|
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
|
@@ -50,7 +50,7 @@ services:
|
|
|
50
50
|
limits:
|
|
51
51
|
cpus: ${INFRAHUB_TESTING_DB_CPU_LIMIT:-0.0}
|
|
52
52
|
memory: ${INFRAHUB_TESTING_DB_MEMORY_LIMIT:-0}
|
|
53
|
-
image: ${NEO4J_DOCKER_IMAGE:-neo4j:2025.
|
|
53
|
+
image: ${NEO4J_DOCKER_IMAGE:-neo4j:2025.10.1-community}
|
|
54
54
|
restart: unless-stopped
|
|
55
55
|
environment:
|
|
56
56
|
NEO4J_AUTH: neo4j/admin
|
|
@@ -150,15 +150,23 @@ services:
|
|
|
150
150
|
PREFECT_SERVER_SERVICES_TRIGGERS_ENABLED: "true"
|
|
151
151
|
PREFECT_SERVER_SERVICES_TASK_RUN_RECORDER_ENABLED: "true"
|
|
152
152
|
|
|
153
|
+
PREFECT_SERVER_SERVICES_EVENT_PERSISTER_READ_BATCH_SIZE:
|
|
154
|
+
PREFECT_SERVER_SERVICES_EVENT_PERSISTER_BATCH_SIZE:
|
|
155
|
+
PREFECT_SERVER_SERVICES_EVENT_PERSISTER_BATCH_SIZE_DELETE:
|
|
156
|
+
PREFECT_SERVER_SERVICES_EVENT_PERSISTER_FLUSH_INTERVAL:
|
|
157
|
+
|
|
158
|
+
PREFECT_SERVER_SERVICES_TASK_RUN_RECORDER_BATCH_SIZE:
|
|
159
|
+
PREFECT_SERVER_SERVICES_TASK_RUN_RECORDER_FLUSH_INTERVAL:
|
|
160
|
+
|
|
153
161
|
task-manager-db:
|
|
154
|
-
image: "${POSTGRES_DOCKER_IMAGE:-postgres:
|
|
162
|
+
image: "${POSTGRES_DOCKER_IMAGE:-postgres:18-alpine}"
|
|
155
163
|
command: postgres -c 'max_connections=${INFRAHUB_TESTING_TASK_MANAGER_DB_MAX_CONNECTIONS:-100}'
|
|
156
164
|
environment:
|
|
157
165
|
- POSTGRES_USER=postgres
|
|
158
166
|
- POSTGRES_PASSWORD=postgres
|
|
159
167
|
- POSTGRES_DB=prefect
|
|
160
168
|
volumes:
|
|
161
|
-
- workflow_db:/var/lib/postgresql/
|
|
169
|
+
- workflow_db:/var/lib/postgresql/18/docker
|
|
162
170
|
- "./${INFRAHUB_TESTING_LOCAL_DB_BACKUP_DIRECTORY}:${INFRAHUB_TESTING_INTERNAL_DB_BACKUP_DIRECTORY}"
|
|
163
171
|
healthcheck:
|
|
164
172
|
test: ["CMD-SHELL", "pg_isready"]
|
|
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from datetime import datetime, timezone
|
|
4
4
|
from enum import Enum
|
|
5
|
-
from typing import Any
|
|
5
|
+
from typing import Any
|
|
6
6
|
|
|
7
7
|
from pydantic import BaseModel, Field
|
|
8
8
|
|
|
@@ -23,7 +23,7 @@ class MeasurementDefinition(BaseModel):
|
|
|
23
23
|
|
|
24
24
|
class InfrahubResultContext(BaseModel):
|
|
25
25
|
name: str
|
|
26
|
-
value:
|
|
26
|
+
value: int | float | str
|
|
27
27
|
unit: ContextUnit
|
|
28
28
|
|
|
29
29
|
|
|
@@ -35,6 +35,6 @@ class InfrahubActiveMeasurementItem(BaseModel):
|
|
|
35
35
|
|
|
36
36
|
class InfrahubMeasurementItem(BaseModel):
|
|
37
37
|
name: str
|
|
38
|
-
value:
|
|
38
|
+
value: int | float | str
|
|
39
39
|
unit: ContextUnit
|
|
40
40
|
context: dict[str, Any] = Field(default_factory=dict)
|
infrahub/graphql/models.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|