Add query parameter option to Traffic Ops GET /jobs API to return only jobs created during maxRevalDurationDays window #5674
Labels
cache-config
Cache config generation
improvement
The functionality exists but it could be improved in some way.
Traffic Ops
related to Traffic Ops
I'm submitting a ...
Traffic Control components affected ...
Current behavior:
The Traffic Ops
GET /api/x/jobs
API currently returns all invalidation jobs ever created. For applications like ORT that really only need to get unexpired invalidation jobs, this is very inefficient.New behavior:
Provide a query parameter option to return only invalidation jobs created within the
maxRevalDurationDays
window. Update ORT to use the new query parameter option. For performance reasons, we might want to add a DB index on thestart_time
column w/DESC NULLS LAST
, similar to thelast_updated
index.Minimal reproduction of the problem with instructions:
Request the TO
GET /api/x/jobs
route, observe that every job ever created is returned.The text was updated successfully, but these errors were encountered: