I have few tasks , lets say for eg:
- When creating a table fails , keep trying to create the table. Once table gets created, stop executing the task.
This job should check for table’s existence and once table is created should never be executed again. What’s the best way to achieve this? This should withstand application restarts.
Planning to use scheduler whose job executes the business logic and doesn’t do anything when condition is met.