-
Notifications
You must be signed in to change notification settings - Fork 146
load_multiple_submissions
load_multiple_submissions is the entrypoint of the Broker Submission Loader and is responsible for identifying DATA Act Broker Submissions (DABS) in Broker to be loaded into USAspending, and initiating said loads by executing a load_submission per new/updated submission. It is executed from the command line via ./manage.py load_multiple_submissions fy quarter and is an integral part of the nightly USAspending pipeline where its execution is initiated directly via the pipeline process.
load_multiple_submissions accepts three command line arguments:
-
fyis a required positional argument that restricts the search for new/updated submissions to a single fiscal year. -
quarteris a required positional argument that restricts the search for new/updated submissions to a single fiscal quarter. -
--safeis an optional switch that causes the loader to only list out submissions that are to be loaded. No data are created or updated when this switch is supplied.
Submissions are loaded from Broker based on the following criteria:
-
submission.reporting_fiscal_yearfor the fiscal year indiciated by thefycommand line argument. -
submission.reporting_fiscal_periodfor the fiscal quarter indicated by thequartercommand line argument. - Not flagged as File D by the
submission.d2_submissionboolean. -
published(status 2) orupdated(status 3) as indicated by thesubmission.publish_status_idcolumn. - "Certified" as indicated by the submission identifier's presence in the Broker
certify_historytable.
Missing submissions are identified by their absence from USAspending's submission_attributes table. Updated submissions are identified by their update_date falling prior to Broker's maximum certify_history.certified_date for the submission. Submissions can be certified multiple times if their data are re-submitted for corrections causing them to end up with multiple certification dates.
- Home
- The DATA Act
-
Data
- Account Data (A/B/C)
-
Award Data (D1/D2)
- Contract Data (D1)
- Assistance Data (D2)
- Recipient Data (E)
- Subaward Data (F)
- File C to D Linkage
- Agency Data (Federal Hierarchy)
- Location Data
- Management Commands
- Release Notes
- Resources