You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our Camel route invokes JobStatusCalculator.calculateStatus() (which in turn invokes inProgressJobs.setJobStatus()) before the job is sent to the JobCompleteProcessorImpl. Once it's there, we invoke createOutputObject() followed by inProgressJobs.setJobStatus().
createOutputObject() invokes storageService.store() which can change the job status if there is an issue writing out the JSON output object (possibly to the object store). For that reason we have to set the job status again afterward.
An end user is trying to create Kibana visualizations and was trying to get some job counts with associated status. Using the "Setting status of job to COMPLETE" log line would result in duplicate counts.
I think the problem is actually that JobStatusCalculator.nextStatus() should actually be using BUILDING_OUTPUT_OBJECT instead of COMPLETE*.
JobCompleteProcessor would have to change the state from BUILDING_OUTPUT_OBJECT to COMPLETE*. This is so that the first log line shows BUILDING_OUTPUT_OBJECT but COMPLETE is used before generating the JSON output object.
Also, the job status REST endpoint should show BUILDING_OUTPUT_OBJECT while the JSON output object is being written.
Other improvements:
Have the media inspection work queue log the job id, media url, data type, and mime type for each media
The text was updated successfully, but these errors were encountered:
jrobble
changed the title
Duplicate "Setting status of job <id> to COMPLETE" log line
Improve Workflow Manager log messages
May 25, 2021
jrobble
changed the title
Improve Workflow Manager log messages
Remove duplicate "Setting status of job to COMPLETE" log line and other improvements
May 28, 2021
jrobble
changed the title
Remove duplicate "Setting status of job to COMPLETE" log line and other improvements
Remove duplicate "Setting status of job to COMPLETE" Workflow Manager log line and other improvements
May 28, 2021
Duplicate "Setting status of job to COMPLETE" log line:
From @jrobble :
An end user is trying to create Kibana visualizations and was trying to get some job counts with associated status. Using the "Setting status of job to COMPLETE" log line would result in duplicate counts.
From @brosenberg42 :
JobCompleteProcessor
would have to change the state fromBUILDING_OUTPUT_OBJECT
toCOMPLETE*
. This is so that the first log line showsBUILDING_OUTPUT_OBJECT
butCOMPLETE
is used before generating the JSON output object.Also, the job status REST endpoint should show
BUILDING_OUTPUT_OBJECT
while the JSON output object is being written.Other improvements:
The text was updated successfully, but these errors were encountered: