jakartaee / batch

The Jakarta Batch project produces the Batch Specification and API.
https://projects.eclipse.org/projects/ee4j.batch
Apache License 2.0
13 stars 17 forks source link

Provide a mark failed since abandon is not really helpful #157

Open follis opened 3 years ago

follis commented 3 years ago

JobOperator has an abandon method that makes a non-running job non-restartable. This would add a markFiled API to essentially do the same thing, but to a job whose state is unclear. Maybe the server it was running in died suddenly and needs to be restarted to fail the job. This API would let you get ahead of that processing without having to wait for the server to restart (which might be difficult to impossible).