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.
Let's see if bumping up the
ASYNC_CLIENT_TIMEOUT
helps with the failure.Also, the print statements are not output to the airflow logs, so change those to logger statements.
Also, set
retries: 0
for DAGS so that we do not get duplicate emails.Also, ignore black reformatting for
fix_encumbrance
scripts.2024-10-21, 02:04:09 PDT] {_client.py:1786} INFO - HTTP Request: GET https://okapi-prod.stanford.edu/finance-storage/transactions?query=encumbrance.sourcePurchaseOrderId%3D%3D032e2233-0d97-40f5-a968-b23bcdaa9011%20AND%20fiscalYearId%3D%3D58622c3a-678b-46fc-a84c-35b3122f36c2&offset=0&limit=2147483647 "HTTP/1.1 200 OK" [2024-10-21, 02:04:09 PDT] {_client.py:1786} INFO - HTTP Request: GET https://okapi-prod.stanford.edu/finance-storage/transactions?query=encumbrance.sourcePurchaseOrderId%3D%3D032f7a70-177b-4d29-90db-26243ecb6da6%20AND%20fiscalYearId%3D%3D58622c3a-678b-46fc-a84c-35b3122f36c2&offset=0&limit=2147483647 "HTTP/1.1 200 OK" [2024-10-21, 02:04:09 PDT] {taskinstance.py:2733} ERROR - Task failed due to SystemExit(1) [2024-10-21, 02:04:09 PDT] {taskinstance.py:1149} INFO - Marking task as FAILED. dag_id=fix_encumbrances_lane, task_id=run_fix_encumbrances_script,