diff --git a/README.md b/README.md index e824660fb..79eae695d 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,13 @@ uv run --with-editable '.[dev]' pytest tests -vv ### notes for maintainers -#### run the metadata update script +#### deploy the metadata update flow +``` +uv run prefect --no-prompt deploy --all +``` + + +#### run the metadata update script interactively this is the main entrypoint flow for updating all collections ```bash @@ -211,7 +217,7 @@ this will: - update the worker metadata - create or update a PR with these changes -#### run the worker metadata sync script +#### run the worker metadata sync script interactively > [!NOTE] > Though this script is automatically run on merge to `main`, you may also want to run it manually if something goes wrong. diff --git a/prefect.yaml b/prefect.yaml index 4e4ac0e22..b5e139172 100644 --- a/prefect.yaml +++ b/prefect.yaml @@ -1,6 +1,4 @@ name: prefect-collection-registry -prefect-version: 3.0.0 - definitions: work_pools: @@ -8,9 +6,6 @@ definitions: name: kubernetes-prd-internal-tools job_variables: image: prefecthq/prefect:3.1.11-python3.12 - env: - EXTRA_PIP_PACKAGES: github3.py fastjsonschema prefect-gcp - build: @@ -19,18 +14,15 @@ push: pull: - prefect.deployments.steps.git_clone: repository: https://github.com/PrefectHQ/prefect-collection-registry - branch: main - + branch: revamp-registry-flow +- prefect.deployments.steps.run_shell_script: + script: | + ls -la + cd prefect-collection-registry + ls -la + uv sync --frozen deployments: -- name: update-a-collection - tags: [] - description: Updates each variety of metadata for a given package. - schedules: - entrypoint: src/prefect_collection_registry/update_collection_metadata.py:update_collection_metadata - parameters: {} - work_pool: *kubernetes_prd_internal_tools - - name: update-all-collections tags: [] description: "`update-all-collections` triggers many instances of `update-collection-metadata` @@ -41,12 +33,6 @@ deployments: of `update_collection_metadata` for each such package." schedules: - cron: 0 6,12,18 * * 1-5 - timezone: EST - day_or: true - active: true - max_active_runs: - catchup: false + timezone: UTC entrypoint: src/prefect_collection_registry/update_collection_metadata.py:update_all_collections work_pool: *kubernetes_prd_internal_tools - parameters: {} - enforce_parameter_schema: true