https://www.growthbook.io/ logo
#contributing
Title
# contributing
a

agreeable-elephant-38605

03/06/2024, 5:32 PM
@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?
7 Views