python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 56379 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None wawget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/f378e56b6a069e619c9ec29c46b3787c_64958565.png change filename to text .imagette210952841741227270/ imagette210952841741227270/1741227212_3968350_1341150565_f8a04b3e6b6e401f5df745a13e93d56a_rle_crop_3695252288_0.png.png imagette210952841741227270/1741226931_3965351_1341150442_feb394ffeaef3819ec503e8e9cd7974a_rle_crop_3695249827_0.png.png imagette210952841741227270/1741227212_3968350_1341150570_d6bb68ea97003be26e36f9a8aa5b42a7_rle_crop_3695252274_0.png.png imagette210952841741227270/1741226931_3965351_1341150143_36be3aa457d0d6061b47eb71150b33cf_rle_crop_3695249932_0.png.png imagette210952841741227270/1741226931_3965351_1341150153_d2d934bcf0d6028fa17a49911d4d65d0_rle_crop_3695249846_0.png.png imagette210952841741227270/1741226813_3964114_1341149288_65f4bb7fdf934e1cbabb99df0057dbf5_rle_crop_3695249317_0.png.png imagette210952841741227270/1741226941_3965499_1341150439_8562678ba06a9437e3ccc5e94de8dea6_rle_crop_3695249836_0.png.png imagette210952861741227271/ imagette210952871741227271/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/1e105a95244e287d93480351dd1c0823_60876660.png imagette210952841741227270 21095286 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21095286 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210952861741227271 21095287 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21095287 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210952871741227271 21095288 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21095288 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341150425: '1741226813_3964114_1341149285_7572a544295e3d4bec0e6b9cf097f272_rle_crop_3695249423_0.png', 1341150436: '1741226831_3964347_1341149356_2981bdc01440749d1af4f8ab326f4a23_rle_crop_3695249466_0.png', 1341150437: '1741226831_3964347_1341149349_7f81dd4c5cdff8646f4969118679f59c_rle_crop_3695249475_0.png', 1341150438: '1741226831_3964347_1341149349_7f81dd4c5cdff8646f4969118679f59c_rle_crop_3695249484_0.png', 1341150665: '1741227071_3966823_1341150527_e55a40116ec3b428d3247f8a9da86d56_rle_crop_3695251027_0.png', 1341150666: '1741227071_3966823_1341150527_e55a40116ec3b428d3247f8a9da86d56_rle_crop_3695251028_0.png', 1341150775: '1741227212_3968350_1341150570_d6bb68ea97003be26e36f9a8aa5b42a7_rle_crop_3695252257_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/d3de984e7b5dcd0101d0f70d15e3411d_63720171.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/4a531fb394aa6fd49281b40f25d66fa6_64565717.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/e9f87fe53dc492f0c40efb8dc0036896_42934015.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/d3171b6d0109e38ab9cdd931bd9ab321_6638980.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/54d0b48881b0d63943d7446775bcd16d_43680374.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/6a852133bf658bad33c06e536dcb624d_61542798.png change filename to text .imagette210952881741227271/ imagette210952881741227271/1741226831_3964347_1341149356_2981bdc01440749d1af4f8ab326f4a23_rle_crop_3695249466_0.png.png imagette210952881741227271/1741227071_3966823_1341150527_e55a40116ec3b428d3247f8a9da86d56_rle_crop_3695251027_0.png.png imagette210952881741227271/1741226831_3964347_1341149349_7f81dd4c5cdff8646f4969118679f59c_rle_crop_3695249484_0.png.png imagette210952881741227271/1741227212_3968350_1341150570_d6bb68ea97003be26e36f9a8aa5b42a7_rle_crop_3695252257_0.png.png imagette210952881741227271/1741226813_3964114_1341149285_7572a544295e3d4bec0e6b9cf097f272_rle_crop_3695249423_0.png.png imagette210952881741227271/1741226831_3964347_1341149349_7f81dd4c5cdff8646f4969118679f59c_rle_crop_3695249475_0.png.png imagette210952881741227271/1741227071_3966823_1341150527_e55a40116ec3b428d3247f8a9da86d56_rle_crop_3695251028_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b086a3994b0247e5d3529effe2d0974d_55335698.png imagette210952881741227271 21095291 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21095291 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341150529: '1741226941_3965499_1341150439_8562678ba06a9437e3ccc5e94de8dea6_rle_crop_3695249835_0.png', 1341150772: '1741227212_3968350_1341150565_f8a04b3e6b6e401f5df745a13e93d56a_rle_crop_3695252283_0.png', 1341150771: '1741227212_3968350_1341150642_17bc14513d062bb4a364e2c7bb0afcf7_rle_crop_3695252250_0.png', 1341150764: '1741227192_3968126_1341150633_9e950b1a67d14e1e5e66e6f78d773865_rle_crop_3695251374_0.png', 1341150763: '1741227192_3968126_1341150640_2ee5e8d0ab0973625d0fa266d50f5271_rle_crop_3695251315_0.png', 1341150663: '1741227071_3966823_1341150522_b09d215540b8f8c870c9b3329bd8f1d0_rle_crop_3695251047_0.png', 1341150662: '1741227071_3966823_1341150522_b09d215540b8f8c870c9b3329bd8f1d0_rle_crop_3695251041_0.png', 1341150661: '1741227071_3966823_1341150527_e55a40116ec3b428d3247f8a9da86d56_rle_crop_3695251031_0.png', 1341150660: '1741227071_3966823_1341150527_e55a40116ec3b428d3247f8a9da86d56_rle_crop_3695251034_0.png', 1341150659: '1741227071_3966823_1341150537_6cf408467389e9244bc295f01ed32a9d_rle_crop_3695251011_0.png', 1341150658: '1741227071_3966823_1341150537_6cf408467389e9244bc295f01ed32a9d_rle_crop_3695251003_0.png', 1341150657: '1741227071_3966823_1341150538_69fc51838fcc78d1f0aaec4bbb06a944_rle_crop_3695250994_0.png', 1341150530: '1741226941_3965499_1341150294_52f9716bdb9901847ce466aead577e1f_rle_crop_3695249941_0.png', 1341150418: '1741226813_3964114_1341149372_72d76891f654099f7aa58ba1c4049b4b_rle_crop_3695249232_0.png', 1341150528: '1741226941_3965499_1341150439_8562678ba06a9437e3ccc5e94de8dea6_rle_crop_3695249834_0.png', 1341150525: '1741226931_3965351_1341150143_36be3aa457d0d6061b47eb71150b33cf_rle_crop_3695249924_0.png', 1341150524: '1741226931_3965351_1341150153_d2d934bcf0d6028fa17a49911d4d65d0_rle_crop_3695249842_0.png', 1341150523: '1741226931_3965351_1341150442_feb394ffeaef3819ec503e8e9cd7974a_rle_crop_3695249824_0.png', 1341150434: '1741226831_3964347_1341149349_7f81dd4c5cdff8646f4969118679f59c_rle_crop_3695249485_0.png', 1341150433: '1741226831_3964347_1341149356_2981bdc01440749d1af4f8ab326f4a23_rle_crop_3695249467_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/da44851180c9383654b27037fdd51eac_30066022.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ed83241338387167ca3326823461d4af_36560783.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/84db03b1be5bde9ceb3a109488b58864_96472372.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/2587f0d3a66196ef08d361340fc61e8c_97028196.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/d1e12a3d150f2be11628433c061a089c_63753349.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/16e74e4557f8e05d10a934d02a2b7609_56175810.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/9cdd9ad93a6207bb4759f688979f0f8c_52403871.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ab15f323da2975d642f20ac548626594_70607024.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/f617ff5f10461ad53de9191487eb28da_61748201.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/3f481a56ff67219eb28228da2df95edb_16895139.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/24a6ca58ba1ba0e01efdfb002ece0593_33162005.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/93257e3831e9b89be65891353b28f0b4_86806035.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/9829d249348031ef0f5cc1fcdb64a6cc_13567125.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/29f1b36781f48ebef7314ff4ac0ca69a_72424269.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/8b6a4febd2de5cc1dfd624e4a07cf03c_92670299.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/80d763e8b8b1db23b3968aa7dce9a489_76559376.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/438713ee8db78b31261bb9248301b0ea_94593804.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/95baa311430dbb8ed7e40b4e310ba9ac_40463179.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/c401da405c19e54a1fb7755ae3274c33_29341394.png change filename to text .imagette210952911741227271/ imagette210952911741227271/1741227071_3966823_1341150527_e55a40116ec3b428d3247f8a9da86d56_rle_crop_3695251031_0.png.png imagette210952911741227271/1741227071_3966823_1341150522_b09d215540b8f8c870c9b3329bd8f1d0_rle_crop_3695251041_0.png.png imagette210952911741227271/1741227212_3968350_1341150642_17bc14513d062bb4a364e2c7bb0afcf7_rle_crop_3695252250_0.png.png imagette210952911741227271/1741226941_3965499_1341150439_8562678ba06a9437e3ccc5e94de8dea6_rle_crop_3695249834_0.png.png imagette210952911741227271/1741227071_3966823_1341150538_69fc51838fcc78d1f0aaec4bbb06a944_rle_crop_3695250994_0.png.png imagette210952911741227271/1741227071_3966823_1341150522_b09d215540b8f8c870c9b3329bd8f1d0_rle_crop_3695251047_0.png.png imagette210952911741227271/1741226831_3964347_1341149356_2981bdc01440749d1af4f8ab326f4a23_rle_crop_3695249467_0.png.png imagette210952911741227271/1741227212_3968350_1341150565_f8a04b3e6b6e401f5df745a13e93d56a_rle_crop_3695252283_0.png.png imagette210952911741227271/1741226931_3965351_1341150153_d2d934bcf0d6028fa17a49911d4d65d0_rle_crop_3695249842_0.png.png imagette210952911741227271/1741226941_3965499_1341150294_52f9716bdb9901847ce466aead577e1f_rle_crop_3695249941_0.png.png imagette210952911741227271/1741226931_3965351_1341150143_36be3aa457d0d6061b47eb71150b33cf_rle_crop_3695249924_0.png.png imagette210952911741227271/1741227071_3966823_1341150537_6cf408467389e9244bc295f01ed32a9d_rle_crop_3695251003_0.png.png imagette210952911741227271/1741226931_3965351_1341150442_feb394ffeaef3819ec503e8e9cd7974a_rle_crop_3695249824_0.png.png imagette210952911741227271/1741227071_3966823_1341150537_6cf408467389e9244bc295f01ed32a9d_rle_crop_3695251011_0.png.png imagette210952911741227271/1741227192_3968126_1341150640_2ee5e8d0ab0973625d0fa266d50f5271_rle_crop_3695251315_0.png.png imagette210952911741227271/1741226941_3965499_1341150439_8562678ba06a9437e3ccc5e94de8dea6_rle_crop_3695249835_0.png.png imagette210952911741227271/1741227071_3966823_1341150527_e55a40116ec3b428d3247f8a9da86d56_rle_crop_3695251034_0.png.png imagette210952911741227271/1741226831_3964347_1341149349_7f81dd4c5cdff8646f4969118679f59c_rle_crop_3695249485_0.png.png imagette210952911741227271/1741226813_3964114_1341149372_72d76891f654099f7aa58ba1c4049b4b_rle_crop_3695249232_0.png.png imagette210952911741227271/1741227192_3968126_1341150633_9e950b1a67d14e1e5e66e6f78d773865_rle_crop_3695251374_0.png.png imagette210952931741227272/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/81fe58db61ef59d0b82b314f2786ac1e_85945608.png imagette210952911741227271 21095293 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21095293 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210952931741227272 21095285 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21095285 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341150391: '1741226813_3964114_1341149288_65f4bb7fdf934e1cbabb99df0057dbf5_rle_crop_3695249318_0.png', 1341150393: '1741226813_3964114_1341149288_65f4bb7fdf934e1cbabb99df0057dbf5_rle_crop_3695249323_0.png', 1341150395: '1741226813_3964114_1341149285_7572a544295e3d4bec0e6b9cf097f272_rle_crop_3695249422_0.png', 1341150397: '1741226813_3964114_1341149285_7572a544295e3d4bec0e6b9cf097f272_rle_crop_3695249429_0.png', 1341150429: '1741226831_3964347_1341149361_07554cc11e85df5df25c2702e3d27452_rle_crop_3695249453_0.png', 1341150430: '1741226831_3964347_1341149349_7f81dd4c5cdff8646f4969118679f59c_rle_crop_3695249488_0.png', 1341150526: '1741226941_3965499_1341150294_52f9716bdb9901847ce466aead577e1f_rle_crop_3695249948_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/410d6ceedb35c3d48f0ef5542258b174_966613.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/fa647ba775e38c77d9b3e60a81020ff4_3845262.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/9aba765154c6cb4699cea39cd5daa09b_19474740.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/924fba5aeb0afdfad867d900903077d6_26421459.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/6a3b1955b2b02b400e9ede7a6c8c3641_34018517.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/ac02688388cc9ff17b62a2e7c2ab2c66_72817730.png change filename to text .imagette210952851741227272/ imagette210952851741227272/1741226813_3964114_1341149285_7572a544295e3d4bec0e6b9cf097f272_rle_crop_3695249422_0.png.png imagette210952851741227272/1741226941_3965499_1341150294_52f9716bdb9901847ce466aead577e1f_rle_crop_3695249948_0.png.png imagette210952851741227272/1741226813_3964114_1341149288_65f4bb7fdf934e1cbabb99df0057dbf5_rle_crop_3695249318_0.png.png imagette210952851741227272/1741226831_3964347_1341149361_07554cc11e85df5df25c2702e3d27452_rle_crop_3695249453_0.png.png imagette210952851741227272/1741226813_3964114_1341149285_7572a544295e3d4bec0e6b9cf097f272_rle_crop_3695249429_0.png.png imagette210952851741227272/1741226831_3964347_1341149349_7f81dd4c5cdff8646f4969118679f59c_rle_crop_3695249488_0.png.png imagette210952851741227272/1741226813_3964114_1341149288_65f4bb7fdf934e1cbabb99df0057dbf5_rle_crop_3695249323_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/7291bda38a2e3f6e8e770e537b62baea_59436148.png imagette210952851741227272 21095290 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21095290 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341150669: '1741227071_3966823_1341150537_6cf408467389e9244bc295f01ed32a9d_rle_crop_3695251009_0.png', 1341150670: '1741227071_3966823_1341150527_e55a40116ec3b428d3247f8a9da86d56_rle_crop_3695251030_0.png', 1341150671: '1741227071_3966823_1341150522_b09d215540b8f8c870c9b3329bd8f1d0_rle_crop_3695251048_0.png', 1341150768: '1741227192_3968126_1341150640_2ee5e8d0ab0973625d0fa266d50f5271_rle_crop_3695251318_0.png', 1341150776: '1741227212_3968350_1341150570_d6bb68ea97003be26e36f9a8aa5b42a7_rle_crop_3695252270_0.png', 1341150777: '1741227212_3968350_1341150565_f8a04b3e6b6e401f5df745a13e93d56a_rle_crop_3695252281_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/7fdc9881b0a0d1224bae9bfde20fe594_38396685.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/f91edd8895f56ebbb354d0bf50ecad1a_58400711.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/388425bbb11a8dc2510c70fdea85dd55_4179300.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/917fa7d602ae3b8d6e30a3b43aa297b8_94589110.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/3f93f484d426a71fc95fd16da206fd04_66840954.png change filename to text .imagette210952901741227273/ imagette210952901741227273/1741227212_3968350_1341150570_d6bb68ea97003be26e36f9a8aa5b42a7_rle_crop_3695252270_0.png.png imagette210952901741227273/1741227192_3968126_1341150640_2ee5e8d0ab0973625d0fa266d50f5271_rle_crop_3695251318_0.png.png imagette210952901741227273/1741227071_3966823_1341150537_6cf408467389e9244bc295f01ed32a9d_rle_crop_3695251009_0.png.png imagette210952901741227273/1741227071_3966823_1341150522_b09d215540b8f8c870c9b3329bd8f1d0_rle_crop_3695251048_0.png.png imagette210952901741227273/1741227212_3968350_1341150565_f8a04b3e6b6e401f5df745a13e93d56a_rle_crop_3695252281_0.png.png imagette210952901741227273/1741227071_3966823_1341150527_e55a40116ec3b428d3247f8a9da86d56_rle_crop_3695251030_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/7407a6aa393f7a99af8731d483d42df8_7995540.png imagette210952901741227273 21095292 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21095292 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341150534: '1741226941_3965499_1341150294_52f9716bdb9901847ce466aead577e1f_rle_crop_3695249936_0.png', 1341150535: '1741226941_3965499_1341150294_52f9716bdb9901847ce466aead577e1f_rle_crop_3695249935_0.png', 1341150664: '1741227071_3966823_1341150522_b09d215540b8f8c870c9b3329bd8f1d0_rle_crop_3695251038_0.png', 1341150765: '1741227192_3968126_1341150640_2ee5e8d0ab0973625d0fa266d50f5271_rle_crop_3695251316_0.png', 1341150766: '1741227192_3968126_1341150633_9e950b1a67d14e1e5e66e6f78d773865_rle_crop_3695251363_0.png', 1341150774: '1741227212_3968350_1341150565_f8a04b3e6b6e401f5df745a13e93d56a_rle_crop_3695252280_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/805a6032d986bb9424ef2413c9819be4_49907143.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/09980a4b86987fff3ebcb23af1f4b9ba_15052917.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/9ba7d200cfc0630ce49618a248fcb1fc_88074915.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/bdad240f625e0081dea8da5e610e8adf_31557855.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b44cb2a858f69edbd60d1df2a68453f6_98341825.png change filename to text .imagette210952921741227273/ imagette210952921741227273/1741227192_3968126_1341150633_9e950b1a67d14e1e5e66e6f78d773865_rle_crop_3695251363_0.png.png imagette210952921741227273/1741227212_3968350_1341150565_f8a04b3e6b6e401f5df745a13e93d56a_rle_crop_3695252280_0.png.png imagette210952921741227273/1741227071_3966823_1341150522_b09d215540b8f8c870c9b3329bd8f1d0_rle_crop_3695251038_0.png.png imagette210952921741227273/1741226941_3965499_1341150294_52f9716bdb9901847ce466aead577e1f_rle_crop_3695249935_0.png.png imagette210952921741227273/1741227192_3968126_1341150640_2ee5e8d0ab0973625d0fa266d50f5271_rle_crop_3695251316_0.png.png imagette210952921741227273/1741226941_3965499_1341150294_52f9716bdb9901847ce466aead577e1f_rle_crop_3695249936_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/fce1545bc4c4c6ff26937cf6d487066c_47091322.png imagette210952921741227273 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21095280 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21095295,21095296,21095297,21095298,21095299,21095300,21095301,21095302,21095303,21095304,21095305,21095306?tags=flou,plastique,Teint_Dans_La_Masse,kraft,metal,cartonnette,environnement,Carton_brun,autre_refus,Carton_gris,mal_croppe,papier your option no_mail is active, we will not send the real mail to your client args[1341150762] : ('0.07072101880239609',) no score found for photo 1341150762 We are sending mail with results at report@fotonower.com args[1341150759] : ('0.07072101880239609',) no score found for photo 1341150759 We are sending mail with results at report@fotonower.com args[1341150756] : ('0.07072101880239609',) no score found for photo 1341150756 We are sending mail with results at report@fotonower.com args[1341150746] : ('0.07072101880239609',) no score found for photo 1341150746 We are sending mail with results at report@fotonower.com args[1341150733] : ('0.07072101880239609',) no score found for photo 1341150733 We are sending mail with results at report@fotonower.com args[1341150726] : ('0.07072101880239609',) no score found for photo 1341150726 We are sending mail with results at report@fotonower.com args[1341150690] : ('0.07072101880239609',) no score found for photo 1341150690 We are sending mail with results at report@fotonower.com args[1341150689] : ('0.07072101880239609',) no score found for photo 1341150689 We are sending mail with results at report@fotonower.com args[1341150680] : ('0.07072101880239609',) no score found for photo 1341150680 We are sending mail with results at report@fotonower.com args[1341150676] : ('0.07072101880239609',) no score found for photo 1341150676 We are sending mail with results at report@fotonower.com args[1341150667] : ('0.07072101880239609',) no score found for photo 1341150667 We are sending mail with results at report@fotonower.com refus_total : 0.07072101880239609 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21095280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095280_06-03-2025_03_14_30.pdf results_Auto_P21095280_06-03-2025_03_14_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095280_06-03-2025_03_14_30.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21095280','results_Auto_P21095280_06-03-2025_03_14_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095280_06-03-2025_03_14_30.pdf','pdf','','0.28','0.07072101880239609') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21095280]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1341150762, 1341150759, 1341150756, 1341150746, 1341150733, 1341150726, 1341150690, 1341150689, 1341150680, 1341150676, 1341150667] map_info['map_portfolio_photo'] : {21095280: [1341150762, 1341150759, 1341150756, 1341150746, 1341150733, 1341150726, 1341150690, 1341150689, 1341150680, 1341150676, 1341150667, 1341150642, 1341150641, 1341150640, 1341150633, 1341150624, 1341150619, 1341150576, 1341150575, 1341150574, 1341150572, 1341150570, 1341150565, 1341150549, 1341150538, 1341150537, 1341150527, 1341150522, 1341150501, 1341150500, 1341150499, 1341150498, 1341150464, 1341150442, 1341150439, 1341150294, 1341150157, 1341150153, 1341150143, 1341149372, 1341149365, 1341149361, 1341149356, 1341149349, 1341149291, 1341149288, 1341149285, 1341149281]} final : False mtd_id 4302 list_pids : [1341150762, 1341150759, 1341150756, 1341150746, 1341150733, 1341150726, 1341150690, 1341150689, 1341150680, 1341150676, 1341150667] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150762', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150759', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150756', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150746', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150733', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150726', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150690', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150689', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150680', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150676', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150667', None, None, None, None, None, '2640995') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21095280', '1341150762', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150759', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150756', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150746', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150733', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150726', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150690', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150689', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150680', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150676', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150667', None, None, None, None, None, '2640995')] time used for this insertion : 0.09765243530273438 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.494325160980225 time spend to save output : 0.09799575805664062 total time spend for step 4 : 9.592320919036865 step5:split_time_score Thu Mar 6 03:14:40 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21095280'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('21095280',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21095280) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1341150759: {'path': 'temp/1741227270_56379_1341150759_cfa385b5f1e0eeabde4ae8eab8fbb6dc.jpg', 'extension': 'jpg'}, 1341150762: {'path': 'temp/1741227270_56379_1341150762_cdbf6084d2a40d684dacbd823f254fcd.jpg', 'extension': 'jpg'}, 1341150733: {'path': 'temp/1741227270_56379_1341150733_1ab25d9ee8076312c76f095494043720.jpg', 'extension': 'jpg'}, 1341150746: {'path': 'temp/1741227270_56379_1341150746_33c5688742a64daac39beddb13932ffe.jpg', 'extension': 'jpg'}, 1341150756: {'path': 'temp/1741227270_56379_1341150756_2545008242f326856b9a9e8344affeca.jpg', 'extension': 'jpg'}, 1341150667: {'path': 'temp/1741227270_56379_1341150667_e8b92e1ed80abe01f85fd47278e063f0.jpg', 'extension': 'jpg'}, 1341150676: {'path': 'temp/1741227270_56379_1341150676_339beaef19373ab57a9c952eb84a218a.jpg', 'extension': 'jpg'}, 1341150680: {'path': 'temp/1741227270_56379_1341150680_0e3d1cc5e783f8c840cb6f932ea54ba1.jpg', 'extension': 'jpg'}, 1341150689: {'path': 'temp/1741227270_56379_1341150689_9d9694b8a5171853a0f31deb0cedc3b8.jpg', 'extension': 'jpg'}, 1341150690: {'path': 'temp/1741227270_56379_1341150690_78c6e5d957a255f9bacdc6e7d8fbb609.jpg', 'extension': 'jpg'}, 1341150726: {'path': 'temp/1741227270_56379_1341150726_57f48f9a7a980f94aa4b345da0c11c2c.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 21095280; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21095280 group by h (('03', 48),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21095280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21095280) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21095280) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06032025 21095280 Nombre de photos uploadées : 48 / 23040 (0%) 06032025 21095280 Nombre de photos taguées (types de déchets): 0 / 48 (0%) 06032025 21095280 Nombre de photos taguées (volume) : 0 / 48 (0%) [{'photo_id': 1341149291, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/a0290c7c4eaa8c77ab8321c61b87166e.jpg', 'username': None, 'uploaded_at': 1741226666, 'text': 'image_06032025_03_00_14_10190.jpg'}, {'photo_id': 1341149288, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/65f4bb7fdf934e1cbabb99df0057dbf5.jpg', 'username': None, 'uploaded_at': 1741226666, 'text': 'image_06032025_03_03_14_10142.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341149285, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/7572a544295e3d4bec0e6b9cf097f272.jpg', 'username': None, 'uploaded_at': 1741226666, 'text': 'image_06032025_03_03_34_9133.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341149281, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/6/b08adc50141e4836bd3b791812f54ddb.jpg', 'username': None, 'uploaded_at': 1741226666, 'text': 'image_06032025_03_03_44_10140.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.4066696166992188e-05 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023152828216552734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21095280, '2025-03-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1643118,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.031530141830444336 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1643118 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1643118, 'dashboard_run_id': 1650988, 'mtr_portfolio_id': 21093935, 'dashboard_result_id': 9255482, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21093935_06-03-2025_02_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21093938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21093939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21093940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21093941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21093942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21093943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21093944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21093945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21093946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21093947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21093948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21093949, 'pht': 3726}}"}, {'dashboat_entry_day': 1643118, 'dashboard_run_id': 1650988, 'mtr_portfolio_id': 21094390, 'dashboard_result_id': 9255483, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21094390_06-03-2025_02_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21094477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21094478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21094479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21094480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21094481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21094482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21094483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21094484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21094485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21094486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21094487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21094488, 'pht': 3726}}"}, {'dashboat_entry_day': 1643118, 'dashboard_run_id': 1650988, 'mtr_portfolio_id': 21095280, 'dashboard_result_id': 9255484, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095280_06-03-2025_03_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21095283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21095284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21095285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21095286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21095287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21095288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21095289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21095290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21095291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21095292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21095293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21095294, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21093935 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2640902, 'mtr_portfolio_id': 21093935, 'created_at': datetime.datetime(2025, 3, 6, 2, 33), 'result': '0.07780601694395353', 'result_long': None, 'result_double': None}] Qualite : 0.07780601694395353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21093935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21093935_06-03-2025_02_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21093935 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21093935_06-03-2025_02_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21093938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21093939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21093940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21093941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21093942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21093943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21093944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21093945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21093946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21093947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21093948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21093949, 'pht': 3726}}" where mtr_portfolio_id = 21093935 and dashboard_run_id = 1650988 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21093935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9255482, 0.07780601694395353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21093935_06-03-2025_02_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21093938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21093939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21093940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21093941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21093942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21093943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21093944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21093945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21093946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21093947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21093948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21093949, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21094390 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2640934, 'mtr_portfolio_id': 21094390, 'created_at': datetime.datetime(2025, 3, 6, 2, 49), 'result': '0.06467489843338833', 'result_long': None, 'result_double': None}] Qualite : 0.06467489843338833 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21094390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21094390_06-03-2025_02_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21094390 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21094390_06-03-2025_02_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21094477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21094478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21094479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21094480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21094481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21094482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21094483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21094484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21094485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21094486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21094487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21094488, 'pht': 3726}}" where mtr_portfolio_id = 21094390 and dashboard_run_id = 1650988 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21094390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9255483, 0.06467489843338833, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21094390_06-03-2025_02_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21094477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21094478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21094479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21094480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21094481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21094482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21094483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21094484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21094485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21094486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21094487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21094488, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21095280 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2640995, 'mtr_portfolio_id': 21095280, 'created_at': datetime.datetime(2025, 3, 6, 3, 14, 30), 'result': '0.07072101880239609', 'result_long': None, 'result_double': None}] Qualite : 0.07072101880239609 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21095280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095280_06-03-2025_03_14_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21095280 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095280_06-03-2025_03_14_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21095283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21095284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21095285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21095286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21095287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21095288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21095289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21095290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21095291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21095292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21095293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21095294, 'pht': 3726}}" where mtr_portfolio_id = 21095280 and dashboard_run_id = 1650988 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21095280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9255484, 0.07072101880239609, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21095280_06-03-2025_03_14_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21095283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21095284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21095285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21095286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21095287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21095288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21095289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21095290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21095291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21095292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21095293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21095294, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21093935,21094390,21095280) result : ((1341142338,), (1341142341,), (1341142344,), (1341142347,), (1341142419,), (1341142467,), (1341142531,), (1341143558,), (1341143567,), (1341143668,), (1341143716,), (1341143718,), (1341144060,), (1341144127,), (1341144183,), (1341144187,), (1341144190,), (1341144217,), (1341144220,), (1341144223,), (1341144226,), (1341144229,), (1341144232,), (1341144631,), (1341144641,), (1341144650,), (1341144653,), (1341144657,), (1341144693,), (1341144702,), (1341144707,), (1341144711,), (1341144718,), (1341144774,), (1341144776,), (1341144779,), (1341144830,), (1341144832,), (1341144836,), (1341144891,), (1341144894,), (1341144932,), (1341144936,), (1341144940,), (1341144942,), (1341144944,), (1341145000,), (1341145094,), (1341145137,), (1341145139,), (1341145142,), (1341145151,), (1341145153,), (1341145155,), (1341145319,), (1341145404,), (1341145492,), (1341145575,), (1341145638,), (1341145612,), (1341145616,), (1341145632,), (1341145636,), (1341145658,), (1341145661,), (1341145670,), (1341145672,), (1341145962,), (1341145964,), (1341145968,), (1341145973,), (1341145980,), (1341146026,), (1341146031,), (1341146047,), (1341146060,), (1341146062,), (1341146066,), (1341146069,), (1341146071,), (1341146098,), (1341146130,), (1341146134,), (1341146136,), (1341146138,), (1341146165,), (1341146237,), (1341146271,), (1341146276,), (1341146281,), (1341146315,), (1341146317,), (1341146322,), (1341146330,), (1341146348,), (1341146351,), (1341146361,), (1341146363,), (1341146365,), (1341146370,), (1341146387,), (1341146486,), (1341146496,), (1341146501,), (1341146504,), (1341146512,), (1341146514,), (1341146518,), (1341146521,), (1341146525,), (1341146612,), (1341146627,), (1341146636,), (1341146799,), (1341146814,), (1341146818,), (1341146861,), (1341146896,), (1341147008,), (1341147010,), (1341147014,), (1341147016,), (1341147020,), (1341147024,), (1341147036,), (1341147565,), (1341149281,), (1341149285,), (1341149288,), (1341149291,), (1341149349,), (1341149356,), (1341149361,), (1341149365,), (1341149372,), (1341150143,), (1341150153,), (1341150157,), (1341150294,), (1341150439,), (1341150442,), (1341150464,), (1341150498,), (1341150499,), (1341150500,), (1341150501,), (1341150522,), (1341150527,), (1341150537,), (1341150538,), (1341150549,), (1341150565,), (1341150570,), (1341150572,), (1341150574,), (1341150575,), (1341150576,), (1341150619,), (1341150624,), (1341150633,), (1341150640,), (1341150641,), (1341150642,), (1341150667,), (1341150676,), (1341150680,), (1341150689,), (1341150690,), (1341150726,), (1341150733,), (1341150746,), (1341150756,), (1341150759,), (1341150762,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06032025': {'nb_upload': 48, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21095280]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1341150762, 1341150759, 1341150756, 1341150746, 1341150733, 1341150726, 1341150690, 1341150689, 1341150680, 1341150676, 1341150667] map_info['map_portfolio_photo'] : {21095280: [1341150762, 1341150759, 1341150756, 1341150746, 1341150733, 1341150726, 1341150690, 1341150689, 1341150680, 1341150676, 1341150667, 1341150642, 1341150641, 1341150640, 1341150633, 1341150624, 1341150619, 1341150576, 1341150575, 1341150574, 1341150572, 1341150570, 1341150565, 1341150549, 1341150538, 1341150537, 1341150527, 1341150522, 1341150501, 1341150500, 1341150499, 1341150498, 1341150464, 1341150442, 1341150439, 1341150294, 1341150157, 1341150153, 1341150143, 1341149372, 1341149365, 1341149361, 1341149356, 1341149349, 1341149291, 1341149288, 1341149285, 1341149281]} final : True mtd_id 4302 list_pids : [1341150762, 1341150759, 1341150756, 1341150746, 1341150733, 1341150726, 1341150690, 1341150689, 1341150680, 1341150676, 1341150667] Looping around the photos to save general results len do output : 1 /21095280Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150762', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150759', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150756', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150746', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150733', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150726', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150690', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150689', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150680', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150676', None, None, None, None, None, '2640995') ('4302', None, None, None, None, None, None, None, '2640995') ('4302', '21095280', '1341150667', None, None, None, None, None, '2640995') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21095280', 'None', None, None, None, None, '2640995'), ('4302', '21095280', '1341150762', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150759', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150756', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150746', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150733', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150726', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150690', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150689', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150680', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150676', None, None, None, None, None, '2640995'), ('4302', '21095280', '1341150667', None, None, None, None, None, '2640995')] time used for this insertion : 0.056047916412353516 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34165287017822266 time spend to save output : 0.05635976791381836 total time spend for step 5 : 0.398012638092041 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2640995) 2.45user 2.08system 0:15.18elapsed 29%CPU (0avgtext+0avgdata 159052maxresident)k 536inputs+16720outputs (23major+74961minor)pagefaults 0swaps