Try to use Autoedit variable as %%CPT and %%RUNCOUNT
Search "consecutive failure", wou will have several solution.
And add a break and restart is not an existing function, but, there is an idea.
Add %%BREAK variable at the begenning of your COMMAND Line
%%BREAK must be defined in the job and empty.
But after your RUNCOUNT value to break, fill %%BREAK with "echo "
And to start again, clean variable.
Effect will be : Job will start at every cycle, but command will be execute only when %%BREAK will be empty.