<@U01TCPDB58C> wanted to get your input on a chang...
# contributing
a
@future-teacher-7046 wanted to get your input on a change i'm working on to introduce "resuming" an analysis by checking the stored
externalId
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?