Skip to content

load_submission

Kirk Barden edited this page May 22, 2020 · 18 revisions

load_submission is responsible for pulling File A, B, C data and Submission metadata from Broker for a single DABS submission. It is executed from the command line via ./manage.py load_submission submission_id and is an integral part of the nightly USAspending pipeline where its execution is initiated indirectly via the load_multiple_submissions command.

load_submission accepts two command line arguments:

  • submission_id is a required positional argument used to indicate a single Broker submission.submission_id to be loaded.
  • --test is an optional switch that causes the loader to utilize a "phony cursor" that reads data from usaspending_api/etl/tests/etl_test_data.json rather than attempting to pull data from Broker. As the name implies, this is strictly for testing.

MORE INCOMING

Clone this wiki locally