python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 /home/admin/workarea/git/Velours/python/mtr/utils/cdn/migration_s3_ovh/delete_photo_id_s3.py -j delete_by_right --right 13580 --limit 1000 --multi 1 --max_threads 20' -s delete_13580 -M 0 -S 0 -U 90,80,95 import MySQLdb succeeded Import error (python version) warning , we can't find thcl infos in json_data warning , we can't find pdt infos in json_data Starting time : 1770035515.0187664 we keep the photo whose id end with 00 select photos undeleted TO DELETEElapsed time : 2.1590609550476074 Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/utils/cdn/migration_s3_ovh/delete_photo_id_s3.py", line 724, in delete_photos_by_right(context,s3,desc,x.delete,x.verbose,x.storage_server, x.right, limit = x.limit, multi=x.multi, max_threads=x.max_threads,save_one_percent_photos = bool(x.save_one_percent_photos) ) File "/home/admin/workarea/git/Velours/python/mtr/utils/cdn/migration_s3_ovh/delete_photo_id_s3.py", line 614, in delete_photos_by_right photos_to_keep = [{"photo_id" : photo[0], "url" : photo[1], "type_extension" : photo[2], "size_object" : photo[3] if photo[3] is not None else 0} for photo in photos if photo[0] % 100 == 0 ] File "/home/admin/workarea/git/Velours/python/mtr/utils/cdn/migration_s3_ovh/delete_photo_id_s3.py", line 614, in photos_to_keep = [{"photo_id" : photo[0], "url" : photo[1], "type_extension" : photo[2], "size_object" : photo[3] if photo[3] is not None else 0} for photo in photos if photo[0] % 100 == 0 ] KeyError: 0 Command exited with non-zero status 1 1.32user 1.18system 0:04.29elapsed 58%CPU (0avgtext+0avgdata 115052maxresident)k 112inputs+8outputs (10major+39802minor)pagefaults 0swaps