-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Job Status shows as STARTED if the SCDF server goes down in between Job execution. #5498
Comments
Hello @PSHREYASHOLLA , |
Hi @cppwfs, Yes its deployed as a local instance. |
What you are experiencing is that when SCDF (using the local deployer) terminates it also terminates the JVM of the apps that it launched. Thus the task can not update its state in the DB because the JVM it is running on is sigkill thus the task does not update the database. |
Hi @cppwfs, Please provide the answers for below,
We are trying to solve our Job Resume-ability problem. |
Data flow does not update the state of a task or job execution once it has been started. You can add an issue to SCDF requesting this feature. |
Each Task or Batch Job manages the information in its TASK_EXECUTION Or JOB_EXECUTION tables.>>>>>> So in case of local deployment, can we update this status manually by calling any API? |
Each Task or Batch Job manages the information in its TASK_EXECUTION Or JOB_EXECUTION tables.>>>>>> So in case of local deployment, can we update this status manually by calling any API? |
At this time we don't have an API to do this. It would have to be done manually through the database. |
Closing this issue and we'll refer to #5502 |
At this time we don't have an API to do this. It would have to be done manually through the database. >>>>> Are there any steps I can follow? |
Trying out the sample BillRun application available as part of https://dataflow.spring.io/docs/batch-developer-guides/batch/data-flow-spring-batch/.
Now we want to check the behavior of a job if the SCDF server crashes.
So for the same I have modified BillProcessor class to add a delay of 2 minutes before the 3rd record is added to the database like,
public class BillProcessor implements ItemProcessor<Usage, Bill> {
}
Now we launch the billRun task and the batch inserts the first 2 records into the DB and goes to sleep for 2 minutes,
We bring down the server now. After server restart the job execution status remains as STARTED,
So now its neither continuing on server startup with this status nor its allowing me to restart as the button is disabled,
.
So,
The text was updated successfully, but these errors were encountered: