Skip to content

Commit

Permalink
fix in jobNurn collection (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmassaoy authored Jul 11, 2024
1 parent 6381cb5 commit ee9496c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ public void setActiveJob(ActiveJob activeJob) {
@Override
public void start(SparkListenerJobStart jobStart) {
log.debug("SparkListenerJobStart - executionId: {}", executionId);
try {
jobName = jobStart.properties().getProperty("spark.job.name");
} catch (RuntimeException e) {
log.info("spark.job.name property not found in the context");
}
olContext.setJobNurn(jobName);
if (!olContext.getQueryExecution().isPresent()) {
log.info(NO_EXECUTION_INFO, olContext);
return;
Expand Down

0 comments on commit ee9496c

Please sign in to comment.