I just found that cron is failing when the file is not found.
Case 1:
When adding an FTP, it is adding a test file. And this file is being added to the delete queue and so it gets deleted when the cron is executed. In case if the admin deletes the test file manually then the cron gets failed and all future processes get stuck unless the DB entries are removed.
Case 2:
Even when real image files are deleted by CRON and if the DB entries are not updated or removed then again the CRON is failing. It happens to be because I do have 1000s of the queue to be deleted and it keeps failing as soon it deletes one file saying the next file is not found.
So I believe if the file is not found, the entries need to be removed from the DB and then deletion keeps happening.
Thanks
Case 1:
When adding an FTP, it is adding a test file. And this file is being added to the delete queue and so it gets deleted when the cron is executed. In case if the admin deletes the test file manually then the cron gets failed and all future processes get stuck unless the DB entries are removed.
Case 2:
Even when real image files are deleted by CRON and if the DB entries are not updated or removed then again the CRON is failing. It happens to be because I do have 1000s of the queue to be deleted and it keeps failing as soon it deletes one file saying the next file is not found.
So I believe if the file is not found, the entries need to be removed from the DB and then deletion keeps happening.
Thanks