Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[BATCH-2760] Failed JobExecution due to unavailable TaskExecutor leaves End Time unpopulated #643
Conversation
…es End Time unpopulated On instances when the taskExecutor is not picking up the submitted Job Execution, with this fix we are explicitly setting the End Time of the JobExecution in order not to give false positives via the JobExplorer#findRunningJobExecutions(). This last method is judging on running Job Executions based on End Time being null.
[BATCH-2760] Failed JobExecution due to unavailable TaskExecutor leaves End Time unpopulated
This comment has been minimized.
This comment has been minimized.
I've used |
This comment has been minimized.
This comment has been minimized.
Jira ticket: https://jira.spring.io/browse/BATCH-2760 |
This comment has been minimized.
This comment has been minimized.
I've added:
|
This comment has been minimized.
This comment has been minimized.
This PR implies that the job ran when in fact it didn't. Personally, I'd rather see us fix the logic in the places where we evaluate if a job is running to exclude those that haven't started in the first place. We can continue the discussion for this in the Jira issue BATCH-2675. I'm going to close this now until we determine a best course. We can always re-open it if we agree that this is the right path. |
This comment has been minimized.
This comment has been minimized.
@mminella Thanks for the review. I'm continuing the discussion in BATCH-2675 with an alternative approach. thanks! |
This comment has been minimized.
This comment has been minimized.
As a continuation of the above discussion in the comment section of: https://jira.spring.io/browse/BATCH-2675, I've raised a new PR: #659 |
dimitrisli commentedSep 26, 2018
•
edited
On instances when the
taskExecutor
is not picking up the submitted Job Execution, with this fix we are explicitly setting the End Time of the JobExecution in order not to give false positives via theJobExplorer#findRunningJobExecutions()
. This last method is judging on running Job Executions based on End Time being null.