jmandel / smart-imaging

Reference stack for SMART Imaging API

Home Page:https://imaging.argo.run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a new delay module

jmandel opened this issue · comments

Internally maintain a cache of access token, request path pairs. Insert an item into the cache when the first request is made and return a 503, setting the cache value to the absolute time at which the request should be allowed to proceed.

config

delay:
  lookup: 5 // always apply five second delay when look up is first performed
  retrieve: 5