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 : 865045 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 was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2710507) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2710507) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923380 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2710507'] with mtr_portfolio_ids : ['21923380'] and first list_photo_ids : [] new path : /proc/865045/ Name: python3 Umask: 0002 State: R (running) Tgid: 865045 Ngid: 0 Pid: 865045 PPid: 865044 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 865045 NSpid: 865045 NSpgid: 864070 NSsid: 864070 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97952 kB VmRSS: 97952 kB RssAnon: 59808 kB RssFile: 38144 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 56 nonvoluntary_ctxt_switches: 299 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '865045', 'Ngid': '0', 'Pid': '865045', 'PPid': '865044', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '865045', 'NSpid': '865045', 'NSpgid': '864070', 'NSsid': '864070', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97952 kB', 'VmRSS': '97952 kB', 'RssAnon': '59808 kB', 'RssFile': '38144 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CSELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923395) result : ((1349075597,), (1349075684,), (1349075685,), (1349075686,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923396 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923396) result : ((1349075672,), (1349075681,), (1349075682,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923397 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923397) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923398 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923398) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923399 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923399) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923400 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923400) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923401 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923401) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923402 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923402) result : ((1349075594,), (1349075678,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923403 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923403) result : ((1349075590,), (1349075591,), (1349075668,), (1349075676,), (1349075677,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923404 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923404) result : ((1349075595,), (1349075670,), (1349075671,), (1349075679,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923405 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923405) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21923406 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21923380 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923406) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21923380) result : ((1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! 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`=21923380 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','Carton_gris','cartonnette','plastique','flou','papier','kraft','Carton_brun','metal','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 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`=21923380 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','Carton_gris','cartonnette','plastique','flou','papier','kraft','Carton_brun','metal','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21923380, 'sub_port_id': 21923407, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428681, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'Carton_brun': {'main_port_id': 21923380, 'sub_port_id': 21923408, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428682, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'papier': {'main_port_id': 21923380, 'sub_port_id': 21923409, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428683, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'Carton_gris': {'main_port_id': 21923380, 'sub_port_id': 21923410, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428684, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'mal_croppe': {'main_port_id': 21923380, 'sub_port_id': 21923411, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428685, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'kraft': {'main_port_id': 21923380, 'sub_port_id': 21923412, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428686, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'flou': {'main_port_id': 21923380, 'sub_port_id': 21923413, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428687, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'autre_refus': {'main_port_id': 21923380, 'sub_port_id': 21923414, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428688, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21923380, 'sub_port_id': 21923415, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428689, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'cartonnette': {'main_port_id': 21923380, 'sub_port_id': 21923416, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428690, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'environnement': {'main_port_id': 21923380, 'sub_port_id': 21923417, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428691, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}, 'metal': {'main_port_id': 21923380, 'sub_port_id': 21923418, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14428692, 'last_updated_at': datetime.datetime(2025, 3, 31, 20, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 20, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 20, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923395 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923408,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923396 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923409,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923397 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923410,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923398 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923411,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923399 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923412,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923400 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923413,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923401 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923414,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923402 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923415,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923403 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923416,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923404 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923417,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923405 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21923418,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21923406 lien utilise dans velours : https://www.fotonower.com/velours/21923407,21923408,21923409,21923410,21923411,21923412,21923413,21923414,21923415,21923416,21923417,21923418?tags=plastique,Carton_brun,papier,Carton_gris,mal_croppe,kraft,flou,autre_refus,Teint_Dans_La_Masse,cartonnette,environnement,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21923380]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582] map_info['map_portfolio_photo'] : {21923380: [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582, 1349075528, 1349075525, 1349075522, 1349075519, 1349075447, 1349075441, 1349075438, 1349075432, 1349075423, 1349075414, 1349075368, 1349075364, 1349075358, 1349075356, 1349075354]} final : False mtd_id 4302 list_pids : [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582] Looping around the photos to save general results len do output : 1 /21923380. 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, '2710507') ('4302', '21923380', '1349075696', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075691', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075688', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075645', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075642', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075639', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075637', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075635', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075634', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075599', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075596', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075592', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075588', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075586', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075582', None, None, None, None, None, '2710507') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21923380', "{'plastique': 21923395, 'Carton_brun': 21923396, 'papier': 21923397, 'Carton_gris': 21923398, 'mal_croppe': 21923399, 'kraft': 21923400, 'flou': 21923401, 'autre_refus': 21923402, 'Teint_Dans_La_Masse': 21923403, 'cartonnette': 21923404, 'environnement': 21923405, 'metal': 21923406}", None, None, None, None, '2710507'), ('4302', '21923380', '1349075696', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075691', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075688', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075645', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075642', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075639', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075637', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075635', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075634', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075599', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075596', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075592', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075588', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075586', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075582', None, None, None, None, None, '2710507')] time used for this insertion : 0.015069723129272461 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.453580617904663 time spend to save output : 0.015442371368408203 total time spend for step 1 : 1.4690229892730713 step2:final Mon Mar 31 20:36:31 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 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21923380) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 21923380 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349075368,1349075364,1349075358,1349075356,1349075354,1349075447,1349075441,1349075438,1349075432,1349075423,1349075414,1349075528,1349075525,1349075522,1349075519,1349075599,1349075596,1349075592,1349075588,1349075586,1349075582,1349075645,1349075642,1349075639,1349075637,1349075635,1349075634,1349075696,1349075691,1349075688); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21923380]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} new output for save of step final : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582] map_info['map_portfolio_photo'] : {21923380: [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582, 1349075528, 1349075525, 1349075522, 1349075519, 1349075447, 1349075441, 1349075438, 1349075432, 1349075423, 1349075414, 1349075368, 1349075364, 1349075358, 1349075356, 1349075354]} final : False mtd_id 4302 list_pids : [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582] Looping around the photos to save general results len do output : 15 /1349075696.Didn't retrieve data . /1349075691.Didn't retrieve data . /1349075688.Didn't retrieve data . /1349075645.Didn't retrieve data . /1349075642.Didn't retrieve data . /1349075639.Didn't retrieve data . /1349075637.Didn't retrieve data . /1349075635.Didn't retrieve data . /1349075634.Didn't retrieve data . /1349075599.Didn't retrieve data . /1349075596.Didn't retrieve data . /1349075592.Didn't retrieve data . /1349075588.Didn't retrieve data . /1349075586.Didn't retrieve data . /1349075582.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075696', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075691', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075688', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075645', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075642', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075639', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075637', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075635', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075634', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075599', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075596', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075592', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075588', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075586', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075582', None, None, None, None, None, '2710507') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '21923380', '1349075696', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075691', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075688', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075645', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075642', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075639', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075637', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075635', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075634', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075599', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075596', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075592', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075588', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075586', '0.03901925911424603', None, None, None, None, '2710507'), ('4302', '21923380', '1349075582', '0.03901925911424603', None, None, None, None, '2710507')] time used for this insertion : 0.016073226928710938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06712555885314941 time spend to save output : 0.016885995864868164 total time spend for step 2 : 0.08401155471801758 step3:velours_tree Mon Mar 31 20:36:31 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 : {21923380: [{'plastique': 21923395, 'Carton_brun': 21923396, 'papier': 21923397, 'Carton_gris': 21923398, 'mal_croppe': 21923399, 'kraft': 21923400, 'flou': 21923401, 'autre_refus': 21923402, 'Teint_Dans_La_Masse': 21923403, 'cartonnette': 21923404, 'environnement': 21923405, 'metal': 21923406}]} input_args_next_step : {21923380: ()} output_args : {21923380: [{'plastique': 21923395, 'Carton_brun': 21923396, 'papier': 21923397, 'Carton_gris': 21923398, 'mal_croppe': 21923399, 'kraft': 21923400, 'flou': 21923401, 'autre_refus': 21923402, 'Teint_Dans_La_Masse': 21923403, 'cartonnette': 21923404, 'environnement': 21923405, 'metal': 21923406}]} args : 21923380 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 21923395, 'Carton_brun': 21923396, 'papier': 21923397, 'Carton_gris': 21923398, 'mal_croppe': 21923399, 'kraft': 21923400, 'flou': 21923401, 'autre_refus': 21923402, 'Teint_Dans_La_Masse': 21923403, 'cartonnette': 21923404, 'environnement': 21923405, 'metal': 21923406},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21923380) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21923380]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.48518872261047363 time spend to save output : 6.556510925292969e-05 total time spend for step 3 : 0.48525428771972656 step4:send_mail_cod Mon Mar 31 20:36:32 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 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} input_args_next_step : {1349075696: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075696 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075691 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075688 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075645 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075642 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075639 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075637 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075635 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075634 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075599 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075596 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075592 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075588 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075586 depend.output_id : 0 input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ()} output_args : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',)} args : 1349075582 depend.output_id : 0 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 3 : {21923380: [{'plastique': 21923395, 'Carton_brun': 21923396, 'papier': 21923397, 'Carton_gris': 21923398, 'mal_croppe': 21923399, 'kraft': 21923400, 'flou': 21923401, 'autre_refus': 21923402, 'Teint_Dans_La_Masse': 21923403, 'cartonnette': 21923404, 'environnement': 21923405, 'metal': 21923406}]} input_args_next_step : {1349075696: ('0.03901925911424603',), 1349075691: ('0.03901925911424603',), 1349075688: ('0.03901925911424603',), 1349075645: ('0.03901925911424603',), 1349075642: ('0.03901925911424603',), 1349075639: ('0.03901925911424603',), 1349075637: ('0.03901925911424603',), 1349075635: ('0.03901925911424603',), 1349075634: ('0.03901925911424603',), 1349075599: ('0.03901925911424603',), 1349075596: ('0.03901925911424603',), 1349075592: ('0.03901925911424603',), 1349075588: ('0.03901925911424603',), 1349075586: ('0.03901925911424603',), 1349075582: ('0.03901925911424603',), 21923380: ()} output_args : {21923380: [{'plastique': 21923395, 'Carton_brun': 21923396, 'papier': 21923397, 'Carton_gris': 21923398, 'mal_croppe': 21923399, 'kraft': 21923400, 'flou': 21923401, 'autre_refus': 21923402, 'Teint_Dans_La_Masse': 21923403, 'cartonnette': 21923404, 'environnement': 21923405, 'metal': 21923406}]} args : 21923380 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :16, first value : ('0.03901925911424603',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21923380) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1349075696,1349075691,1349075688,1349075645,1349075642,1349075639,1349075637,1349075635,1349075634,1349075599,1349075596,1349075592,1349075588,1349075586,1349075582) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349075582 begin to download photo : 1349075596 begin to download photo : 1349075637 begin to download photo : 1349075688 download finish for photo 1349075596 begin to download photo : 1349075599 download finish for photo 1349075637 begin to download photo : 1349075639 download finish for photo 1349075688 begin to download photo : 1349075691 download finish for photo 1349075582 begin to download photo : 1349075586 download finish for photo 1349075599 begin to download photo : 1349075634 download finish for photo 1349075691 begin to download photo : 1349075696 download finish for photo 1349075639 begin to download photo : 1349075642 download finish for photo 1349075586 begin to download photo : 1349075588 download finish for photo 1349075634 begin to download photo : 1349075635 download finish for photo 1349075696 download finish for photo 1349075642 begin to download photo : 1349075645 download finish for photo 1349075588 begin to download photo : 1349075592 download finish for photo 1349075635 download finish for photo 1349075592 download finish for photo 1349075645 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P21923380_31-03-2025_20_36_32.pdf 21923395 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=21923395 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349075597: '1743446008_1418005_1349075368_4e14a7cd127385fc4af56e1a684090fe_rle_crop_3741441624_0.png', 1349075684: '1743446126_1419045_1349075528_f6323f115dc7f1bd06993013c78b9605_rle_crop_3741442853_0.png', 1349075685: '1743446126_1419045_1349075432_4ba35b108aaa400e1b8bf1960a337c45_rle_crop_3741442889_0.png', 1349075686: '1743446126_1419045_1349075423_b5c7d372a3f3d1ff76ea1384ca5aa629_rle_crop_3741442909_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/cfdfda7a782b674848d72f53c6ba1496_15633102.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d4fa73e4e24f1a61e699c542392d1833_17949969.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6ffb744e7acf2d479aa1359eb6ff98fb_74251987.png change filename to text .imagette219233951743446192/ imagette219233951743446192/1743446008_1418005_1349075368_4e14a7cd127385fc4af56e1a684090fe_rle_crop_3741441624_0.png.png imagette219233951743446192/1743446126_1419045_1349075528_f6323f115dc7f1bd06993013c78b9605_rle_crop_3741442853_0.png.png imagette219233951743446192/1743446126_1419045_1349075432_4ba35b108aaa400e1b8bf1960a337c45_rle_crop_3741442889_0.png.png imagette219233951743446192/1743446126_1419045_1349075423_b5c7d372a3f3d1ff76ea1384ca5aa629_rle_crop_3741442909_0.png.png imagette219233991743446193/ imagette219234001743446193/ imagette219234011743446193/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e934d102ce43950be09277c93bb69a50_30309636.png imagette219233951743446192 21923399 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=21923399 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219233991743446193 21923400 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=21923400 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219234001743446193 21923401 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=21923401 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219234011743446193 21923402 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=21923402 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349075594: '1743446008_1418005_1349075358_bae89358082b7a810960091e0dbd1507_rle_crop_3741441653_0.png', 1349075678: '1743446126_1419045_1349075432_4ba35b108aaa400e1b8bf1960a337c45_rle_crop_3741442888_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/f29fcd8a4802a9f8455c7a7bebc60d09_23279275.png change filename to text .imagette219234021743446193/ imagette219234021743446193/1743446008_1418005_1349075358_bae89358082b7a810960091e0dbd1507_rle_crop_3741441653_0.png.png imagette219234021743446193/1743446126_1419045_1349075432_4ba35b108aaa400e1b8bf1960a337c45_rle_crop_3741442888_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9d568204f17cb256908e8dffe4f097fe_68043791.png imagette219234021743446193 21923404 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=21923404 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349075595: '1743446008_1418005_1349075356_1886e3f9df938f2a269855aff577b2bd_rle_crop_3741441668_0.png', 1349075670: '1743446113_3801184_1349075525_5d8c3546a279d562c3b481b6c64d6124_rle_crop_3741442812_0.png', 1349075671: '1743446113_3801184_1349075525_5d8c3546a279d562c3b481b6c64d6124_rle_crop_3741442817_0.png', 1349075679: '1743446126_1419045_1349075438_9ad5577d606af6e621f1e75f9883baeb_rle_crop_3741442878_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/a55f3513d427152703f89d694836ae4f_19765509.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6a87c944f0a81d3afda33cdfed2e0018_98158977.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/3ffadb26eb13a1005a5bf3532840f047_430990.png change filename to text .imagette219234041743446193/ imagette219234041743446193/1743446126_1419045_1349075438_9ad5577d606af6e621f1e75f9883baeb_rle_crop_3741442878_0.png.png imagette219234041743446193/1743446113_3801184_1349075525_5d8c3546a279d562c3b481b6c64d6124_rle_crop_3741442812_0.png.png imagette219234041743446193/1743446113_3801184_1349075525_5d8c3546a279d562c3b481b6c64d6124_rle_crop_3741442817_0.png.png imagette219234041743446193/1743446008_1418005_1349075356_1886e3f9df938f2a269855aff577b2bd_rle_crop_3741441668_0.png.png imagette219234061743446193/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6d8131662346897e70debccf61be76a5_50821308.png imagette219234041743446193 21923406 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=21923406 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219234061743446193 21923396 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=21923396 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349075672: '1743446113_3801184_1349075525_5d8c3546a279d562c3b481b6c64d6124_rle_crop_3741442816_0.png', 1349075681: '1743446126_1419045_1349075528_f6323f115dc7f1bd06993013c78b9605_rle_crop_3741442858_0.png', 1349075682: '1743446126_1419045_1349075441_fd25ff63fa88c9874fc2686816535b9d_rle_crop_3741442868_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/ea03f507d3411fffeddcbceb3e6de016_92591804.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/3e8216ad4f76a8d7076f2e7ce8c6f9a0_55030144.png change filename to text .imagette219233961743446193/ imagette219233961743446193/1743446126_1419045_1349075441_fd25ff63fa88c9874fc2686816535b9d_rle_crop_3741442868_0.png.png imagette219233961743446193/1743446113_3801184_1349075525_5d8c3546a279d562c3b481b6c64d6124_rle_crop_3741442816_0.png.png imagette219233961743446193/1743446126_1419045_1349075528_f6323f115dc7f1bd06993013c78b9605_rle_crop_3741442858_0.png.png imagette219233981743446193/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9b89b102de25aa10730e56b3bbb10449_38648167.png imagette219233961743446193 21923398 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=21923398 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219233981743446193 21923403 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=21923403 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349075590: '1743446008_1418005_1349075368_4e14a7cd127385fc4af56e1a684090fe_rle_crop_3741441627_0.png', 1349075591: '1743446008_1418005_1349075356_1886e3f9df938f2a269855aff577b2bd_rle_crop_3741441670_0.png', 1349075668: '1743446113_3801184_1349075522_7a175dae3578ada1948d1849907d7c79_rle_crop_3741442827_0.png', 1349075676: '1743446126_1419045_1349075438_9ad5577d606af6e621f1e75f9883baeb_rle_crop_3741442879_0.png', 1349075677: '1743446126_1419045_1349075432_4ba35b108aaa400e1b8bf1960a337c45_rle_crop_3741442893_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/5db9bccaf0af5509e1716fbbeebe93eb_86882225.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/346b19ccb10a6b5d2c76862a3e09660c_21540226.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/f572fc5c845aaa920055db24e8915c87_35053776.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d8e91ecec350ffbd7362586528f091e6_38121629.png change filename to text .imagette219234031743446193/ imagette219234031743446193/1743446113_3801184_1349075522_7a175dae3578ada1948d1849907d7c79_rle_crop_3741442827_0.png.png imagette219234031743446193/1743446008_1418005_1349075368_4e14a7cd127385fc4af56e1a684090fe_rle_crop_3741441627_0.png.png imagette219234031743446193/1743446126_1419045_1349075438_9ad5577d606af6e621f1e75f9883baeb_rle_crop_3741442879_0.png.png imagette219234031743446193/1743446126_1419045_1349075432_4ba35b108aaa400e1b8bf1960a337c45_rle_crop_3741442893_0.png.png imagette219234031743446193/1743446008_1418005_1349075356_1886e3f9df938f2a269855aff577b2bd_rle_crop_3741441670_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/49bf53301f64cbcf0a2b646017ecfef4_63070346.png imagette219234031743446193 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21923380 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21923407,21923408,21923409,21923410,21923411,21923412,21923413,21923414,21923415,21923416,21923417,21923418?tags=plastique,Carton_brun,papier,Carton_gris,mal_croppe,kraft,flou,autre_refus,Teint_Dans_La_Masse,cartonnette,environnement,metal your option no_mail is active, we will not send the real mail to your client args[1349075696] : ('0.03901925911424603',) no score found for photo 1349075696 We are sending mail with results at report@fotonower.com args[1349075691] : ('0.03901925911424603',) no score found for photo 1349075691 We are sending mail with results at report@fotonower.com args[1349075688] : ('0.03901925911424603',) no score found for photo 1349075688 We are sending mail with results at report@fotonower.com args[1349075645] : ('0.03901925911424603',) no score found for photo 1349075645 We are sending mail with results at report@fotonower.com args[1349075642] : ('0.03901925911424603',) no score found for photo 1349075642 We are sending mail with results at report@fotonower.com args[1349075639] : ('0.03901925911424603',) no score found for photo 1349075639 We are sending mail with results at report@fotonower.com args[1349075637] : ('0.03901925911424603',) no score found for photo 1349075637 We are sending mail with results at report@fotonower.com args[1349075635] : ('0.03901925911424603',) no score found for photo 1349075635 We are sending mail with results at report@fotonower.com args[1349075634] : ('0.03901925911424603',) no score found for photo 1349075634 We are sending mail with results at report@fotonower.com args[1349075599] : ('0.03901925911424603',) no score found for photo 1349075599 We are sending mail with results at report@fotonower.com args[1349075596] : ('0.03901925911424603',) no score found for photo 1349075596 We are sending mail with results at report@fotonower.com args[1349075592] : ('0.03901925911424603',) no score found for photo 1349075592 We are sending mail with results at report@fotonower.com args[1349075588] : ('0.03901925911424603',) no score found for photo 1349075588 We are sending mail with results at report@fotonower.com args[1349075586] : ('0.03901925911424603',) no score found for photo 1349075586 We are sending mail with results at report@fotonower.com args[1349075582] : ('0.03901925911424603',) no score found for photo 1349075582 We are sending mail with results at report@fotonower.com refus_total : 0.03901925911424603 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=21923380 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_P21923380_31-03-2025_20_36_32.pdf results_Auto_P21923380_31-03-2025_20_36_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21923380_31-03-2025_20_36_32.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','21923380','results_Auto_P21923380_31-03-2025_20_36_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21923380_31-03-2025_20_36_32.pdf','pdf','','0.18','0.03901925911424603') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21923380]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582] map_info['map_portfolio_photo'] : {21923380: [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582, 1349075528, 1349075525, 1349075522, 1349075519, 1349075447, 1349075441, 1349075438, 1349075432, 1349075423, 1349075414, 1349075368, 1349075364, 1349075358, 1349075356, 1349075354]} final : False mtd_id 4302 list_pids : [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582] 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, '2710507') ('4302', '21923380', '1349075696', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075691', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075688', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075645', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075642', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075639', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075637', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075635', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075634', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075599', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075596', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075592', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075588', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075586', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075582', None, None, None, None, None, '2710507') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '21923380', '1349075696', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075691', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075688', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075645', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075642', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075639', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075637', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075635', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075634', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075599', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075596', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075592', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075588', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075586', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075582', None, None, None, None, None, '2710507')] time used for this insertion : 0.016624927520751953 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.952345371246338 time spend to save output : 0.017009973526000977 total time spend for step 4 : 2.969355344772339 step5:split_time_score Mon Mar 31 20:36:35 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 : ['21923380'] 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 : [('21923380',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21923380) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349075688: {'path': 'temp/1743446192_865045_1349075688_ad982810344ba66cfedb3e11361afb95.jpg', 'extension': 'jpg'}, 1349075691: {'path': 'temp/1743446192_865045_1349075691_7f7d77e0036592b92d4b0692733c8e43.jpg', 'extension': 'jpg'}, 1349075696: {'path': 'temp/1743446192_865045_1349075696_c1368db9cf7e9298a8ea953a028a0111.jpg', 'extension': 'jpg'}, 1349075596: {'path': 'temp/1743446192_865045_1349075596_a256150b5d1d069f85e4036843e36524.jpg', 'extension': 'jpg'}, 1349075599: {'path': 'temp/1743446192_865045_1349075599_8d427e7bc423962f1f2d76d814b5395e.jpg', 'extension': 'jpg'}, 1349075634: {'path': 'temp/1743446192_865045_1349075634_a7ae5c2df8f6cc2fa2a1ae902d0e200f.jpg', 'extension': 'jpg'}, 1349075635: {'path': 'temp/1743446192_865045_1349075635_e10306aa365e28d48be489f9f4345c1b.jpg', 'extension': 'jpg'}, 1349075582: {'path': 'temp/1743446192_865045_1349075582_acfe3127225f51ba60b4df8f3c55a243.jpg', 'extension': 'jpg'}, 1349075586: {'path': 'temp/1743446192_865045_1349075586_3e5cd49865c91cad52060925b6621e1f.jpg', 'extension': 'jpg'}, 1349075588: {'path': 'temp/1743446192_865045_1349075588_85e7ffe289ed2206cad23359f5d02f99.jpg', 'extension': 'jpg'}, 1349075592: {'path': 'temp/1743446192_865045_1349075592_01864262183348c341b0178fb5a29e82.jpg', 'extension': 'jpg'}, 1349075637: {'path': 'temp/1743446192_865045_1349075637_792d389304e80d41e12709e953132d17.jpg', 'extension': 'jpg'}, 1349075639: {'path': 'temp/1743446192_865045_1349075639_379b64d397e3f293e4485d00687aff71.jpg', 'extension': 'jpg'}, 1349075642: {'path': 'temp/1743446192_865045_1349075642_645b7f1dfe808b0d6b2fc1a46d6dbf31.jpg', 'extension': 'jpg'}, 1349075645: {'path': 'temp/1743446192_865045_1349075645_9fcef908f3373417ddd1c693adec7dc1.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 = 21923380; (('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 = 21923380 group by h (('20', 30),) 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=21923380 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 (21923380) 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 (21923380) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31032025 21923380 Nombre de photos uploadées : 30 / 23040 (0%) 31032025 21923380 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 31032025 21923380 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1349075368, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/4e14a7cd127385fc4af56e1a684090fe.jpg', 'username': None, 'uploaded_at': 1743445867, 'text': 'image_31032025_20_30_04_10136.jpg'}, {'photo_id': 1349075364, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b197f7bdee55bd1e3c7c1112c12b2355.jpg', 'username': None, 'uploaded_at': 1743445867, 'text': 'image_31032025_20_30_14_9123.jpg'}, {'photo_id': 1349075358, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/bae89358082b7a810960091e0dbd1507.jpg', 'username': None, 'uploaded_at': 1743445867, 'text': 'image_31032025_20_30_24_10135.jpg'}, {'photo_id': 1349075356, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/1886e3f9df938f2a269855aff577b2bd.jpg', 'username': None, 'uploaded_at': 1743445867, 'text': 'image_31032025_20_30_34_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 5.245208740234375e-06 elapsed_time : order_list_meta_photo_and_scores 2.0742416381835938e-05 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028133392333984375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21923380, '2025-03-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1702716,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026946544647216797 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= 1702716 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1702716, 'dashboard_run_id': 1712478, 'mtr_portfolio_id': 21921325, 'dashboard_result_id': 9770570, '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_P21921325_31-03-2025_20_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21921328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21921329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21921330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21921331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21921332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21921333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21921334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21921335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21921336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21921337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21921338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21921339, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1712478, 'mtr_portfolio_id': 21922020, 'dashboard_result_id': 9770571, '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_P21922020_31-03-2025_20_19_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21922024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21922025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21922026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21922027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21922028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21922029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21922030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21922031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21922032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21922033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21922034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21922035, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1712478, 'mtr_portfolio_id': 21922748, 'dashboard_result_id': 9770572, '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_P21922748_31-03-2025_20_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21922753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21922754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21922755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21922756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21922757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21922758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21922759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21922760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21922761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21922762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21922763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21922764, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1712478, 'mtr_portfolio_id': 21923380, 'dashboard_result_id': 9770573, '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_P21923380_31-03-2025_20_35_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21923395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21923396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21923397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21923398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21923399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21923400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21923401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21923402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21923403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21923404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21923405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21923406, '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 = 21921325 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': 2710338, 'mtr_portfolio_id': 21921325, 'created_at': datetime.datetime(2025, 3, 31, 20, 2, 58), 'result': '0.03905935403756122', 'result_long': None, 'result_double': None}] Qualite : 0.03905935403756122 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21921325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21921325_31-03-2025_20_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21921325 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_P21921325_31-03-2025_20_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21921328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21921329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21921330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21921331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21921332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21921333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21921334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21921335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21921336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21921337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21921338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21921339, 'pht': 3726}}" where mtr_portfolio_id = 21921325 and dashboard_run_id = 1712478 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`=21921325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9770570, 0.03905935403756122, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21921325_31-03-2025_20_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21921328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21921329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21921330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21921331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21921332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21921333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21921334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21921335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21921336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21921337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21921338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21921339, '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 = 21922020 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': 2710400, 'mtr_portfolio_id': 21922020, 'created_at': datetime.datetime(2025, 3, 31, 20, 18, 59), 'result': '0.046184011133238764', 'result_long': None, 'result_double': None}] Qualite : 0.046184011133238764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21922020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21922020_31-03-2025_20_19_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21922020 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_P21922020_31-03-2025_20_19_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21922024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21922025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21922026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21922027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21922028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21922029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21922030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21922031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21922032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21922033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21922034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21922035, 'pht': 3726}}" where mtr_portfolio_id = 21922020 and dashboard_run_id = 1712478 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`=21922020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9770571, 0.046184011133238764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21922020_31-03-2025_20_19_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21922024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21922025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21922026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21922027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21922028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21922029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21922030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21922031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21922032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21922033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21922034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21922035, '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 = 21922748 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': 2710451, 'mtr_portfolio_id': 21922748, 'created_at': datetime.datetime(2025, 3, 31, 20, 33, 3), 'result': '0.060548517491046984', 'result_long': None, 'result_double': None}] Qualite : 0.060548517491046984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21922748 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21922748_31-03-2025_20_33_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21922748 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_P21922748_31-03-2025_20_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21922753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21922754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21922755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21922756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21922757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21922758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21922759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21922760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21922761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21922762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21922763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21922764, 'pht': 3726}}" where mtr_portfolio_id = 21922748 and dashboard_run_id = 1712478 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`=21922748 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9770572, 0.060548517491046984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21922748_31-03-2025_20_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21922753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21922754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21922755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21922756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21922757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21922758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21922759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21922760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21922761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21922762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21922763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21922764, '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 = 21923380 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': 2710507, 'mtr_portfolio_id': 21923380, 'created_at': datetime.datetime(2025, 3, 31, 20, 36, 31), 'result': '0.03901925911424603', 'result_long': None, 'result_double': None}] Qualite : 0.03901925911424603 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21923380 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21923380_31-03-2025_20_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21923380 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_P21923380_31-03-2025_20_36_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21923395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21923396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21923397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21923398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21923399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21923400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21923401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21923402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21923403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21923404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21923405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21923406, 'pht': 3726}}" where mtr_portfolio_id = 21923380 and dashboard_run_id = 1712478 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`=21923380 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9770573, 0.03901925911424603, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21923380_31-03-2025_20_36_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21923395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21923396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21923397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21923398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21923399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21923400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21923401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21923402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21923403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21923404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21923405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21923406, '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 (21921325,21922020,21922748,21923380) result : ((1349067518,), (1349067524,), (1349067528,), (1349067532,), (1349067536,), (1349067675,), (1349067678,), (1349067690,), (1349067700,), (1349067711,), (1349067840,), (1349067874,), (1349067892,), (1349067920,), (1349067946,), (1349068230,), (1349068260,), (1349068290,), (1349068320,), (1349068348,), (1349068385,), (1349068413,), (1349068420,), (1349068434,), (1349068506,), (1349068509,), (1349068517,), (1349068523,), (1349068532,), (1349068565,), (1349068584,), (1349068588,), (1349068592,), (1349068598,), (1349068705,), (1349068710,), (1349068714,), (1349068718,), (1349068750,), (1349068752,), (1349068755,), (1349068760,), (1349068762,), (1349068767,), (1349068791,), (1349068794,), (1349068797,), (1349068801,), (1349068806,), (1349068841,), (1349068843,), (1349068846,), (1349068849,), (1349068855,), (1349069072,), (1349069091,), (1349069097,), (1349069100,), (1349069106,), (1349069128,), (1349069533,), (1349069567,), (1349069598,), (1349069905,), (1349069937,), (1349069973,), (1349070008,), (1349070469,), (1349070401,), (1349070432,), (1349070709,), (1349070735,), (1349070767,), (1349070804,), (1349070824,), (1349070829,), (1349070949,), (1349070956,), (1349070968,), (1349070972,), (1349070999,), (1349071005,), (1349071098,), (1349071137,), (1349071146,), (1349071153,), (1349071196,), (1349071290,), (1349071294,), (1349071297,), (1349071317,), (1349071322,), (1349071327,), (1349071370,), (1349071379,), (1349071388,), (1349071393,), (1349071397,), (1349071401,), (1349071444,), (1349071448,), (1349071452,), (1349071519,), (1349071526,), (1349071530,), (1349071534,), (1349071538,), (1349071541,), (1349071584,), (1349071592,), (1349071594,), (1349071660,), (1349071675,), (1349071688,), (1349071699,), (1349071702,), (1349071994,), (1349072026,), (1349072482,), (1349072520,), (1349072535,), (1349072542,), (1349072662,), (1349072667,), (1349072669,), (1349072671,), (1349072673,), (1349072883,), (1349072887,), (1349072892,), (1349073010,), (1349073016,), (1349073021,), (1349073043,), (1349073064,), (1349073803,), (1349073391,), (1349073417,), (1349073446,), (1349073502,), (1349073553,), (1349073871,), (1349073876,), (1349074027,), (1349074041,), (1349074044,), (1349074052,), (1349074059,), (1349074062,), (1349074208,), (1349074237,), (1349074260,), (1349074283,), (1349074309,), (1349074317,), (1349074455,), (1349074475,), (1349074478,), (1349074534,), (1349074543,), (1349074547,), (1349074550,), (1349074580,), (1349074625,), (1349074730,), (1349074734,), (1349074738,), (1349074741,), (1349074745,), (1349074805,), (1349074807,), (1349074817,), (1349074853,), (1349074858,), (1349074862,), (1349074872,), (1349074877,), (1349074881,), (1349074908,), (1349074913,), (1349074916,), (1349074919,), (1349074921,), (1349074973,), (1349075011,), (1349075023,), (1349075081,), (1349075083,), (1349075085,), (1349075087,), (1349075092,), (1349075128,), (1349075132,), (1349075136,), (1349075142,), (1349075201,), (1349075204,), (1349075205,), (1349075206,), (1349075211,), (1349075214,), (1349075267,), (1349075269,), (1349075271,), (1349075372,), (1349075354,), (1349075356,), (1349075358,), (1349075364,), (1349075368,), (1349075414,), (1349075423,), (1349075432,), (1349075438,), (1349075441,), (1349075447,), (1349075519,), (1349075522,), (1349075525,), (1349075528,), (1349075582,), (1349075586,), (1349075588,), (1349075592,), (1349075596,), (1349075599,), (1349075634,), (1349075635,), (1349075637,), (1349075639,), (1349075642,), (1349075645,), (1349075688,), (1349075691,), (1349075696,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31032025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21923380]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582] map_info['map_portfolio_photo'] : {21923380: [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582, 1349075528, 1349075525, 1349075522, 1349075519, 1349075447, 1349075441, 1349075438, 1349075432, 1349075423, 1349075414, 1349075368, 1349075364, 1349075358, 1349075356, 1349075354]} final : True mtd_id 4302 list_pids : [1349075696, 1349075691, 1349075688, 1349075645, 1349075642, 1349075639, 1349075637, 1349075635, 1349075634, 1349075599, 1349075596, 1349075592, 1349075588, 1349075586, 1349075582] Looping around the photos to save general results len do output : 1 /21923380Didn'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, '2710507') ('4302', '21923380', '1349075696', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075691', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075688', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075645', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075642', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075639', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075637', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075635', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075634', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075599', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075596', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075592', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075588', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075586', None, None, None, None, None, '2710507') ('4302', None, None, None, None, None, None, None, '2710507') ('4302', '21923380', '1349075582', None, None, None, None, None, '2710507') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21923380', 'None', None, None, None, None, '2710507'), ('4302', '21923380', '1349075696', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075691', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075688', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075645', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075642', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075639', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075637', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075635', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075634', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075599', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075596', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075592', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075588', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075586', None, None, None, None, None, '2710507'), ('4302', '21923380', '1349075582', None, None, None, None, None, '2710507')] time used for this insertion : 0.014893293380737305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35399389266967773 time spend to save output : 0.015316963195800781 total time spend for step 5 : 0.3693108558654785 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 (2710507) 2.55user 1.69system 0:10.18elapsed 41%CPU (0avgtext+0avgdata 157888maxresident)k 20704inputs+10888outputs (95major+85009minor)pagefaults 0swaps