orchestrator-core 4.3.1__tar.gz → 4.4.0rc2__tar.gz
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.
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/PKG-INFO +2 -2
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/__init__.py +1 -1
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/subscriptions.py +1 -0
- orchestrator_core-4.4.0rc2/orchestrator/cli/scheduler.py +73 -0
- orchestrator_core-4.4.0rc2/orchestrator/graphql/resolvers/scheduled_tasks.py +36 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schema.py +5 -0
- orchestrator_core-4.4.0rc2/orchestrator/graphql/schemas/scheduled_task.py +8 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/utils/create_resolver_error_handler.py +1 -1
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schedules/__init__.py +1 -2
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schedules/resume_workflows.py +2 -2
- orchestrator_core-4.4.0rc2/orchestrator/schedules/scheduler.py +163 -0
- orchestrator_core-4.4.0rc2/orchestrator/schedules/scheduling.py +88 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schedules/task_vacuum.py +2 -2
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schedules/validate_products.py +8 -2
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schedules/validate_subscriptions.py +2 -2
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/subscriptions.py +4 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/targets.py +1 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/utils.py +48 -1
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/pyproject.toml +4 -1
- orchestrator_core-4.3.1/orchestrator/cli/scheduler.py +0 -62
- orchestrator_core-4.3.1/orchestrator/schedules/scheduling.py +0 -48
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/LICENSE +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/README.md +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/api.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/health.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/processes.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/product_blocks.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/products.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/resource_types.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/settings.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/subscription_customer_descriptions.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/translations.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/user.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/workflows.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/api_v1/endpoints/ws.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/error_handling.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/api/models.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/app.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/database.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/domain_gen_helpers/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/domain_gen_helpers/fixed_input_helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/domain_gen_helpers/helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/domain_gen_helpers/product_block_helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/domain_gen_helpers/product_helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/domain_gen_helpers/resource_type_helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/domain_gen_helpers/types.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generate.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/custom_templates/README +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/custom_templates/additional_create_imports.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/custom_templates/additional_create_input_fields.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/custom_templates/additional_create_steps.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/custom_templates/additional_modify_imports.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/custom_templates/additional_modify_input_fields.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/custom_templates/additional_modify_steps.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/custom_templates/additional_terminate_imports.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/custom_templates/additional_terminate_input_fields.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/custom_templates/additional_terminate_steps.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/enums.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/migration.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/product.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/product_block.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/settings.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/translations.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/unittest.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/validations.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/generator/workflow.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/products/workshop/circuit.yaml +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/products/workshop/node.yaml +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/products/workshop/user.yaml +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/products/workshop/user_group.yaml +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/additional_create_imports.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/additional_create_steps.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/additional_modify_imports.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/additional_modify_steps.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/additional_terminate_steps.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/constrained_int_definitions.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/create_data_head.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/create_product.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/enums.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/lazy_workflow_instance.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/list_definitions.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/macros.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/modify_product.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/new_product_migration.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/product.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/product_block.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/shared_forms.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/shared_workflows.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/subscription_model_registry.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/terminate_product.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/test_create_workflow.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/test_modify_workflow.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/test_product_type.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/test_terminate_workflow.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/test_validate_workflow.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/generator/templates/validate_product.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/helpers/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/helpers/input_helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/helpers/print_helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/main.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/migrate_domain_models.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/migrate_tasks.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/migrate_workflows.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/cli/migration_helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/config/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/config/assignee.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/database.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/filters/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/filters/filters.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/filters/process.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/filters/product.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/filters/product_block.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/filters/resource_type.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/filters/search_filters/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/filters/search_filters/inferred_filter.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/filters/subscription.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/filters/workflow.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/listeners.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/loaders.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/models.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/queries/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/queries/subscription.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/queries/subscription_instance.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/range/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/range/range.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/sorting/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/sorting/process.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/sorting/product.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/sorting/product_block.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/sorting/resource_type.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/sorting/sorting.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/sorting/subscription.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/db/sorting/workflow.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/devtools/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/devtools/populator.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/devtools/scripts/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/devtools/scripts/migrate_20.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/devtools/scripts/migrate_30.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/devtools/scripts/shared.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/distlock/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/distlock/distlock_manager.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/distlock/managers/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/distlock/managers/memory_distlock_manager.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/distlock/managers/redis_distlock_manager.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/domain/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/domain/base.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/domain/context_cache.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/domain/customer_description.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/domain/helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/domain/lifecycle.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/domain/subscription_instance_transform.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/exception_handlers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/forms/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/forms/validators/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/forms/validators/customer_contact_list.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/forms/validators/customer_id.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/forms/validators/display_subscription.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/forms/validators/network_type_validators.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/forms/validators/product_id.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/autoregistration.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/extensions/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/extensions/model_cache.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/extensions/stats.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/loaders/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/loaders/subscriptions.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/mutations/customer_description.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/mutations/start_process.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/pagination.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/customer.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/process.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/product.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/product_block.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/resource_type.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/settings.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/subscription.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/version.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/resolvers/workflow.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/customer.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/customer_description.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/errors.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/fixed_input.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/process.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/product.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/product_block.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/resource_type.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/settings.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/strawberry_pydantic_patch.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/subscription.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/version.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/schemas/workflow.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/types.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/utils/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/utils/get_query_loaders.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/utils/get_selected_fields.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/utils/get_selected_paths.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/utils/get_subscription_product_blocks.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/utils/is_query_detailed.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/utils/override_class.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/graphql/utils/to_graphql_result_page.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/log_config.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/metrics/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/metrics/engine.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/metrics/init.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/metrics/processes.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/metrics/subscriptions.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/README +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/alembic.ini +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/env.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/script.py.mako +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/templates/alembic.ini.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/templates/env.py.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/templates/helpers.py.j2 +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2020-10-19_3323bcb934e7_fix_tsv_triggers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2020-10-19_a76b9185b334_add_generic_workflows_to_core.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2020-10-19_c112305b07d3_initial_schema_migration.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2021-04-06_3c8b9185c221_add_validate_products_task.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2021-07-01_6896a54e9483_add_product_block_relations.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2021-11-17_19cdd3ab86f6_fix_parse_websearch.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2022-02-16_bed6bc0b197a_rename_parent_and_child_block_relations.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2023-03-06_e05bb1967eff_add_subscriptions_search_view.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2023-05-25_b1970225392d_add_subscription_metadata_workflow.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2023-06-28_a09ac125ea73_add_throttling_to_refresh_subscriptions.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2023-06-28_a09ac125ea73_add_throttling_to_refresh_subscriptions.sql +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2023-07-17_165303a20fb1_customer_id_to_varchar.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2023-07-17_165303a20fb1_customer_id_to_varchar.sql +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2023-09-25_da5c9f4cce1c_add_subscription_metadata_to_fulltext_.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2023-09-25_da5c9f4cce1c_add_subscription_metadata_to_fulltext_.sql +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2023-12-06_048219045729_add_workflow_id_to_processes_table.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2024-09-27_460ec6748e37_add_uuid_search_workaround.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2024-09-27_460ec6748e37_add_uuid_search_workaround.sql +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-01-08_4c5859620539_add_version_column_to_subscription.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-01-19_4fjdn13f83ga_add_validate_product_type_task.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-02-12_bac6be6f2b4f_added_input_state_table.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-02-20_68d14db1b8da_make_workflow_description_mandatory.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-03-06_42b3d076a85b_subscription_instance_as_json_function.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-03-06_42b3d076a85b_subscription_instance_as_json_function.sql +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-04-09_fc5c993a4b4a_add_cascade_constraint_on_processes_.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-05-08_161918133bec_add_is_task_to_workflow.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-07-01_93fc5834c7e5_changed_timestamping_fields_in_process_steps.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-07-04_4b58e336d1bf_deprecating_workflow_target_in_.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/migrations/versions/schema/2025-07-28_850dccac3b02_update_description_of_resume_workflows_.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/py.typed +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/base.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/engine_settings.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/fixed_input.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/problem_detail.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/process.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/product.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/product_block.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/resource_type.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/subscription.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/subscription_descriptions.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schemas/workflow.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/security.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/executors/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/executors/celery.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/executors/threadpool.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/fixed_inputs.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/input_state.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/process_broadcast_thread.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/processes.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/products.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/resource_types.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/settings.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/settings_env_variables.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/subscription_relations.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/tasks.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/translations.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/workflows.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/settings.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/types.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/auth.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/crypt.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/datetime.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/deprecation_logger.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/docs.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/enrich_process.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/errors.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/expose_settings.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/fixed_inputs.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/functional.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/get_subscription_dict.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/get_updated_properties.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/helpers.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/json.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/redis.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/redis_client.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/search_query.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/state.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/strings.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/utils/validate_data_version.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/version.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/websocket/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/websocket/managers/broadcast_websocket_manager.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/websocket/managers/memory_websocket_manager.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/websocket/websocket_manager.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflow.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/modify_note.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/removed_workflow.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/steps.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/tasks/__init__.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/tasks/cleanup_tasks_log.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/tasks/resume_workflows.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/tasks/validate_product_type.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/tasks/validate_products.py +0 -0
- {orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/workflows/translations/en-GB.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orchestrator-core
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.4.0rc2
|
|
4
4
|
Summary: This is the orchestrator workflow engine.
|
|
5
5
|
Author-email: SURF <automation-beheer@surf.nl>
|
|
6
6
|
Requires-Python: >=3.11,<3.14
|
|
@@ -32,6 +32,7 @@ Classifier: Typing :: Typed
|
|
|
32
32
|
License-File: LICENSE
|
|
33
33
|
Requires-Dist: alembic==1.16.1
|
|
34
34
|
Requires-Dist: anyio>=3.7.0
|
|
35
|
+
Requires-Dist: apscheduler>=3.11.0
|
|
35
36
|
Requires-Dist: click==8.*
|
|
36
37
|
Requires-Dist: deepmerge==2.0
|
|
37
38
|
Requires-Dist: deprecated>=1.2.18
|
|
@@ -52,7 +53,6 @@ Requires-Dist: python-dateutil==2.8.2
|
|
|
52
53
|
Requires-Dist: python-rapidjson>=1.18,<1.21
|
|
53
54
|
Requires-Dist: pytz==2025.2
|
|
54
55
|
Requires-Dist: redis==5.1.1
|
|
55
|
-
Requires-Dist: schedule==1.1.0
|
|
56
56
|
Requires-Dist: semver==3.0.4
|
|
57
57
|
Requires-Dist: sentry-sdk[fastapi]~=2.29.1
|
|
58
58
|
Requires-Dist: sqlalchemy==2.0.41
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Copyright 2019-2020 SURF.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import logging
|
|
16
|
+
|
|
17
|
+
import typer
|
|
18
|
+
from apscheduler.schedulers.blocking import BlockingScheduler
|
|
19
|
+
|
|
20
|
+
from orchestrator.schedules.scheduler import get_paused_scheduler, jobstores, scheduler_dispose_db_connections
|
|
21
|
+
|
|
22
|
+
log = logging.getLogger(__name__)
|
|
23
|
+
|
|
24
|
+
app: typer.Typer = typer.Typer()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@app.command()
|
|
28
|
+
def run() -> None:
|
|
29
|
+
"""Start scheduler and loop eternally to keep thread alive."""
|
|
30
|
+
# necessary to add the schedules to the DB since they are added to the BackgroundScheduler
|
|
31
|
+
with get_paused_scheduler() as scheduler:
|
|
32
|
+
scheduler.resume()
|
|
33
|
+
scheduler.pause()
|
|
34
|
+
|
|
35
|
+
blocking_scheduler = BlockingScheduler(jobstores=jobstores, jobstore_update_interval=5)
|
|
36
|
+
|
|
37
|
+
try:
|
|
38
|
+
blocking_scheduler.start()
|
|
39
|
+
finally:
|
|
40
|
+
blocking_scheduler.shutdown()
|
|
41
|
+
scheduler_dispose_db_connections()
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@app.command()
|
|
45
|
+
def show_schedule() -> None:
|
|
46
|
+
"""Show the currently configured schedule.
|
|
47
|
+
|
|
48
|
+
in cli underscore is replaced by a dash `show-schedule`
|
|
49
|
+
"""
|
|
50
|
+
with get_paused_scheduler() as scheduler:
|
|
51
|
+
jobs = scheduler.get_jobs()
|
|
52
|
+
|
|
53
|
+
for job in jobs:
|
|
54
|
+
typer.echo(f"[{job.id}] Next run: {job.next_run_time} | Trigger: {job.trigger}")
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
@app.command()
|
|
58
|
+
def force(job_id: str) -> None:
|
|
59
|
+
"""Force the execution of (a) scheduler(s) based on a job_id."""
|
|
60
|
+
with get_paused_scheduler() as scheduler:
|
|
61
|
+
job = scheduler.get_job(job_id)
|
|
62
|
+
|
|
63
|
+
if not job:
|
|
64
|
+
typer.echo(f"Job '{job_id}' not found.")
|
|
65
|
+
raise typer.Exit(code=1)
|
|
66
|
+
|
|
67
|
+
typer.echo(f"Running job [{job.id}] now...")
|
|
68
|
+
try:
|
|
69
|
+
job.func(*job.args or (), **job.kwargs or {})
|
|
70
|
+
typer.echo("Job executed successfully.")
|
|
71
|
+
except Exception as e:
|
|
72
|
+
typer.echo(f"Job execution failed: {e}")
|
|
73
|
+
raise typer.Exit(code=1)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import structlog
|
|
2
|
+
|
|
3
|
+
from orchestrator.db.filters import Filter
|
|
4
|
+
from orchestrator.db.sorting import Sort
|
|
5
|
+
from orchestrator.graphql.pagination import Connection
|
|
6
|
+
from orchestrator.graphql.schemas.scheduled_task import ScheduledTaskGraphql
|
|
7
|
+
from orchestrator.graphql.types import GraphqlFilter, GraphqlSort, OrchestratorInfo
|
|
8
|
+
from orchestrator.graphql.utils import create_resolver_error_handler, to_graphql_result_page
|
|
9
|
+
from orchestrator.graphql.utils.is_query_detailed import is_querying_page_data
|
|
10
|
+
from orchestrator.schedules.scheduler import get_scheduler_tasks, scheduled_task_filter_keys, scheduled_task_sort_keys
|
|
11
|
+
|
|
12
|
+
logger = structlog.get_logger(__name__)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
async def resolve_scheduled_tasks(
|
|
16
|
+
info: OrchestratorInfo,
|
|
17
|
+
filter_by: list[GraphqlFilter] | None = None,
|
|
18
|
+
sort_by: list[GraphqlSort] | None = None,
|
|
19
|
+
first: int = 10,
|
|
20
|
+
after: int = 0,
|
|
21
|
+
) -> Connection[ScheduledTaskGraphql]:
|
|
22
|
+
_error_handler = create_resolver_error_handler(info)
|
|
23
|
+
|
|
24
|
+
pydantic_filter_by: list[Filter] = [item.to_pydantic() for item in filter_by] if filter_by else []
|
|
25
|
+
pydantic_sort_by: list[Sort] = [item.to_pydantic() for item in sort_by] if sort_by else []
|
|
26
|
+
scheduled_tasks, total = get_scheduler_tasks(
|
|
27
|
+
first=first, after=after, filter_by=pydantic_filter_by, sort_by=pydantic_sort_by, error_handler=_error_handler
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
graphql_scheduled_tasks = []
|
|
31
|
+
if is_querying_page_data(info):
|
|
32
|
+
graphql_scheduled_tasks = [ScheduledTaskGraphql.from_pydantic(p) for p in scheduled_tasks]
|
|
33
|
+
|
|
34
|
+
return to_graphql_result_page(
|
|
35
|
+
graphql_scheduled_tasks, first, after, total, scheduled_task_filter_keys, scheduled_task_sort_keys
|
|
36
|
+
)
|
|
@@ -51,12 +51,14 @@ from orchestrator.graphql.resolvers import (
|
|
|
51
51
|
resolve_version,
|
|
52
52
|
resolve_workflows,
|
|
53
53
|
)
|
|
54
|
+
from orchestrator.graphql.resolvers.scheduled_tasks import resolve_scheduled_tasks
|
|
54
55
|
from orchestrator.graphql.schemas import DEFAULT_GRAPHQL_MODELS
|
|
55
56
|
from orchestrator.graphql.schemas.customer import CustomerType
|
|
56
57
|
from orchestrator.graphql.schemas.process import ProcessType
|
|
57
58
|
from orchestrator.graphql.schemas.product import ProductType
|
|
58
59
|
from orchestrator.graphql.schemas.product_block import ProductBlock
|
|
59
60
|
from orchestrator.graphql.schemas.resource_type import ResourceType
|
|
61
|
+
from orchestrator.graphql.schemas.scheduled_task import ScheduledTaskGraphql
|
|
60
62
|
from orchestrator.graphql.schemas.settings import StatusType
|
|
61
63
|
from orchestrator.graphql.schemas.subscription import SubscriptionInterface
|
|
62
64
|
from orchestrator.graphql.schemas.version import VersionType
|
|
@@ -99,6 +101,9 @@ class OrchestratorQuery:
|
|
|
99
101
|
description="Returns information about cache, workers, and global engine settings",
|
|
100
102
|
)
|
|
101
103
|
version: VersionType = authenticated_field(resolver=resolve_version, description="Returns version information")
|
|
104
|
+
scheduled_tasks: Connection[ScheduledTaskGraphql] = authenticated_field(
|
|
105
|
+
resolver=resolve_scheduled_tasks, description="Returns scheduled job information"
|
|
106
|
+
)
|
|
102
107
|
|
|
103
108
|
|
|
104
109
|
@strawberry.federation.type(description="Orchestrator customer Query")
|
|
@@ -25,6 +25,6 @@ def _format_context(context: dict) -> str:
|
|
|
25
25
|
|
|
26
26
|
def create_resolver_error_handler(info: OrchestratorInfo) -> CallableErrorHandler:
|
|
27
27
|
def handle_error(message: str, **context) -> None: # type: ignore
|
|
28
|
-
return register_error("
|
|
28
|
+
return register_error(f"{message} {_format_context(context)}", info, error_type=ErrorType.BAD_REQUEST)
|
|
29
29
|
|
|
30
30
|
return handle_error
|
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
from orchestrator.schedules.resume_workflows import run_resume_workflows
|
|
16
|
-
from orchestrator.schedules.scheduling import SchedulingFunction
|
|
17
16
|
from orchestrator.schedules.task_vacuum import vacuum_tasks
|
|
18
17
|
from orchestrator.schedules.validate_products import validate_products
|
|
19
18
|
from orchestrator.schedules.validate_subscriptions import validate_subscriptions
|
|
20
19
|
|
|
21
|
-
ALL_SCHEDULERS: list
|
|
20
|
+
ALL_SCHEDULERS: list = [
|
|
22
21
|
run_resume_workflows,
|
|
23
22
|
vacuum_tasks,
|
|
24
23
|
validate_subscriptions,
|
{orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schedules/resume_workflows.py
RENAMED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
# limitations under the License.
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
from orchestrator.schedules.
|
|
15
|
+
from orchestrator.schedules.scheduler import scheduler
|
|
16
16
|
from orchestrator.services.processes import start_process
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
@scheduler(name="Resume workflows",
|
|
19
|
+
@scheduler.scheduled_job(id="resume-workflows", name="Resume workflows", trigger="interval", hours=1) # type: ignore[misc]
|
|
20
20
|
def run_resume_workflows() -> None:
|
|
21
21
|
start_process("task_resume_workflows")
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Copyright 2019-2020 SURF.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from contextlib import contextmanager
|
|
16
|
+
from datetime import datetime
|
|
17
|
+
from typing import Any, Generator
|
|
18
|
+
|
|
19
|
+
from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore
|
|
20
|
+
from apscheduler.schedulers.background import BackgroundScheduler
|
|
21
|
+
from more_itertools import partition
|
|
22
|
+
from pydantic import BaseModel
|
|
23
|
+
|
|
24
|
+
from orchestrator.db.filters import Filter
|
|
25
|
+
from orchestrator.db.filters.filters import CallableErrorHandler
|
|
26
|
+
from orchestrator.db.sorting import Sort
|
|
27
|
+
from orchestrator.db.sorting.sorting import SortOrder
|
|
28
|
+
from orchestrator.settings import app_settings
|
|
29
|
+
from orchestrator.utils.helpers import camel_to_snake, to_camel
|
|
30
|
+
|
|
31
|
+
jobstores = {"default": SQLAlchemyJobStore(url=str(app_settings.DATABASE_URI))}
|
|
32
|
+
|
|
33
|
+
scheduler = BackgroundScheduler(jobstores=jobstores)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def scheduler_dispose_db_connections() -> None:
|
|
37
|
+
jobstores["default"].engine.dispose()
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@contextmanager
|
|
41
|
+
def get_paused_scheduler() -> Generator[BackgroundScheduler, Any, None]:
|
|
42
|
+
scheduler.start(paused=True)
|
|
43
|
+
|
|
44
|
+
try:
|
|
45
|
+
yield scheduler
|
|
46
|
+
finally:
|
|
47
|
+
scheduler.shutdown(wait=False)
|
|
48
|
+
scheduler_dispose_db_connections()
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class ScheduledTask(BaseModel):
|
|
52
|
+
id: str
|
|
53
|
+
name: str | None = None
|
|
54
|
+
next_run_time: datetime | None = None
|
|
55
|
+
trigger: str
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
scheduled_task_keys = set(ScheduledTask.model_fields.keys())
|
|
59
|
+
scheduled_task_filter_keys = sorted(scheduled_task_keys | {to_camel(key) for key in scheduled_task_keys})
|
|
60
|
+
scheduled_task_sort_keys = scheduled_task_filter_keys
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def scheduled_task_in_filter(job: ScheduledTask, filter_by: list[Filter]) -> bool:
|
|
64
|
+
return any(f.value.lower() in getattr(job, camel_to_snake(f.field), "").lower() for f in filter_by)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def filter_scheduled_tasks(
|
|
68
|
+
scheduled_tasks: list[ScheduledTask],
|
|
69
|
+
handle_filter_error: CallableErrorHandler,
|
|
70
|
+
filter_by: list[Filter] | None = None,
|
|
71
|
+
) -> list[ScheduledTask]:
|
|
72
|
+
if not filter_by:
|
|
73
|
+
return scheduled_tasks
|
|
74
|
+
|
|
75
|
+
try:
|
|
76
|
+
invalid_filters, valid_filters = partition(lambda x: x.field in scheduled_task_filter_keys, filter_by)
|
|
77
|
+
|
|
78
|
+
if invalid_list := [item.field for item in invalid_filters]:
|
|
79
|
+
handle_filter_error(
|
|
80
|
+
"Invalid filter arguments", invalid_filters=invalid_list, valid_filter_keys=scheduled_task_filter_keys
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
valid_filter_list = list(valid_filters)
|
|
84
|
+
return [task for task in scheduled_tasks if scheduled_task_in_filter(task, valid_filter_list)]
|
|
85
|
+
except Exception as e:
|
|
86
|
+
handle_filter_error(str(e))
|
|
87
|
+
return []
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _invert(value: Any) -> Any:
|
|
91
|
+
"""Invert value for descending order."""
|
|
92
|
+
if isinstance(value, (int, float)):
|
|
93
|
+
return -value
|
|
94
|
+
if isinstance(value, str):
|
|
95
|
+
return tuple(-ord(c) for c in value)
|
|
96
|
+
if isinstance(value, datetime):
|
|
97
|
+
return -value.timestamp()
|
|
98
|
+
return value
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def sort_key(sort_field: str, sort_order: SortOrder) -> Any:
|
|
102
|
+
def _sort_key(task: Any) -> Any:
|
|
103
|
+
value = getattr(task, camel_to_snake(sort_field), None)
|
|
104
|
+
if sort_field == "next_run_time" and value is None:
|
|
105
|
+
return float("inf") if sort_order == SortOrder.ASC else float("-inf")
|
|
106
|
+
return value if sort_order == SortOrder.ASC else _invert(value)
|
|
107
|
+
|
|
108
|
+
return _sort_key
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
def sort_scheduled_tasks(
|
|
112
|
+
scheduled_tasks: list[ScheduledTask], handle_sort_error: CallableErrorHandler, sort_by: list[Sort] | None = None
|
|
113
|
+
) -> list[ScheduledTask]:
|
|
114
|
+
if not sort_by:
|
|
115
|
+
return scheduled_tasks
|
|
116
|
+
|
|
117
|
+
try:
|
|
118
|
+
invalid_sorting, valid_sorting = partition(lambda x: x.field in scheduled_task_sort_keys, sort_by)
|
|
119
|
+
if invalid_list := [item.field for item in invalid_sorting]:
|
|
120
|
+
handle_sort_error(
|
|
121
|
+
"Invalid sort arguments", invalid_sorting=invalid_list, valid_sort_keys=scheduled_task_sort_keys
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
valid_sort_list = list(valid_sorting)
|
|
125
|
+
return sorted(
|
|
126
|
+
scheduled_tasks, key=lambda task: tuple(sort_key(sort.field, sort.order)(task) for sort in valid_sort_list)
|
|
127
|
+
)
|
|
128
|
+
except Exception as e:
|
|
129
|
+
handle_sort_error(str(e))
|
|
130
|
+
return []
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
def default_error_handler(message: str, **context) -> None: # type: ignore
|
|
134
|
+
from orchestrator.graphql.utils.create_resolver_error_handler import _format_context
|
|
135
|
+
|
|
136
|
+
raise ValueError(f"{message} {_format_context(context)}")
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def get_scheduler_tasks(
|
|
140
|
+
first: int = 10,
|
|
141
|
+
after: int = 0,
|
|
142
|
+
filter_by: list[Filter] | None = None,
|
|
143
|
+
sort_by: list[Sort] | None = None,
|
|
144
|
+
error_handler: CallableErrorHandler = default_error_handler,
|
|
145
|
+
) -> tuple[list[ScheduledTask], int]:
|
|
146
|
+
with get_paused_scheduler() as pauzed_scheduler:
|
|
147
|
+
scheduled_tasks = pauzed_scheduler.get_jobs()
|
|
148
|
+
|
|
149
|
+
scheduled_tasks = filter_scheduled_tasks(scheduled_tasks, error_handler, filter_by)
|
|
150
|
+
scheduled_tasks = sort_scheduled_tasks(scheduled_tasks, error_handler, sort_by)
|
|
151
|
+
|
|
152
|
+
total = len(scheduled_tasks)
|
|
153
|
+
paginated_tasks = scheduled_tasks[after : after + first + 1]
|
|
154
|
+
|
|
155
|
+
return [
|
|
156
|
+
ScheduledTask(
|
|
157
|
+
id=task.id,
|
|
158
|
+
name=task.name,
|
|
159
|
+
next_run_time=task.next_run_time,
|
|
160
|
+
trigger=str(task.trigger),
|
|
161
|
+
)
|
|
162
|
+
for task in paginated_tasks
|
|
163
|
+
], total
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Copyright 2019-2020 SURF.
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
|
|
14
|
+
from collections.abc import Callable
|
|
15
|
+
from typing import TypeVar
|
|
16
|
+
|
|
17
|
+
from apscheduler.schedulers.base import BaseScheduler
|
|
18
|
+
from deprecated import deprecated
|
|
19
|
+
|
|
20
|
+
from orchestrator.schedules.scheduler import scheduler as default_scheduler # your global scheduler instance
|
|
21
|
+
|
|
22
|
+
F = TypeVar("F", bound=Callable[..., object])
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@deprecated(
|
|
26
|
+
reason="We changed from scheduler to apscheduler which has its own decoractor, use `@scheduler.scheduled_job()` from `from orchestrator.scheduling.scheduler import scheduler`"
|
|
27
|
+
)
|
|
28
|
+
def scheduler(
|
|
29
|
+
name: str,
|
|
30
|
+
time_unit: str,
|
|
31
|
+
period: int = 1,
|
|
32
|
+
at: str | None = None,
|
|
33
|
+
*,
|
|
34
|
+
id: str | None = None,
|
|
35
|
+
scheduler: BaseScheduler = default_scheduler,
|
|
36
|
+
) -> Callable[[F], F]:
|
|
37
|
+
"""APScheduler-compatible decorator to schedule a function.
|
|
38
|
+
|
|
39
|
+
id is necessary with apscheduler, if left empty it takes the function name.
|
|
40
|
+
|
|
41
|
+
- `time_unit = "hours", period = 12` → every 12 hours
|
|
42
|
+
- `time_unit = "day", at = "01:00"` → every day at 1 AM
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def decorator(func: F) -> F:
|
|
46
|
+
job_id = id or func.__name__
|
|
47
|
+
|
|
48
|
+
trigger = "interval"
|
|
49
|
+
kwargs: dict[str, int] = {}
|
|
50
|
+
if time_unit == "day" and at:
|
|
51
|
+
trigger = "cron"
|
|
52
|
+
try:
|
|
53
|
+
hour, minute = map(int, at.split(":"))
|
|
54
|
+
except ValueError:
|
|
55
|
+
raise ValueError(f"Invalid time format for 'at': {at}, expected 'HH:MM'")
|
|
56
|
+
|
|
57
|
+
kwargs = {
|
|
58
|
+
"hour": hour,
|
|
59
|
+
"minute": minute,
|
|
60
|
+
}
|
|
61
|
+
else:
|
|
62
|
+
# Map string units to timedelta kwargs for IntervalTrigger
|
|
63
|
+
unit_map = {
|
|
64
|
+
"seconds": "seconds",
|
|
65
|
+
"second": "seconds",
|
|
66
|
+
"minutes": "minutes",
|
|
67
|
+
"minute": "minutes",
|
|
68
|
+
"hours": "hours",
|
|
69
|
+
"hour": "hours",
|
|
70
|
+
"days": "days",
|
|
71
|
+
"day": "days",
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interval_arg = unit_map.get(time_unit.lower(), time_unit.lower())
|
|
75
|
+
kwargs = {interval_arg: period}
|
|
76
|
+
|
|
77
|
+
scheduler.add_job(
|
|
78
|
+
func,
|
|
79
|
+
trigger=trigger,
|
|
80
|
+
id=job_id,
|
|
81
|
+
name=name,
|
|
82
|
+
replace_existing=True,
|
|
83
|
+
**kwargs,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
return func
|
|
87
|
+
|
|
88
|
+
return decorator
|
{orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schedules/task_vacuum.py
RENAMED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
# limitations under the License.
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
from orchestrator.schedules.
|
|
15
|
+
from orchestrator.schedules.scheduler import scheduler
|
|
16
16
|
from orchestrator.services.processes import start_process
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
@scheduler(name="Clean up tasks",
|
|
19
|
+
@scheduler.scheduled_job(id="clean-tasks", name="Clean up tasks", trigger="interval", hours=6) # type: ignore[misc]
|
|
20
20
|
def vacuum_tasks() -> None:
|
|
21
21
|
start_process("task_clean_up_tasks")
|
{orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/schedules/validate_products.py
RENAMED
|
@@ -14,11 +14,17 @@ from sqlalchemy import func, select
|
|
|
14
14
|
|
|
15
15
|
from orchestrator.db import db
|
|
16
16
|
from orchestrator.db.models import ProcessTable
|
|
17
|
-
from orchestrator.schedules.
|
|
17
|
+
from orchestrator.schedules.scheduler import scheduler
|
|
18
18
|
from orchestrator.services.processes import start_process
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
@scheduler(
|
|
21
|
+
@scheduler.scheduled_job( # type: ignore[misc]
|
|
22
|
+
id="validate-products",
|
|
23
|
+
name="Validate Products and inactive subscriptions",
|
|
24
|
+
trigger="cron",
|
|
25
|
+
hour=2,
|
|
26
|
+
minute=30,
|
|
27
|
+
)
|
|
22
28
|
def validate_products() -> None:
|
|
23
29
|
uncompleted_products = db.session.scalar(
|
|
24
30
|
select(func.count())
|
|
@@ -16,7 +16,7 @@ from threading import BoundedSemaphore
|
|
|
16
16
|
|
|
17
17
|
import structlog
|
|
18
18
|
|
|
19
|
-
from orchestrator.schedules.
|
|
19
|
+
from orchestrator.schedules.scheduler import scheduler
|
|
20
20
|
from orchestrator.services.subscriptions import (
|
|
21
21
|
get_subscriptions_on_product_table,
|
|
22
22
|
get_subscriptions_on_product_table_in_sync,
|
|
@@ -33,7 +33,7 @@ logger = structlog.get_logger(__name__)
|
|
|
33
33
|
task_semaphore = BoundedSemaphore(value=2)
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
@scheduler(name="Subscriptions Validator",
|
|
36
|
+
@scheduler.scheduled_job(id="subscriptions-validator", name="Subscriptions Validator", trigger="cron", hour=0, minute=10) # type: ignore[misc]
|
|
37
37
|
def validate_subscriptions() -> None:
|
|
38
38
|
if app_settings.VALIDATE_OUT_OF_SYNC_SUBSCRIPTIONS:
|
|
39
39
|
# Automatically re-validate out-of-sync subscriptions. This is not recommended for production.
|
{orchestrator_core-4.3.1 → orchestrator_core-4.4.0rc2}/orchestrator/services/subscriptions.py
RENAMED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
# limitations under the License.
|
|
13
13
|
|
|
14
14
|
"""Module that provides service functions on subscriptions."""
|
|
15
|
+
|
|
15
16
|
import pickle # noqa: S403
|
|
16
17
|
from collections import defaultdict
|
|
17
18
|
from collections.abc import Sequence
|
|
@@ -506,6 +507,7 @@ TARGET_DEFAULT_USABLE_MAP: dict[Target, list[str]] = {
|
|
|
506
507
|
Target.TERMINATE: ["active", "provisioning"],
|
|
507
508
|
Target.SYSTEM: ["active"],
|
|
508
509
|
Target.VALIDATE: ["active"],
|
|
510
|
+
Target.RECONCILE: ["active"],
|
|
509
511
|
}
|
|
510
512
|
|
|
511
513
|
WF_USABLE_MAP: dict[str, list[str]] = {}
|
|
@@ -532,6 +534,7 @@ def subscription_workflows(subscription: SubscriptionTable) -> dict[str, Any]:
|
|
|
532
534
|
... "terminate": [],
|
|
533
535
|
... "system": [],
|
|
534
536
|
... "validate": [],
|
|
537
|
+
... "reconcile: [],
|
|
535
538
|
... }
|
|
536
539
|
|
|
537
540
|
"""
|
|
@@ -552,6 +555,7 @@ def subscription_workflows(subscription: SubscriptionTable) -> dict[str, Any]:
|
|
|
552
555
|
"terminate": [],
|
|
553
556
|
"system": [],
|
|
554
557
|
"validate": [],
|
|
558
|
+
"reconcile": [],
|
|
555
559
|
}
|
|
556
560
|
for workflow in subscription.product.workflows:
|
|
557
561
|
if workflow.name in WF_USABLE_WHILE_OUT_OF_SYNC or workflow.is_task:
|
|
@@ -154,7 +154,7 @@ def _generate_modify_form(workflow_target: str, workflow_name: str) -> InputForm
|
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
def wrap_modify_initial_input_form(initial_input_form: InputStepFunc | None) -> StateInputStepFunc | None:
|
|
157
|
-
"""Wrap initial input for modify and terminate workflows.
|
|
157
|
+
"""Wrap initial input for modify, reconcile and terminate workflows.
|
|
158
158
|
|
|
159
159
|
This is needed because the frontend expects all modify workflows to start with a page that only contains the
|
|
160
160
|
subscription id. It also expects the second page to have some user visible inputs and the subscription id *again*.
|
|
@@ -355,6 +355,53 @@ def validate_workflow(description: str) -> Callable[[Callable[[], StepList]], Wo
|
|
|
355
355
|
return _validate_workflow
|
|
356
356
|
|
|
357
357
|
|
|
358
|
+
def reconcile_workflow(
|
|
359
|
+
description: str,
|
|
360
|
+
additional_steps: StepList | None = None,
|
|
361
|
+
authorize_callback: Authorizer | None = None,
|
|
362
|
+
retry_auth_callback: Authorizer | None = None,
|
|
363
|
+
) -> Callable[[Callable[[], StepList]], Workflow]:
|
|
364
|
+
"""Similar to a modify_workflow but without required input user input to perform a sync with external systems based on the subscriptions existing configuration.
|
|
365
|
+
|
|
366
|
+
Use this for subscription reconcile workflows.
|
|
367
|
+
|
|
368
|
+
Example::
|
|
369
|
+
|
|
370
|
+
@reconcile_workflow("Reconcile l2vpn")
|
|
371
|
+
def reconcile_l2vpn() -> StepList:
|
|
372
|
+
return (
|
|
373
|
+
begin
|
|
374
|
+
>> update_l2vpn_in_external_systems
|
|
375
|
+
)
|
|
376
|
+
"""
|
|
377
|
+
|
|
378
|
+
wrapped_reconcile_initial_input_form_generator = wrap_modify_initial_input_form(None)
|
|
379
|
+
|
|
380
|
+
def _reconcile_workflow(f: Callable[[], StepList]) -> Workflow:
|
|
381
|
+
steplist = (
|
|
382
|
+
init
|
|
383
|
+
>> store_process_subscription()
|
|
384
|
+
>> unsync
|
|
385
|
+
>> f()
|
|
386
|
+
>> (additional_steps or StepList())
|
|
387
|
+
>> resync
|
|
388
|
+
>> refresh_subscription_search_index
|
|
389
|
+
>> done
|
|
390
|
+
)
|
|
391
|
+
|
|
392
|
+
return make_workflow(
|
|
393
|
+
f,
|
|
394
|
+
description,
|
|
395
|
+
wrapped_reconcile_initial_input_form_generator,
|
|
396
|
+
Target.RECONCILE,
|
|
397
|
+
steplist,
|
|
398
|
+
authorize_callback=authorize_callback,
|
|
399
|
+
retry_auth_callback=retry_auth_callback,
|
|
400
|
+
)
|
|
401
|
+
|
|
402
|
+
return _reconcile_workflow
|
|
403
|
+
|
|
404
|
+
|
|
358
405
|
def ensure_provisioning_status(modify_steps: Step | StepList) -> StepList:
|
|
359
406
|
"""Decorator to ensure subscription modifications are executed only during Provisioning status."""
|
|
360
407
|
return (
|
|
@@ -36,6 +36,7 @@ classifiers = [
|
|
|
36
36
|
dependencies = [
|
|
37
37
|
"alembic==1.16.1",
|
|
38
38
|
"anyio>=3.7.0",
|
|
39
|
+
"apscheduler>=3.11.0",
|
|
39
40
|
"click==8.*",
|
|
40
41
|
"deepmerge==2.0",
|
|
41
42
|
"deprecated>=1.2.18",
|
|
@@ -56,7 +57,6 @@ dependencies = [
|
|
|
56
57
|
"python-rapidjson>=1.18,<1.21",
|
|
57
58
|
"pytz==2025.2",
|
|
58
59
|
"redis==5.1.1",
|
|
59
|
-
"schedule==1.1.0",
|
|
60
60
|
"semver==3.0.4",
|
|
61
61
|
"sentry-sdk[fastapi]~=2.29.1",
|
|
62
62
|
"sqlalchemy==2.0.41",
|
|
@@ -230,3 +230,6 @@ known-first-party = [
|
|
|
230
230
|
"oauth2_lib",
|
|
231
231
|
"pydantic_forms",
|
|
232
232
|
]
|
|
233
|
+
|
|
234
|
+
[tool.uv]
|
|
235
|
+
index-url = "https://pypi.org/simple"
|