Opened 11 years ago
Closed 11 years ago
#160 closed (fixed)
gmoc.py download should allow a threshold to only download recently-reported data
Reported by: | chaos@bbn.com | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Clients | Version: | |
Keywords: | Cc: | ||
Dependencies: |
Description
At the moment, when data is downloaded using gmoc.py, the API searches for all matching data regardless of last_update time. This isn't sustainable in the long-term because of data size, and, in the short term, may get us into trouble with badly-formed data from the past.
Modify gmoc.py to allow an optional threshold argument to GMOCClient.load()
, and only load values whose last_update
time is more recent than that threshold.
Note: See
TracTickets for help on using
tickets.
Unfortunately, thresholds can't be universally used, because some data (like Organization objects) is almost never updated. Experimental data should be updated every 5 minutes or so, but we can't count on metadata to be treated that way. Similarly, we probably never want lookup of a mandatory attribute of an object to fail if that attribute is stale and the invoking object is non-stale.
My suggestion for these problems was: