Project: springxd
Issue XD-3190: No way to remove a job from Job repository if its gone from job definitions
I am trying to deploy a job I destroyed after running a few times. I removed all the jobs using job all destroy. When i try to recreate the same name job it is saying it already exists. JobController.java save() method is throwing the exception if job exists in Job Repository database, but they are gone from job definition list. These jobs were originally created using XD Template REST client dynamically, but that should not make any difference. This leaves me in an inconsistent state between XD definitions/job repository. How do I get rid of the job without having to log in to the database and play with the job repository tables. I had to delete data folder for myself to continue development. There should be a force mechanism to recreate a job with the same name, a flag that by passes this validation against the repository or overwrites the information in the repository.
Story points: 1