Move query_jobs_by_status_code
function from its-live-monitoring
to HyP3 API/SDK
#199
Labels
Jira Task
Create a Jira Task for this issue
Jira: https://asfdaac.atlassian.net/browse/TOOL-3320
Note: The above link is accessible only to members of ASF.
As part of #196 we're adding a new
query_jobs_by_status_code
function that queries the HyP3 jobs table directly. This means we have to add unit tests that usemoto
to mock the jobs table, which will need to be kept up-to-date with HyP3's jobs table architecture.It would be better if both the query logic in
query_jobs_by_status_code
as well as the unit test mocking were moved to the HyP3 API (and then exposed via the SDK) so as not to spread internal knowledge about HyP3's database architecture across multiple repos.Note that we had previously discussed moving the function to HyP3's
dynamo
library and then publishing the library, but decided against exposing HyP3's database in that manner, preferring to keep user interaction contained to the API.The text was updated successfully, but these errors were encountered: