Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a deployment script for datagov-harvester #5109

Open
6 tasks
btylerburton opened this issue Feb 28, 2025 · 1 comment
Open
6 tasks

Create a deployment script for datagov-harvester #5109

btylerburton opened this issue Feb 28, 2025 · 1 comment
Labels
H2.0/Harvest-Pipeline Infrastructure for deploying Harvester 2.0

Comments

@btylerburton
Copy link
Contributor

User Story

In order to prevent our applications from being deployed or restarted when they are actively harvesting, datagovteam wants to create a deployment script.

Acceptance Criteria

[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]

  • GIVEN I want to merge a PR into main
    THEN I want the deployment script to check if any jobs are currently in progress on datagov-harvest-runner
    AND I want the deployment script to cancel any other currently stuck rolling deployment
    AND I want the script to retry in case of failure until the Github API times out.

Background

We use a similar script to help us manage catalog deployments (here)

Security Considerations (required)

[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]

Sketch

  • Follow patterns in data.gov check and renew script
  • Conduct test that script can handle:
    • active harvest in progress
    • active deployment in progress
    • rolling deployment is stuck and needs to be cancelled
@btylerburton btylerburton added the H2.0/Harvest-Pipeline Infrastructure for deploying Harvester 2.0 label Feb 28, 2025
@btylerburton
Copy link
Contributor Author

btylerburton commented Mar 3, 2025

  • Confirm that CF deployment won't restart a task running on Harvest Runner

if that is the case, then this ticket is satisfied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
H2.0/Harvest-Pipeline Infrastructure for deploying Harvester 2.0
Projects
Status: No status
Development

No branches or pull requests

1 participant