Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/run_code_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@ jobs:
- '**/*.rs'
- '**/Cargo.toml'
- 'Cargo.lock'
- 'maskfile.md'
- '.flox/**'
- 'devenv.*'
- '.github/**'
python:
- '**/*.py'
- '**/pyproject.toml'
- 'uv.lock'
- 'maskfile.md'
- '.flox/**'
- 'devenv.*'
- '.github/**'
Expand Down
41 changes: 40 additions & 1 deletion maskfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ esac
cd infrastructure/

if ! organization_name=$(pulumi org get-default 2>/dev/null) || [ -z "${organization_name}" ]; then
echo "Error: Pulumi default organization not set. Run: pulumi org set-default <org>"
echo "Error: Pulumi default organization not set. Run: pulumi org set-default <organization>"
exit 1
fi
pulumi stack select "${organization_name}/fund/production"
Expand Down Expand Up @@ -415,6 +415,45 @@ case "$application_name" in
esac
```

#### update (service_name)

> Force redeploy an ECS service with the latest image (e.g. `ensemble-manager`)

```bash
set -euo pipefail

echo "Updating ${service_name} service"

cd infrastructure/

if ! organization_name=$(pulumi org get-default 2>/dev/null) || [ -z "${organization_name}" ]; then
echo "Error: Pulumi default organization not set. Run: pulumi org set-default <organization>"
exit 1
fi
pulumi stack select "${organization_name}/fund/production"
cluster=$(pulumi stack output aws_ecs_cluster_name)

Comment thread
forstmeier marked this conversation as resolved.
cd "${MASKFILE_DIR}"

case "${service_name}" in
data-manager|portfolio-manager|ensemble-manager) ;;
*)
echo "Unknown service: ${service_name}"
echo "Valid options: data-manager, portfolio-manager, ensemble-manager"
exit 1
;;
esac

service="fund-${service_name}-server"

Comment thread
forstmeier marked this conversation as resolved.
aws ecs update-service --cluster "$cluster" --service "$service" --force-new-deployment --no-cli-pager > /dev/null
echo "Deployment started: ${service}"

echo "Waiting for ${service} to stabilize"
aws ecs wait services-stable --cluster "$cluster" --services "$service"
echo "Deployment complete: ${service}"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
```

### models

> Manage Prefect Cloud model resources
Expand Down
Loading