You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to deploy but deployments are failing to DIT and UAT with this error message
Run echo "Deploy mas.dit.maap-project.org/root/maap-api-nasa-ci/maap-project/maap-api-nasa:DIT to DIT"
Deploy mas.dit.maap-project.org/root/maap-api-nasa-ci/maap-project/maap-api-nasa:DIT to DIT
+++ dirname -- /home/ubuntu/actions-runner/_work/maap-api-nasa/maap-api-nasa/.github/workflows/deploy-on-runner.sh
++ cd -- /home/ubuntu/actions-runner/_work/maap-api-nasa/maap-api-nasa/.github/workflows
++ pwd
+ SCRIPT_DIR=/home/ubuntu/actions-runner/_work/maap-api-nasa/maap-api-nasa/.github/workflows
+ ssh -i '***' *** 'docker compose -f docker-compose-maap-api.yml down'
time="2026-06-09T23:45:48Z" level=warning msg="/home/ubuntu/docker-compose-maap-api.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
The per-endpoint rollbacks in this PR are good for letting individual requests fail gracefully, but they don't fully prevent dirty sessions from leaking between requests if any unpatched endpoint hits a DB error.
A global teardown_request hook in maapapp.py would act as a systemic safety net:
db.session.remove() tears down the SQLAlchemy session at the end of every request and returns the connection to the pool — so no dirty state can carry over to the next request regardless of which endpoint caused the failure. This is what would have prevented the PendingRollbackError we saw in production today cascading across requests.
With this in place, the per-endpoint rollbacks here are still worth keeping for request-level error handling (so the current request can return a meaningful error instead of a 500), but the teardown hook covers everything else.
Implemented @sujen1412's suggestion and fixed the API deployment pipeline problem that was stopping us from deploying the DIT API
This is deployed on the DIT API now
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I wanted to deploy but deployments are failing to DIT and UAT with this error message
Fixes: #242