agreeable-elephant-38605
03/06/2024, 5:32 PMexternalId
of a query/job (in the case a query is considered "stale" e.g. if the app is restarted or the async event is lost/dies somehow).
My original approach was to refactor expireOldQueries.ts
to call some new getQueryResults(externalId: string)
function I added and re-instantiate the relevant QueryRunner
and call a new resumeAnalysis
. The only issue I've run into so far is that re-instantiating a QueryRunner
requires a ReqContext
, but there isn't an original request in this agenda job to get a ReqContext
for. Is it ok for me to manually craft a context in this case? What user would be associated with it?