Skip to content

Commit

Permalink
Include MQL in first stage datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-McNab-UK committed Dec 16, 2024
1 parent 6083e41 commit 2aaea36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agents/justin-wrapper-job
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,9 @@ for (fileName, fileSize, intPatternID, pattern) in outputFiles:
}
}

if stageID == 1:
datasetMetadata['dune.workflow']['mql'] = jobscriptDict['mql']

# Find the destination for this pattern in the resultsResponseDict
destination = resultsResponseDict['patterns'][strPatternID]['destination']
destinationNumber = \
Expand Down
3 changes: 3 additions & 0 deletions services/justin-wsgi-allocator
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ def makeJobDict(jsonDict, jobscriptSecret = None):
'jobs.job_state,'
'jobs.jobscript_secret,'
'stages.max_distance,'
'workflows.mql,'
'jobs.workflow_id,'
'jobs.stage_id,'
'jobs.justin_job_id,'
Expand Down Expand Up @@ -357,6 +358,7 @@ def makeJobDict(jsonDict, jobscriptSecret = None):
"job_state" : job['job_state'],
"jobscript_secret" : job['jobscript_secret'],
"max_distance" : job['max_distance'],
"mql" : job['mql'],
"requested_processors" : job['requested_processors'],
"requested_rss_bytes" : job['requested_rss_bytes'],
"requested_wall_seconds" : job['requested_wall_seconds'],
Expand Down Expand Up @@ -574,6 +576,7 @@ def makeJobscriptDict(jsonDict, jobDict):
jobscriptDict['stage_id'] = jsonDict['stage_id']
jobscriptDict['scope'] = scopeName

jobscriptDict['mql'] = jobDict['mql']
jobscriptDict['requested_processors'] = jobDict['requested_processors']
jobscriptDict['requested_rss_bytes'] = jobDict['requested_rss_bytes']
jobscriptDict['requested_wall_seconds'] = jobDict['requested_wall_seconds']
Expand Down

0 comments on commit 2aaea36

Please # to comment.