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 : 1918350 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 (3482293) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3482293) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805766 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3482293'] with mtr_portfolio_ids : ['25805766'] and first list_photo_ids : [] new path : /proc/1918350/ Name: python3 Umask: 0002 State: R (running) Tgid: 1918350 Ngid: 0 Pid: 1918350 PPid: 1918349 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1918350 NSpid: 1918350 NSpgid: 1915750 NSsid: 1915750 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99520 kB VmRSS: 99520 kB RssAnon: 59808 kB RssFile: 39712 kB RssShmem: 0 kB VmData: 865716 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 54 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1918350', 'Ngid': '0', 'Pid': '1918350', 'PPid': '1918349', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1918350', 'NSpid': '1918350', 'NSpgid': '1915750', 'NSsid': '1915750', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99520 kB', 'VmRSS': '99520 kB', 'RssAnon': '59808 kB', 'RssFile': '39712 kB', 'RssShmem': '0 kB', 'VmData': '865716 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '54', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '1918350', '1106964', '0', '1106964', '865716', '99520', b'', 'marlene', '3482293') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou 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 List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25805766) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (3482293 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25805766) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1375808988, 'portfolio_id': 25805766}, {'photo_id': 1375808986, 'portfolio_id': 25805766}, {'photo_id': 1375808957, 'portfolio_id': 25805766}, {'photo_id': 1375808953, 'portfolio_id': 25805766}, {'photo_id': 1375808950, 'portfolio_id': 25805766}, {'photo_id': 1375808946, 'portfolio_id': 25805766}, {'photo_id': 1375808942, 'portfolio_id': 25805766}, {'photo_id': 1375808938, 'portfolio_id': 25805766}, {'photo_id': 1375808931, 'portfolio_id': 25805766}, {'photo_id': 1375808929, 'portfolio_id': 25805766}, {'photo_id': 1375808927, 'portfolio_id': 25805766}, {'photo_id': 1375808925, 'portfolio_id': 25805766}, {'photo_id': 1375808921, 'portfolio_id': 25805766}, {'photo_id': 1375808919, 'portfolio_id': 25805766}, {'photo_id': 1375808906, 'portfolio_id': 25805766}, {'photo_id': 1375808902, 'portfolio_id': 25805766}, {'photo_id': 1375808896, 'portfolio_id': 25805766}, {'photo_id': 1375808890, 'portfolio_id': 25805766}, {'photo_id': 1375808886, 'portfolio_id': 25805766}, {'photo_id': 1375808884, 'portfolio_id': 25805766}, {'photo_id': 1375808857, 'portfolio_id': 25805766}, {'photo_id': 1375808854, 'portfolio_id': 25805766}, {'photo_id': 1375808852, 'portfolio_id': 25805766}, {'photo_id': 1375808849, 'portfolio_id': 25805766}, {'photo_id': 1375808847, 'portfolio_id': 25805766}, {'photo_id': 1375808844, 'portfolio_id': 25805766}, {'photo_id': 1375808804, 'portfolio_id': 25805766}, {'photo_id': 1375808786, 'portfolio_id': 25805766}, {'photo_id': 1375808782, 'portfolio_id': 25805766}, {'photo_id': 1375808779, 'portfolio_id': 25805766}, {'photo_id': 1375808776, 'portfolio_id': 25805766}, {'photo_id': 1375808772, 'portfolio_id': 25805766}, {'photo_id': 1375808763, 'portfolio_id': 25805766}, {'photo_id': 1375808744, 'portfolio_id': 25805766}, {'photo_id': 1375808742, 'portfolio_id': 25805766}, {'photo_id': 1375808739, 'portfolio_id': 25805766}, {'photo_id': 1375808736, 'portfolio_id': 25805766}, {'photo_id': 1375808663, 'portfolio_id': 25805766}, {'photo_id': 1375808659, 'portfolio_id': 25805766}, {'photo_id': 1375808656, 'portfolio_id': 25805766}, {'photo_id': 1375808653, 'portfolio_id': 25805766}, {'photo_id': 1375808652, 'portfolio_id': 25805766}, {'photo_id': 1375808647, 'portfolio_id': 25805766}, {'photo_id': 1375808587, 'portfolio_id': 25805766}, {'photo_id': 1375808585, 'portfolio_id': 25805766}, {'photo_id': 1375808581, 'portfolio_id': 25805766}, {'photo_id': 1375808578, 'portfolio_id': 25805766}, {'photo_id': 1375808563, 'portfolio_id': 25805766}, {'photo_id': 1375808561, 'portfolio_id': 25805766}, {'photo_id': 1375808560, 'portfolio_id': 25805766}, {'photo_id': 1375808558, 'portfolio_id': 25805766}, {'photo_id': 1375808556, 'portfolio_id': 25805766}, {'photo_id': 1375808555, 'portfolio_id': 25805766}, {'photo_id': 1375808528, 'portfolio_id': 25805766}, {'photo_id': 1375808527, 'portfolio_id': 25805766}, {'photo_id': 1375808523, 'portfolio_id': 25805766}, {'photo_id': 1375808516, 'portfolio_id': 25805766}, {'photo_id': 1375808498, 'portfolio_id': 25805766}, {'photo_id': 1375808472, 'portfolio_id': 25805766}, {'photo_id': 1375808426, 'portfolio_id': 25805766}, {'photo_id': 1375808424, 'portfolio_id': 25805766}, {'photo_id': 1375808422, 'portfolio_id': 25805766}, {'photo_id': 1375808412, 'portfolio_id': 25805766}, {'photo_id': 1375808391, 'portfolio_id': 25805766}, {'photo_id': 1375808370, 'portfolio_id': 25805766}, {'photo_id': 1375808229, 'portfolio_id': 25805766}, {'photo_id': 1375808178, 'portfolio_id': 25805766}, {'photo_id': 1375808137, 'portfolio_id': 25805766}, {'photo_id': 1375808107, 'portfolio_id': 25805766}, {'photo_id': 1375808047, 'portfolio_id': 25805766}, {'photo_id': 1375807983, 'portfolio_id': 25805766}, {'photo_id': 1375807651, 'portfolio_id': 25805766}, {'photo_id': 1375807622, 'portfolio_id': 25805766}, {'photo_id': 1375807584, 'portfolio_id': 25805766}, {'photo_id': 1375807555, 'portfolio_id': 25805766}, {'photo_id': 1375807532, 'portfolio_id': 25805766}, {'photo_id': 1375807502, 'portfolio_id': 25805766}, {'photo_id': 1375806749, 'portfolio_id': 25805766}, {'photo_id': 1375806680, 'portfolio_id': 25805766}, {'photo_id': 1375806608, 'portfolio_id': 25805766}, {'photo_id': 1375806539, 'portfolio_id': 25805766}] map_portfolio_id_photo_id: {25805766: [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884, 1375808857, 1375808854, 1375808852, 1375808849, 1375808847, 1375808844, 1375808804, 1375808786, 1375808782, 1375808779, 1375808776, 1375808772, 1375808763, 1375808744, 1375808742, 1375808739, 1375808736, 1375808663, 1375808659, 1375808656, 1375808653, 1375808652, 1375808647, 1375808587, 1375808585, 1375808581, 1375808578, 1375808563, 1375808561, 1375808560, 1375808558, 1375808556, 1375808555, 1375808528, 1375808527, 1375808523, 1375808516, 1375808498, 1375808472, 1375808426, 1375808424, 1375808422, 1375808412, 1375808391, 1375808370, 1375808229, 1375808178, 1375808137, 1375808107, 1375808047, 1375807983, 1375807651, 1375807622, 1375807584, 1375807555, 1375807532, 1375807502, 1375806749, 1375806680, 1375806608, 1375806539]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.015681743621826172 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Aug 8 07:14:58 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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25805766) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 25805766 get user id for portfolio 25805766 get sub ptf for main ptf 25805766, type 3726 and hashtags ['cartonnette', 'Carton_brun', 'autre_refus', 'metal', 'plastique', 'Teint_Dans_La_Masse', 'kraft', 'mal_croppe', 'flou', 'environnement', 'papier', 'Carton_gris'] 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`=25805766 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','autre_refus','metal','plastique','Teint_Dans_La_Masse','kraft','mal_croppe','flou','environnement','papier','Carton_gris')) 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`=25805766 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','autre_refus','metal','plastique','Teint_Dans_La_Masse','kraft','mal_croppe','flou','environnement','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25805766, 'sub_port_id': 25805801, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390869, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'metal': {'main_port_id': 25805766, 'sub_port_id': 25805802, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390870, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'mal_croppe': {'main_port_id': 25805766, 'sub_port_id': 25805803, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390871, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'Carton_gris': {'main_port_id': 25805766, 'sub_port_id': 25805804, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390872, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'plastique': {'main_port_id': 25805766, 'sub_port_id': 25805805, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390873, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'cartonnette': {'main_port_id': 25805766, 'sub_port_id': 25805807, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390874, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'papier': {'main_port_id': 25805766, 'sub_port_id': 25805808, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390875, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'flou': {'main_port_id': 25805766, 'sub_port_id': 25805809, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390876, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'kraft': {'main_port_id': 25805766, 'sub_port_id': 25805810, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390877, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 25805766, 'sub_port_id': 25805811, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390878, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'autre_refus': {'main_port_id': 25805766, 'sub_port_id': 25805812, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390879, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}, 'Carton_brun': {'main_port_id': 25805766, 'sub_port_id': 25805813, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390880, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25805801 , 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=25805766 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 (25805801) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805802 , 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=25805766 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 (25805802) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805803 , 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=25805766 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 (25805803) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805804 , 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=25805766 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 (25805804) result : ((1375808768,), (1375808769,), (1375808770,), (1375808875,), (1375808877,), (1375808923,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805805 , 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=25805766 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='plastique' 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 (25805805) result : ((1375808773,), (1375808882,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805807 , 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=25805766 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 (25805807) result : ((1375808879,), (1375808880,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805808 , 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=25805766 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 (25805808) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805809 , 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=25805766 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 (25805809) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805810 , 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=25805766 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 (25805810) result : ((1375808774,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805811 , 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=25805766 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 (25805811) result : ((1375808760,), (1375808761,), (1375808762,), (1375808868,), (1375808869,), (1375808870,), (1375808871,), (1375808872,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805812 , 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=25805766 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 (25805812) result : ((1375808764,), (1375808765,), (1375808766,), (1375808873,), (1375808874,), (1375808985,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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 25805813 , 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=25805766 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 (25805813) result : ((1375808771,), (1375808881,), (1375808924,), (1375808987,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25805766) result : ((1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) 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`=25805766 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','autre_refus','metal','plastique','Teint_Dans_La_Masse','kraft','mal_croppe','flou','environnement','papier','Carton_gris')) 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`=25805766 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','autre_refus','metal','plastique','Teint_Dans_La_Masse','kraft','mal_croppe','flou','environnement','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25805766, 'sub_port_id': 25805816, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390881, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'metal': {'main_port_id': 25805766, 'sub_port_id': 25805817, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390882, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'mal_croppe': {'main_port_id': 25805766, 'sub_port_id': 25805818, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390883, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'Carton_gris': {'main_port_id': 25805766, 'sub_port_id': 25805819, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390884, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'plastique': {'main_port_id': 25805766, 'sub_port_id': 25805820, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390885, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'cartonnette': {'main_port_id': 25805766, 'sub_port_id': 25805821, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390886, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'papier': {'main_port_id': 25805766, 'sub_port_id': 25805822, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390887, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'flou': {'main_port_id': 25805766, 'sub_port_id': 25805823, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390888, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'kraft': {'main_port_id': 25805766, 'sub_port_id': 25805824, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390889, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25805766, 'sub_port_id': 25805825, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390890, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'autre_refus': {'main_port_id': 25805766, 'sub_port_id': 25805826, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390891, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}, 'Carton_brun': {'main_port_id': 25805766, 'sub_port_id': 25805827, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17390892, 'last_updated_at': datetime.datetime(2025, 8, 8, 7, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 7, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 7, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805816,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805801 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805817,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805802 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805818,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805803 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805819,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805804 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805820,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805805 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805821,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805807 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805822,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805808 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805823,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805809 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805824,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805825,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805811 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805826,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805812 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25805827,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25805813 lien utilise dans velours : https://www.fotonower.com/velours/25805816,25805817,25805818,25805819,25805820,25805821,25805822,25805823,25805824,25805825,25805826,25805827?tags=environnement,metal,mal_croppe,Carton_gris,plastique,cartonnette,papier,flou,kraft,Teint_Dans_La_Masse,autre_refus,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25805766]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884] map_info['map_portfolio_photo'] : {25805766: [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884, 1375808857, 1375808854, 1375808852, 1375808849, 1375808847, 1375808844, 1375808804, 1375808786, 1375808782, 1375808779, 1375808776, 1375808772, 1375808763, 1375808744, 1375808742, 1375808739, 1375808736, 1375808663, 1375808659, 1375808656, 1375808653, 1375808652, 1375808647, 1375808587, 1375808585, 1375808581, 1375808578, 1375808563, 1375808561, 1375808560, 1375808558, 1375808556, 1375808555, 1375808528, 1375808527, 1375808523, 1375808516, 1375808498, 1375808472, 1375808426, 1375808424, 1375808422, 1375808412, 1375808391, 1375808370, 1375808229, 1375808178, 1375808137, 1375808107, 1375808047, 1375807983, 1375807651, 1375807622, 1375807584, 1375807555, 1375807532, 1375807502, 1375806749, 1375806680, 1375806608, 1375806539]} final : False mtd_id 4302 list_pids : [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884] Looping around the photos to save general results len do output : 1 /25805766. 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, '3482293') ('4302', '25805766', '1375808988', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808986', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808957', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808953', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808950', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808946', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808942', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808938', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808931', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808929', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808927', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808925', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808921', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808919', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808906', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808902', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808896', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808890', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808886', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808884', None, None, None, None, None, '3482293') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '25805766', "{'environnement': 25805801, 'metal': 25805802, 'mal_croppe': 25805803, 'Carton_gris': 25805804, 'plastique': 25805805, 'cartonnette': 25805807, 'papier': 25805808, 'flou': 25805809, 'kraft': 25805810, 'Teint_Dans_La_Masse': 25805811, 'autre_refus': 25805812, 'Carton_brun': 25805813}", None, None, None, None, '3482293'), ('4302', '25805766', '1375808988', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808986', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808957', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808953', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808950', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808946', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808942', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808938', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808931', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808929', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808927', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808925', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808921', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808919', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808906', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808902', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808896', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808890', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808886', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808884', None, None, None, None, None, '3482293')] time used for this insertion : 0.03477811813354492 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5835819244384766 time spend to save output : 0.03516983985900879 total time spend for step 1 : 1.6187517642974854 step2:final Fri Aug 8 07:15:00 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 (25805766) 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 25805766 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1375808528,1375806749,1375806680,1375808527,1375806608,1375808426,1375807651,1375807622,1375806539,1375808424,1375807584,1375808422,1375807555,1375808412,1375807532,1375808391,1375808370,1375807502,1375808229,1375808178,1375808137,1375808107,1375808047,1375807983,1375808523,1375808516,1375808498,1375808472,1375808563,1375808561,1375808560,1375808558,1375808556,1375808555,1375808587,1375808585,1375808581,1375808578,1375808663,1375808659,1375808656,1375808653,1375808652,1375808647,1375808744,1375808742,1375808739,1375808736,1375808786,1375808782,1375808779,1375808776,1375808772,1375808763,1375808988,1375808986,1375808804,1375808957,1375808931,1375808857,1375808929,1375808854,1375808927,1375808852,1375808925,1375808921,1375808849,1375808919,1375808847,1375808906,1375808844,1375808902,1375808896,1375808890,1375808886,1375808884,1375808953,1375808950,1375808946,1375808942,1375808938); 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([25805766]) Inside saveOutput : final : False verbose : True original output for save of step final : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} new output for save of step final : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884] map_info['map_portfolio_photo'] : {25805766: [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884, 1375808857, 1375808854, 1375808852, 1375808849, 1375808847, 1375808844, 1375808804, 1375808786, 1375808782, 1375808779, 1375808776, 1375808772, 1375808763, 1375808744, 1375808742, 1375808739, 1375808736, 1375808663, 1375808659, 1375808656, 1375808653, 1375808652, 1375808647, 1375808587, 1375808585, 1375808581, 1375808578, 1375808563, 1375808561, 1375808560, 1375808558, 1375808556, 1375808555, 1375808528, 1375808527, 1375808523, 1375808516, 1375808498, 1375808472, 1375808426, 1375808424, 1375808422, 1375808412, 1375808391, 1375808370, 1375808229, 1375808178, 1375808137, 1375808107, 1375808047, 1375807983, 1375807651, 1375807622, 1375807584, 1375807555, 1375807532, 1375807502, 1375806749, 1375806680, 1375806608, 1375806539]} final : False mtd_id 4302 list_pids : [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884] Looping around the photos to save general results len do output : 20 /1375808988.Didn't retrieve data . /1375808986.Didn't retrieve data . /1375808957.Didn't retrieve data . /1375808953.Didn't retrieve data . /1375808950.Didn't retrieve data . /1375808946.Didn't retrieve data . /1375808942.Didn't retrieve data . /1375808938.Didn't retrieve data . /1375808931.Didn't retrieve data . /1375808929.Didn't retrieve data . /1375808927.Didn't retrieve data . /1375808925.Didn't retrieve data . /1375808921.Didn't retrieve data . /1375808919.Didn't retrieve data . /1375808906.Didn't retrieve data . /1375808902.Didn't retrieve data . /1375808896.Didn't retrieve data . /1375808890.Didn't retrieve data . /1375808886.Didn't retrieve data . /1375808884.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, '3482293') ('4302', '25805766', '1375808988', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808986', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808957', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808953', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808950', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808946', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808942', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808938', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808931', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808929', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808927', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808925', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808921', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808919', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808906', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808902', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808896', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808890', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808886', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808884', None, None, None, None, None, '3482293') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 60 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', '25805766', '1375808988', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808986', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808957', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808953', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808950', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808946', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808942', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808938', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808931', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808929', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808927', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808925', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808921', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808919', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808906', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808902', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808896', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808890', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808886', '0.04272686105656651', None, None, None, None, '3482293'), ('4302', '25805766', '1375808884', '0.04272686105656651', None, None, None, None, '3482293')] time used for this insertion : 0.025635480880737305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07672691345214844 time spend to save output : 0.026568889617919922 total time spend for step 2 : 0.10329580307006836 step3:velours_tree Fri Aug 8 07:15:00 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 : {25805766: [{'environnement': 25805801, 'metal': 25805802, 'mal_croppe': 25805803, 'Carton_gris': 25805804, 'plastique': 25805805, 'cartonnette': 25805807, 'papier': 25805808, 'flou': 25805809, 'kraft': 25805810, 'Teint_Dans_La_Masse': 25805811, 'autre_refus': 25805812, 'Carton_brun': 25805813}]} input_args_next_step : {25805766: ()} output_args : {25805766: [{'environnement': 25805801, 'metal': 25805802, 'mal_croppe': 25805803, 'Carton_gris': 25805804, 'plastique': 25805805, 'cartonnette': 25805807, 'papier': 25805808, 'flou': 25805809, 'kraft': 25805810, 'Teint_Dans_La_Masse': 25805811, 'autre_refus': 25805812, 'Carton_brun': 25805813}]} args : 25805766 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 : ({'environnement': 25805801, 'metal': 25805802, 'mal_croppe': 25805803, 'Carton_gris': 25805804, 'plastique': 25805805, 'cartonnette': 25805807, 'papier': 25805808, 'flou': 25805809, 'kraft': 25805810, 'Teint_Dans_La_Masse': 25805811, 'autre_refus': 25805812, 'Carton_brun': 25805813},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25805766) 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([25805766]) 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.29509782791137695 time spend to save output : 4.363059997558594e-05 total time spend for step 3 : 0.29514145851135254 step4:send_mail_cod Fri Aug 8 07:15:00 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 : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} input_args_next_step : {1375808988: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808988 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808986 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808957 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808953 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808950 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808946 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808942 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808938 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808931 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808929 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808927 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808925 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808921 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808919 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808906 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808902 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808896 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808890 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808886 depend.output_id : 0 input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ()} output_args : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',)} args : 1375808884 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 : {25805766: [{'environnement': 25805801, 'metal': 25805802, 'mal_croppe': 25805803, 'Carton_gris': 25805804, 'plastique': 25805805, 'cartonnette': 25805807, 'papier': 25805808, 'flou': 25805809, 'kraft': 25805810, 'Teint_Dans_La_Masse': 25805811, 'autre_refus': 25805812, 'Carton_brun': 25805813}]} input_args_next_step : {1375808988: ('0.04272686105656651',), 1375808986: ('0.04272686105656651',), 1375808957: ('0.04272686105656651',), 1375808953: ('0.04272686105656651',), 1375808950: ('0.04272686105656651',), 1375808946: ('0.04272686105656651',), 1375808942: ('0.04272686105656651',), 1375808938: ('0.04272686105656651',), 1375808931: ('0.04272686105656651',), 1375808929: ('0.04272686105656651',), 1375808927: ('0.04272686105656651',), 1375808925: ('0.04272686105656651',), 1375808921: ('0.04272686105656651',), 1375808919: ('0.04272686105656651',), 1375808906: ('0.04272686105656651',), 1375808902: ('0.04272686105656651',), 1375808896: ('0.04272686105656651',), 1375808890: ('0.04272686105656651',), 1375808886: ('0.04272686105656651',), 1375808884: ('0.04272686105656651',), 25805766: ()} output_args : {25805766: [{'environnement': 25805801, 'metal': 25805802, 'mal_croppe': 25805803, 'Carton_gris': 25805804, 'plastique': 25805805, 'cartonnette': 25805807, 'papier': 25805808, 'flou': 25805809, 'kraft': 25805810, 'Teint_Dans_La_Masse': 25805811, 'autre_refus': 25805812, 'Carton_brun': 25805813}]} args : 25805766 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 :21, first value : ('0.04272686105656651',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25805766) 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 (1375808988,1375808986,1375808957,1375808953,1375808950,1375808946,1375808942,1375808938,1375808931,1375808929,1375808927,1375808925,1375808921,1375808919,1375808906,1375808902,1375808896,1375808890,1375808886,1375808884) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1375808884 begin to download photo : 1375808906 begin to download photo : 1375808929 begin to download photo : 1375808950 download finish for photo 1375808929 begin to download photo : 1375808931 download finish for photo 1375808906 begin to download photo : 1375808919 download finish for photo 1375808950 begin to download photo : 1375808953 download finish for photo 1375808884 begin to download photo : 1375808886 download finish for photo 1375808931 begin to download photo : 1375808938 download finish for photo 1375808919 begin to download photo : 1375808921 download finish for photo 1375808886 begin to download photo : 1375808890 download finish for photo 1375808938 begin to download photo : 1375808942 download finish for photo 1375808921 begin to download photo : 1375808925 download finish for photo 1375808890 begin to download photo : 1375808896 download finish for photo 1375808953 begin to download photo : 1375808957 download finish for photo 1375808942 begin to download photo : 1375808946 download finish for photo 1375808925 begin to download photo : 1375808927 download finish for photo 1375808896 begin to download photo : 1375808902 download finish for photo 1375808957 begin to download photo : 1375808986 download finish for photo 1375808946 download finish for photo 1375808927 download finish for photo 1375808902 download finish for photo 1375808986 begin to download photo : 1375808988 download finish for photo 1375808988 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette258058021754630101/ imagette258058031754630101/ length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P25805766_08-08-2025_07_15_01.pdf 25805802 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=25805802 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258058021754630101 25805803 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=25805803 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258058031754630101 25805805 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=25805805 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375808773: '1754629706_2918473_1375807983_4ec1ec14d80aa22df6d67c3103b22bb6_rle_crop_3906827408_0.png', 1375808882: '1754629885_2920852_1375808561_0bab2cb89a13c9c869db2d1430cb51dc_rle_crop_3906831799_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/685813f933180a5988691ae49dea00ac_20975969.png change filename to text .imagette258058051754630101/ imagette258058051754630101/1754629885_2920852_1375808561_0bab2cb89a13c9c869db2d1430cb51dc_rle_crop_3906831799_0.png.png imagette258058051754630101/1754629706_2918473_1375807983_4ec1ec14d80aa22df6d67c3103b22bb6_rle_crop_3906827408_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/0cfd54738ffd11e73a643232fd66b198_45704078.png imagette258058051754630101 25805807 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=25805807 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375808879: '1754629885_2920852_1375808561_0bab2cb89a13c9c869db2d1430cb51dc_rle_crop_3906831797_0.png', 1375808880: '1754629885_2920852_1375808558_7e6536066babbd0317f3df279724054e_rle_crop_3906831826_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/c2307ce20c1103ca8addf89940285fa0_204146.png change filename to text .imagette258058071754630101/ imagette258058071754630101/1754629885_2920852_1375808558_7e6536066babbd0317f3df279724054e_rle_crop_3906831826_0.png.png imagette258058071754630101/1754629885_2920852_1375808561_0bab2cb89a13c9c869db2d1430cb51dc_rle_crop_3906831797_0.png.png imagette258058091754630101/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/323782225aff86072d2fce8da7ff9b16_2454552.png imagette258058071754630101 25805809 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=25805809 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258058091754630101 25805810 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=25805810 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375808774: '1754629706_2918473_1375808178_ddb6e79b206d706379991fd64553fc71_rle_crop_3906827334_0.png'} change filename to text .imagette258058101754630101/ imagette258058101754630101/1754629706_2918473_1375808178_ddb6e79b206d706379991fd64553fc71_rle_crop_3906827334_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/79362553e318c4256792f4a26c55274b_65963327.png imagette258058101754630101 25805812 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=25805812 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375808764: '1754629706_2918473_1375808137_3c0f8107a49ffcca576e0b63cef4ac16_rle_crop_3906827363_0.png', 1375808765: '1754629706_2918473_1375808107_4597101bb19608fdd8a3292320731014_rle_crop_3906827379_0.png', 1375808766: '1754629706_2918473_1375808047_b51031c4fa6799f32daed6a63eb35f79_rle_crop_3906827392_0.png', 1375808873: '1754629885_2920852_1375808561_0bab2cb89a13c9c869db2d1430cb51dc_rle_crop_3906831801_0.png', 1375808874: '1754629885_2920852_1375808561_0bab2cb89a13c9c869db2d1430cb51dc_rle_crop_3906831796_0.png', 1375808985: '1754630005_2926246_1375808581_7c7cd00ed9974baba44005f867132143_rle_crop_3906834367_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/ace6ff038beca13684cb30b72c1170bc_92769751.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/8ad7809b5efa1f115a74677b0ad2d83a_70239022.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/0edc874e73f7070a0a72050a84e272a3_98429252.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/9da9bfa62ccbae2a3afb2d8d5bd002db_92195439.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/699fcefc52469a5f48df98ef0c2e97a8_23749626.png change filename to text .imagette258058121754630101/ imagette258058121754630101/1754629885_2920852_1375808561_0bab2cb89a13c9c869db2d1430cb51dc_rle_crop_3906831801_0.png.png imagette258058121754630101/1754629885_2920852_1375808561_0bab2cb89a13c9c869db2d1430cb51dc_rle_crop_3906831796_0.png.png imagette258058121754630101/1754629706_2918473_1375808047_b51031c4fa6799f32daed6a63eb35f79_rle_crop_3906827392_0.png.png imagette258058121754630101/1754629706_2918473_1375808137_3c0f8107a49ffcca576e0b63cef4ac16_rle_crop_3906827363_0.png.png imagette258058121754630101/1754630005_2926246_1375808581_7c7cd00ed9974baba44005f867132143_rle_crop_3906834367_0.png.png imagette258058121754630101/1754629706_2918473_1375808107_4597101bb19608fdd8a3292320731014_rle_crop_3906827379_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/912b1445731a42a9001448970419537e_46164143.png imagette258058121754630101 25805804 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=25805804 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375808768: '1754629706_2918473_1375808137_3c0f8107a49ffcca576e0b63cef4ac16_rle_crop_3906827355_0.png', 1375808769: '1754629706_2918473_1375808137_3c0f8107a49ffcca576e0b63cef4ac16_rle_crop_3906827365_0.png', 1375808770: '1754629706_2918473_1375808107_4597101bb19608fdd8a3292320731014_rle_crop_3906827376_0.png', 1375808875: '1754629885_2920852_1375808556_c11677cab6dca852c99da5e98db15e2a_rle_crop_3906831837_0.png', 1375808877: '1754629885_2920852_1375808555_d7c83a91a185a94695cb4e5a9e12d60c_rle_crop_3906831856_0.png', 1375808923: '1754629947_2921917_1375808739_207ee319c2e7cce9c65939d15a457222_rle_crop_3906833526_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/62e2a74dff6ca135903113385f29c9af_96552157.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/7d8586de567618d9aaed86bb21b12a38_72727792.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/b311bb20587fa5b0e813bbbda5851406_27441116.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/07ab6e3732cca7dab3862c7c70192074_85061005.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/10732f795d1d3f5587cb481c3a86003c_77058823.png change filename to text .imagette258058041754630102/ imagette258058041754630102/1754629947_2921917_1375808739_207ee319c2e7cce9c65939d15a457222_rle_crop_3906833526_0.png.png imagette258058041754630102/1754629706_2918473_1375808107_4597101bb19608fdd8a3292320731014_rle_crop_3906827376_0.png.png imagette258058041754630102/1754629885_2920852_1375808556_c11677cab6dca852c99da5e98db15e2a_rle_crop_3906831837_0.png.png imagette258058041754630102/1754629706_2918473_1375808137_3c0f8107a49ffcca576e0b63cef4ac16_rle_crop_3906827365_0.png.png imagette258058041754630102/1754629706_2918473_1375808137_3c0f8107a49ffcca576e0b63cef4ac16_rle_crop_3906827355_0.png.png imagette258058041754630102/1754629885_2920852_1375808555_d7c83a91a185a94695cb4e5a9e12d60c_rle_crop_3906831856_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/5a538ce77ea0a4357bad1b3db5646110_42399105.png imagette258058041754630102 25805811 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=25805811 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375808760: '1754629706_2918473_1375808178_ddb6e79b206d706379991fd64553fc71_rle_crop_3906827341_0.png', 1375808761: '1754629706_2918473_1375808178_ddb6e79b206d706379991fd64553fc71_rle_crop_3906827336_0.png', 1375808762: '1754629706_2918473_1375808178_ddb6e79b206d706379991fd64553fc71_rle_crop_3906827343_0.png', 1375808868: '1754629885_2920852_1375808561_0bab2cb89a13c9c869db2d1430cb51dc_rle_crop_3906831804_0.png', 1375808869: '1754629885_2920852_1375808560_927115000b4268dbc2eb45132e204e4d_rle_crop_3906831817_0.png', 1375808870: '1754629885_2920852_1375808560_927115000b4268dbc2eb45132e204e4d_rle_crop_3906831814_0.png', 1375808871: '1754629885_2920852_1375808560_927115000b4268dbc2eb45132e204e4d_rle_crop_3906831818_0.png', 1375808872: '1754629885_2920852_1375808556_c11677cab6dca852c99da5e98db15e2a_rle_crop_3906831840_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/59eb58738fa1449cf5b8c93dfd748f79_56149491.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/7f3fdbab65aa70ae5721b8aea8758cf3_10989288.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/713e11b9b863118523b4128a6d330625_28908406.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/b3bf28293bacfe17df9b4db380ebf984_91228636.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/32f9e233087173d5d4b974b69305bdad_87230295.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/28c15da1a8ae5a79cdaffc98fe851c74_32274546.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/9c14889fd1b0529c014f1c9dead1c623_51694756.png change filename to text .imagette258058111754630102/ imagette258058111754630102/1754629885_2920852_1375808560_927115000b4268dbc2eb45132e204e4d_rle_crop_3906831814_0.png.png imagette258058111754630102/1754629706_2918473_1375808178_ddb6e79b206d706379991fd64553fc71_rle_crop_3906827336_0.png.png imagette258058111754630102/1754629885_2920852_1375808556_c11677cab6dca852c99da5e98db15e2a_rle_crop_3906831840_0.png.png imagette258058111754630102/1754629706_2918473_1375808178_ddb6e79b206d706379991fd64553fc71_rle_crop_3906827343_0.png.png imagette258058111754630102/1754629885_2920852_1375808560_927115000b4268dbc2eb45132e204e4d_rle_crop_3906831817_0.png.png imagette258058111754630102/1754629706_2918473_1375808178_ddb6e79b206d706379991fd64553fc71_rle_crop_3906827341_0.png.png imagette258058111754630102/1754629885_2920852_1375808560_927115000b4268dbc2eb45132e204e4d_rle_crop_3906831818_0.png.png imagette258058111754630102/1754629885_2920852_1375808561_0bab2cb89a13c9c869db2d1430cb51dc_rle_crop_3906831804_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/8824081b256dd703e7810ed0cce0366a_17962366.png imagette258058111754630102 25805813 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=25805813 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375808771: '1754629706_2918473_1375808178_ddb6e79b206d706379991fd64553fc71_rle_crop_3906827337_0.png', 1375808881: '1754629885_2920852_1375808555_d7c83a91a185a94695cb4e5a9e12d60c_rle_crop_3906831855_0.png', 1375808924: '1754629947_2921917_1375808739_207ee319c2e7cce9c65939d15a457222_rle_crop_3906833525_0.png', 1375808987: '1754630005_2926246_1375808581_7c7cd00ed9974baba44005f867132143_rle_crop_3906834361_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/fc8cc0f472d85fc4ce287b62c82a22db_92883037.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/0423ee16f2634ead5fd07eea2cd6f1e1_72391572.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/75c19437d5b99d159e058efafb84c46e_30797104.png change filename to text .imagette258058131754630103/ imagette258058131754630103/1754630005_2926246_1375808581_7c7cd00ed9974baba44005f867132143_rle_crop_3906834361_0.png.png imagette258058131754630103/1754629706_2918473_1375808178_ddb6e79b206d706379991fd64553fc71_rle_crop_3906827337_0.png.png imagette258058131754630103/1754629947_2921917_1375808739_207ee319c2e7cce9c65939d15a457222_rle_crop_3906833525_0.png.png imagette258058131754630103/1754629885_2920852_1375808555_d7c83a91a185a94695cb4e5a9e12d60c_rle_crop_3906831855_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/f8ed09b18633fb0b971709228e816067_37993820.png imagette258058131754630103 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25805766 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25805816,25805817,25805818,25805819,25805820,25805821,25805822,25805823,25805824,25805825,25805826,25805827?tags=environnement,metal,mal_croppe,Carton_gris,plastique,cartonnette,papier,flou,kraft,Teint_Dans_La_Masse,autre_refus,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1375808988] : ('0.04272686105656651',) no score found for photo 1375808988 We are sending mail with results at report@fotonower.com args[1375808986] : ('0.04272686105656651',) no score found for photo 1375808986 We are sending mail with results at report@fotonower.com args[1375808957] : ('0.04272686105656651',) no score found for photo 1375808957 We are sending mail with results at report@fotonower.com args[1375808953] : ('0.04272686105656651',) no score found for photo 1375808953 We are sending mail with results at report@fotonower.com args[1375808950] : ('0.04272686105656651',) no score found for photo 1375808950 We are sending mail with results at report@fotonower.com args[1375808946] : ('0.04272686105656651',) no score found for photo 1375808946 We are sending mail with results at report@fotonower.com args[1375808942] : ('0.04272686105656651',) no score found for photo 1375808942 We are sending mail with results at report@fotonower.com args[1375808938] : ('0.04272686105656651',) no score found for photo 1375808938 We are sending mail with results at report@fotonower.com args[1375808931] : ('0.04272686105656651',) no score found for photo 1375808931 We are sending mail with results at report@fotonower.com args[1375808929] : ('0.04272686105656651',) no score found for photo 1375808929 We are sending mail with results at report@fotonower.com args[1375808927] : ('0.04272686105656651',) no score found for photo 1375808927 We are sending mail with results at report@fotonower.com args[1375808925] : ('0.04272686105656651',) no score found for photo 1375808925 We are sending mail with results at report@fotonower.com args[1375808921] : ('0.04272686105656651',) no score found for photo 1375808921 We are sending mail with results at report@fotonower.com args[1375808919] : ('0.04272686105656651',) no score found for photo 1375808919 We are sending mail with results at report@fotonower.com args[1375808906] : ('0.04272686105656651',) no score found for photo 1375808906 We are sending mail with results at report@fotonower.com args[1375808902] : ('0.04272686105656651',) no score found for photo 1375808902 We are sending mail with results at report@fotonower.com args[1375808896] : ('0.04272686105656651',) no score found for photo 1375808896 We are sending mail with results at report@fotonower.com args[1375808890] : ('0.04272686105656651',) no score found for photo 1375808890 We are sending mail with results at report@fotonower.com args[1375808886] : ('0.04272686105656651',) no score found for photo 1375808886 We are sending mail with results at report@fotonower.com args[1375808884] : ('0.04272686105656651',) no score found for photo 1375808884 We are sending mail with results at report@fotonower.com refus_total : 0.04272686105656651 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=25805766 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_P25805766_08-08-2025_07_15_01.pdf results_Auto_P25805766_08-08-2025_07_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25805766_08-08-2025_07_15_01.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','25805766','results_Auto_P25805766_08-08-2025_07_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25805766_08-08-2025_07_15_01.pdf','pdf','','0.24','0.04272686105656651') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25805766]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884] map_info['map_portfolio_photo'] : {25805766: [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884, 1375808857, 1375808854, 1375808852, 1375808849, 1375808847, 1375808844, 1375808804, 1375808786, 1375808782, 1375808779, 1375808776, 1375808772, 1375808763, 1375808744, 1375808742, 1375808739, 1375808736, 1375808663, 1375808659, 1375808656, 1375808653, 1375808652, 1375808647, 1375808587, 1375808585, 1375808581, 1375808578, 1375808563, 1375808561, 1375808560, 1375808558, 1375808556, 1375808555, 1375808528, 1375808527, 1375808523, 1375808516, 1375808498, 1375808472, 1375808426, 1375808424, 1375808422, 1375808412, 1375808391, 1375808370, 1375808229, 1375808178, 1375808137, 1375808107, 1375808047, 1375807983, 1375807651, 1375807622, 1375807584, 1375807555, 1375807532, 1375807502, 1375806749, 1375806680, 1375806608, 1375806539]} final : False mtd_id 4302 list_pids : [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884] 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, '3482293') ('4302', '25805766', '1375808988', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808986', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808957', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808953', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808950', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808946', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808942', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808938', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808931', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808929', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808927', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808925', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808921', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808919', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808906', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808902', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808896', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808890', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808886', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808884', None, None, None, None, None, '3482293') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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', '25805766', '1375808988', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808986', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808957', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808953', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808950', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808946', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808942', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808938', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808931', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808929', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808927', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808925', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808921', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808919', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808906', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808902', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808896', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808890', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808886', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808884', None, None, None, None, None, '3482293')] time used for this insertion : 0.2965359687805176 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.025534629821777 time spend to save output : 0.29682397842407227 total time spend for step 4 : 4.32235860824585 step5:split_time_score Fri Aug 8 07:15:05 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 : ['25805766'] 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 : [('25805766',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25805766) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1375808929: {'path': 'temp/1754630100_1918350_1375808929_d79802b80ad400d5a7a2984478904307.jpg', 'extension': 'jpg'}, 1375808931: {'path': 'temp/1754630100_1918350_1375808931_e5e97d59c1e656eaad11bef1fd6d1dd3.jpg', 'extension': 'jpg'}, 1375808938: {'path': 'temp/1754630100_1918350_1375808938_b623f2d9780131c421f05d19199f0652.jpg', 'extension': 'jpg'}, 1375808942: {'path': 'temp/1754630100_1918350_1375808942_5c2f2b2ff62474edf7fcdf7d5d2f18aa.jpg', 'extension': 'jpg'}, 1375808946: {'path': 'temp/1754630100_1918350_1375808946_9d48eaa18008bcd926dcdf6856cc2d73.jpg', 'extension': 'jpg'}, 1375808906: {'path': 'temp/1754630100_1918350_1375808906_193d61ca7c374ecfdf9157ea31090e94.jpg', 'extension': 'jpg'}, 1375808919: {'path': 'temp/1754630100_1918350_1375808919_a6a3cb31c917b885589032f46d56bcfe.jpg', 'extension': 'jpg'}, 1375808921: {'path': 'temp/1754630100_1918350_1375808921_ffda1b2e7573b34892064c838aef175b.jpg', 'extension': 'jpg'}, 1375808925: {'path': 'temp/1754630100_1918350_1375808925_653609d88ad492bca0204b39a2b95f92.jpg', 'extension': 'jpg'}, 1375808927: {'path': 'temp/1754630100_1918350_1375808927_75c1d21d71ed8eda7b772374c0f6de1f.jpg', 'extension': 'jpg'}, 1375808884: {'path': 'temp/1754630100_1918350_1375808884_fa8d748b0fa5eda7814aade91942c929.jpg', 'extension': 'jpg'}, 1375808886: {'path': 'temp/1754630100_1918350_1375808886_6c3493c868ab85bf365800e92994ba6d.jpg', 'extension': 'jpg'}, 1375808890: {'path': 'temp/1754630100_1918350_1375808890_bb743497141555a6ad269b11ec0e6837.jpg', 'extension': 'jpg'}, 1375808896: {'path': 'temp/1754630100_1918350_1375808896_9d5ab3ceb5685f64bc1aeddb2793677c.jpg', 'extension': 'jpg'}, 1375808902: {'path': 'temp/1754630100_1918350_1375808902_eebe8462b3f5830cddf5da180ba9e5fc.jpg', 'extension': 'jpg'}, 1375808950: {'path': 'temp/1754630100_1918350_1375808950_f2605fb3ee40cb59c6e31882e3e8dd94.jpg', 'extension': 'jpg'}, 1375808953: {'path': 'temp/1754630100_1918350_1375808953_026c3e259ceefe1d33b72afabfb6bf2f.jpg', 'extension': 'jpg'}, 1375808957: {'path': 'temp/1754630100_1918350_1375808957_fdbbf4b8d0ada8c365a812e7bc08cd94.jpg', 'extension': 'jpg'}, 1375808986: {'path': 'temp/1754630100_1918350_1375808986_de5aa1e6ada8adaf7270f19a3251b4e3.jpg', 'extension': 'jpg'}, 1375808988: {'path': 'temp/1754630100_1918350_1375808988_d05c88fa9fca82e00043a2c572965301.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 = 25805766; (('arc_en_ciel_jrm_live',), ('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 = 25805766 group by h (('07', 81),) 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=25805766 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 (25805766) 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 (25805766) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08082025 25805766 Nombre de photos uploadées : 81 / 23040 (0%) 08082025 25805766 Nombre de photos taguées (types de déchets): 0 / 81 (0%) 08082025 25805766 Nombre de photos taguées (volume) : 0 / 81 (0%) [{'photo_id': 1375808528, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/d06b6d9c91c220d982818ef2d9683268.jpg', 'username': None, 'uploaded_at': 1754629467, 'text': 'image_08082025_07_00_14_10211.jpg'}, {'photo_id': 1375806749, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/45d58088be10a3a6c9baddee873449ed.jpg', 'username': None, 'uploaded_at': 1754629267, 'text': 'image_08082025_07_00_14_10211.jpg'}, {'photo_id': 1375806680, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/5da254142c7b1ee95b4a478a6cdb3fee.jpg', 'username': None, 'uploaded_at': 1754629267, 'text': 'image_08082025_07_00_24_10141.jpg'}, {'photo_id': 1375808527, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/31266e228ece98e258897759500e8827.jpg', 'username': None, 'uploaded_at': 1754629467, 'text': 'image_08082025_07_00_24_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0033512115478515625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25805766, '2025-08-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-08' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2085247,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24552440643310547 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= 2085247 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25799827, 'dashboard_result_id': 13772200, '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_P25799827_08-08-2025_00_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799839, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25799927, 'dashboard_result_id': 13772201, '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_P25799927_08-08-2025_00_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799958, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25800110, 'dashboard_result_id': 13772202, '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_P25800110_08-08-2025_00_47_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25800112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800123, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25800322, 'dashboard_result_id': 13772203, '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_P25800322_08-08-2025_01_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800334, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25800662, 'dashboard_result_id': 13772204, '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_P25800662_08-08-2025_01_49_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800675, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25800775, 'dashboard_result_id': 13772205, '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_P25800775_08-08-2025_02_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25800776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800787, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25801008, 'dashboard_result_id': 13772206, '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_P25801008_08-08-2025_02_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801023, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25801368, 'dashboard_result_id': 13772207, '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_P25801368_08-08-2025_02_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801381, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25801481, 'dashboard_result_id': 13772208, '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_P25801481_08-08-2025_02_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801494, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25801571, 'dashboard_result_id': 13772209, '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_P25801571_08-08-2025_03_02_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801583, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25801970, 'dashboard_result_id': 13772210, '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_P25801970_08-08-2025_03_36_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801982, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25802109, 'dashboard_result_id': 13772211, '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_P25802109_08-08-2025_04_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802123, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25802632, 'dashboard_result_id': 13772212, '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_P25802632_08-08-2025_05_22_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25802634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802645, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25802900, 'dashboard_result_id': 13772213, '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_P25802900_08-08-2025_05_35_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802916, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25803160, 'dashboard_result_id': 13772214, '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_P25803160_08-08-2025_05_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803196, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25803515, 'dashboard_result_id': 13772215, '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_P25803515_08-08-2025_05_59_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803559, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25804462, 'dashboard_result_id': 13772216, '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_P25804462_08-08-2025_06_34_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25804467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25804468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25804469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25804470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25804471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25804472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25804473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25804474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25804475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25804476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25804477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25804478, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25804858, 'dashboard_result_id': 13772217, '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_P25804858_08-08-2025_06_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25804877, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25804878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25804879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25804880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25804881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25804882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25804883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25804884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25804885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25804886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25804888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25804889, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25805376, 'dashboard_result_id': 13772218, '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_P25805376_08-08-2025_07_08_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25805394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25805395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25805396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25805397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25805398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25805399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25805400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25805401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25805402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25805403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25805404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25805405, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094445, 'mtr_portfolio_id': 25805766, 'dashboard_result_id': 13772219, '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_P25805766_08-08-2025_07_13_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25805801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25805802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25805803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25805804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25805805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25805807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25805808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25805809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25805810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25805811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25805812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25805813, '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 = 25799827 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': 3481192, 'mtr_portfolio_id': 25799827, 'created_at': datetime.datetime(2025, 8, 8, 6, 15, 38), 'result': '0.07417989975117388', 'result_long': None, 'result_double': None}] Qualite : 0.07417989975117388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25799827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799827_08-08-2025_06_15_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25799827 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_P25799827_08-08-2025_06_15_39.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799839, 'pht': 3726}}" where mtr_portfolio_id = 25799827 and dashboard_run_id = 2094445 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`=25799827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772200, 0.07417989975117388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799827_08-08-2025_06_15_39.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799839, '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 = 25799927 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': 3481193, 'mtr_portfolio_id': 25799927, 'created_at': datetime.datetime(2025, 8, 8, 6, 16), 'result': '0.08866506788848165', 'result_long': None, 'result_double': None}] Qualite : 0.08866506788848165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25799927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799927_08-08-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25799927 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_P25799927_08-08-2025_06_16_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799958, 'pht': 3726}}" where mtr_portfolio_id = 25799927 and dashboard_run_id = 2094445 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`=25799927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772201, 0.08866506788848165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799927_08-08-2025_06_16_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799958, '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 = 25800110 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': 3481194, 'mtr_portfolio_id': 25800110, 'created_at': datetime.datetime(2025, 8, 8, 6, 16, 59), 'result': '0.11787486643355535', 'result_long': None, 'result_double': None}] Qualite : 0.11787486643355535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800110_08-08-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800110 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_P25800110_08-08-2025_06_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25800112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800123, 'pht': 3726}}" where mtr_portfolio_id = 25800110 and dashboard_run_id = 2094445 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`=25800110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772202, 0.11787486643355535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800110_08-08-2025_06_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25800112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800123, '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 = 25800322 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': 3481195, 'mtr_portfolio_id': 25800322, 'created_at': datetime.datetime(2025, 8, 8, 6, 17, 29), 'result': '0.11238992732464646', 'result_long': None, 'result_double': None}] Qualite : 0.11238992732464646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800322 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800322_08-08-2025_06_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800322 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_P25800322_08-08-2025_06_17_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800334, 'pht': 3726}}" where mtr_portfolio_id = 25800322 and dashboard_run_id = 2094445 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`=25800322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772203, 0.11238992732464646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800322_08-08-2025_06_17_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800334, '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 = 25800662 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': 3481196, 'mtr_portfolio_id': 25800662, 'created_at': datetime.datetime(2025, 8, 8, 6, 18), 'result': '0.06703334582812703', 'result_long': None, 'result_double': None}] Qualite : 0.06703334582812703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800662_08-08-2025_06_18_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800662 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_P25800662_08-08-2025_06_18_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800675, 'pht': 3726}}" where mtr_portfolio_id = 25800662 and dashboard_run_id = 2094445 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`=25800662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772204, 0.06703334582812703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800662_08-08-2025_06_18_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800675, '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 = 25800775 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': 3481197, 'mtr_portfolio_id': 25800775, 'created_at': datetime.datetime(2025, 8, 8, 6, 18, 30), 'result': '0.032603175677963225', 'result_long': None, 'result_double': None}] Qualite : 0.032603175677963225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800775_08-08-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800775 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_P25800775_08-08-2025_06_18_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25800776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800787, 'pht': 3726}}" where mtr_portfolio_id = 25800775 and dashboard_run_id = 2094445 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`=25800775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772205, 0.032603175677963225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800775_08-08-2025_06_18_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25800776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800787, '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 = 25801008 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': 3481198, 'mtr_portfolio_id': 25801008, 'created_at': datetime.datetime(2025, 8, 8, 6, 19, 59), 'result': '0.061391656519411496', 'result_long': None, 'result_double': None}] Qualite : 0.061391656519411496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801008_08-08-2025_06_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801008 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_P25801008_08-08-2025_06_20_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801023, 'pht': 3726}}" where mtr_portfolio_id = 25801008 and dashboard_run_id = 2094445 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`=25801008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772206, 0.061391656519411496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801008_08-08-2025_06_20_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801023, '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 = 25801368 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': 3481199, 'mtr_portfolio_id': 25801368, 'created_at': datetime.datetime(2025, 8, 8, 6, 20, 29), 'result': '0.05034086755553191', 'result_long': None, 'result_double': None}] Qualite : 0.05034086755553191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801368_08-08-2025_06_20_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801368 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_P25801368_08-08-2025_06_20_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801381, 'pht': 3726}}" where mtr_portfolio_id = 25801368 and dashboard_run_id = 2094445 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`=25801368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772207, 0.05034086755553191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801368_08-08-2025_06_20_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801381, '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 = 25801481 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': 3481200, 'mtr_portfolio_id': 25801481, 'created_at': datetime.datetime(2025, 8, 8, 6, 20, 37), 'result': '0.17528541026771466', 'result_long': None, 'result_double': None}] Qualite : 0.17528541026771466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801481_08-08-2025_06_20_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801481 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_P25801481_08-08-2025_06_20_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801494, 'pht': 3726}}" where mtr_portfolio_id = 25801481 and dashboard_run_id = 2094445 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`=25801481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772208, 0.17528541026771466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801481_08-08-2025_06_20_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801494, '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 = 25801571 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': 3481201, 'mtr_portfolio_id': 25801571, 'created_at': datetime.datetime(2025, 8, 8, 6, 21, 29), 'result': '0.046093681147583686', 'result_long': None, 'result_double': None}] Qualite : 0.046093681147583686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801571_08-08-2025_06_21_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801571 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_P25801571_08-08-2025_06_21_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801583, 'pht': 3726}}" where mtr_portfolio_id = 25801571 and dashboard_run_id = 2094445 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`=25801571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772209, 0.046093681147583686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801571_08-08-2025_06_21_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801583, '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 = 25801970 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': 3481202, 'mtr_portfolio_id': 25801970, 'created_at': datetime.datetime(2025, 8, 8, 6, 22, 1), 'result': '0.06456127347209602', 'result_long': None, 'result_double': None}] Qualite : 0.06456127347209602 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801970 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801970_08-08-2025_06_22_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801970 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_P25801970_08-08-2025_06_22_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801982, 'pht': 3726}}" where mtr_portfolio_id = 25801970 and dashboard_run_id = 2094445 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`=25801970 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772210, 0.06456127347209602, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801970_08-08-2025_06_22_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801982, '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 = 25802109 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': 3481203, 'mtr_portfolio_id': 25802109, 'created_at': datetime.datetime(2025, 8, 8, 6, 22, 29), 'result': '0.07652594118949221', 'result_long': None, 'result_double': None}] Qualite : 0.07652594118949221 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25802109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802109_08-08-2025_06_22_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25802109 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_P25802109_08-08-2025_06_22_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802123, 'pht': 3726}}" where mtr_portfolio_id = 25802109 and dashboard_run_id = 2094445 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`=25802109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772211, 0.07652594118949221, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802109_08-08-2025_06_22_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802123, '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 = 25802632 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': 3481204, 'mtr_portfolio_id': 25802632, 'created_at': datetime.datetime(2025, 8, 8, 6, 23, 30), 'result': '0.0550394551941452', 'result_long': None, 'result_double': None}] Qualite : 0.0550394551941452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25802632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802632_08-08-2025_06_23_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25802632 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_P25802632_08-08-2025_06_23_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25802634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802645, 'pht': 3726}}" where mtr_portfolio_id = 25802632 and dashboard_run_id = 2094445 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`=25802632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772212, 0.0550394551941452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802632_08-08-2025_06_23_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25802634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802645, '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 = 25802900 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': 3481205, 'mtr_portfolio_id': 25802900, 'created_at': datetime.datetime(2025, 8, 8, 6, 24), 'result': '0.05583763422025588', 'result_long': None, 'result_double': None}] Qualite : 0.05583763422025588 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25802900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802900_08-08-2025_06_24_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25802900 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_P25802900_08-08-2025_06_24_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802916, 'pht': 3726}}" where mtr_portfolio_id = 25802900 and dashboard_run_id = 2094445 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`=25802900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772213, 0.05583763422025588, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802900_08-08-2025_06_24_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802916, '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 = 25803160 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': 3481124, 'mtr_portfolio_id': 25803160, 'created_at': datetime.datetime(2025, 8, 8, 5, 49, 1), 'result': '0.04045505143194338', 'result_long': None, 'result_double': None}] Qualite : 0.04045505143194338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25803160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803160_08-08-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25803160 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_P25803160_08-08-2025_05_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803196, 'pht': 3726}}" where mtr_portfolio_id = 25803160 and dashboard_run_id = 2094445 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`=25803160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772214, 0.04045505143194338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803160_08-08-2025_05_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803196, '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 = 25803515 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': 3481350, 'mtr_portfolio_id': 25803515, 'created_at': datetime.datetime(2025, 8, 8, 6, 7, 28), 'result': '0.04910239351254456', 'result_long': None, 'result_double': None}] Qualite : 0.04910239351254456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25803515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803515_08-08-2025_06_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25803515 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_P25803515_08-08-2025_06_07_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803559, 'pht': 3726}}" where mtr_portfolio_id = 25803515 and dashboard_run_id = 2094445 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`=25803515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772215, 0.04910239351254456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803515_08-08-2025_06_07_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803559, '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 = 25804462 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': 3481704, 'mtr_portfolio_id': 25804462, 'created_at': datetime.datetime(2025, 8, 8, 6, 34, 29), 'result': '0.04546688291430755', 'result_long': None, 'result_double': None}] Qualite : 0.04546688291430755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25804462 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25804462_08-08-2025_06_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25804462 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_P25804462_08-08-2025_06_34_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25804467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25804468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25804469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25804470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25804471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25804472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25804473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25804474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25804475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25804476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25804477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25804478, 'pht': 3726}}" where mtr_portfolio_id = 25804462 and dashboard_run_id = 2094447 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`=25804462 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772216, 0.04546688291430755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25804462_08-08-2025_06_34_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25804467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25804468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25804469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25804470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25804471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25804472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25804473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25804474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25804475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25804476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25804477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25804478, '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 = 25804858 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': 3481872, 'mtr_portfolio_id': 25804858, 'created_at': datetime.datetime(2025, 8, 8, 6, 48, 58), 'result': '0.04939038657881411', 'result_long': None, 'result_double': None}] Qualite : 0.04939038657881411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25804858 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25804858_08-08-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25804858 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_P25804858_08-08-2025_06_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25804877, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25804878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25804879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25804880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25804881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25804882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25804883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25804884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25804885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25804886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25804888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25804889, 'pht': 3726}}" where mtr_portfolio_id = 25804858 and dashboard_run_id = 2094447 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`=25804858 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772217, 0.04939038657881411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25804858_08-08-2025_06_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25804877, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25804878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25804879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25804880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25804881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25804882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25804883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25804884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25804885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25804886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25804888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25804889, '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 = 25805376 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': 3482084, 'mtr_portfolio_id': 25805376, 'created_at': datetime.datetime(2025, 8, 8, 7, 8, 59), 'result': '0.05789815054146033', 'result_long': None, 'result_double': None}] Qualite : 0.05789815054146033 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25805376 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25805376_08-08-2025_07_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25805376 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_P25805376_08-08-2025_07_08_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25805394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25805395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25805396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25805397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25805398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25805399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25805400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25805401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25805402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25805403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25805404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25805405, 'pht': 3726}}" where mtr_portfolio_id = 25805376 and dashboard_run_id = 2094447 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`=25805376 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772218, 0.05789815054146033, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25805376_08-08-2025_07_08_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25805394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25805395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25805396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25805397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25805398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25805399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25805400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25805401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25805402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25805403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25805404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25805405, '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 = 25805766 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': 3482293, 'mtr_portfolio_id': 25805766, 'created_at': datetime.datetime(2025, 8, 8, 7, 15), 'result': '0.04272686105656651', 'result_long': None, 'result_double': None}] Qualite : 0.04272686105656651 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25805766 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25805766_08-08-2025_07_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25805766 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_P25805766_08-08-2025_07_15_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25805801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25805802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25805803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25805804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25805805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25805807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25805808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25805809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25805810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25805811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25805812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25805813, 'pht': 3726}}" where mtr_portfolio_id = 25805766 and dashboard_run_id = 2094447 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`=25805766 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13772219, 0.04272686105656651, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25805766_08-08-2025_07_15_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25805801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25805802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25805803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25805804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25805805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25805807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25805808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25805809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25805810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25805811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25805812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25805813, '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 (25799827,25799927,25800110,25800322,25800662,25800775,25801008,25801368,25801481,25801571,25801970,25802109,25802632,25802900,25803160,25803515,25804462,25804858,25805376,25805766) result : ((1375774972,), (1375774992,), (1375775015,), (1375775058,), (1375775136,), (1375775191,), (1375775202,), (1375775411,), (1375775410,), (1375775461,), (1375775462,), (1375775578,), (1375775637,), (1375775667,), (1375775864,), (1375775889,), (1375775890,), (1375775904,), (1375775947,), (1375775975,), (1375775977,), (1375776093,), (1375776090,), (1375776092,), (1375776222,), (1375776273,), (1375776302,), (1375776434,), (1375776499,), (1375776501,), (1375776516,), (1375776518,), (1375776523,), (1375776543,), (1375776546,), (1375776570,), (1375776591,), (1375776593,), (1375776618,), (1375776646,), (1375776694,), (1375776696,), (1375776754,), (1375776815,), (1375776853,), (1375776877,), (1375776909,), (1375776910,), (1375776977,), (1375776978,), (1375781039,), (1375781057,), (1375781145,), (1375781147,), (1375781162,), (1375781252,), (1375781275,), (1375781294,), (1375781316,), (1375781318,), (1375781382,), (1375781408,), (1375781412,), (1375781453,), (1375781514,), (1375781516,), (1375781541,), (1375781542,), (1375781568,), (1375781582,), (1375781583,), (1375781675,), (1375781676,), (1375781724,), (1375781745,), (1375781748,), (1375781774,), (1375781776,), (1375781835,), (1375782143,), (1375782856,), (1375782880,), (1375785041,), (1375785066,), (1375786986,), (1375786987,), (1375787002,), (1375787025,), (1375787026,), (1375787093,), (1375787112,), (1375787217,), (1375787236,), (1375787238,), (1375787242,), (1375787343,), (1375787387,), (1375787433,), (1375787498,), (1375787517,), (1375787538,), (1375787575,), (1375787578,), (1375787581,), (1375787721,), (1375787722,), (1375787742,), (1375787743,), (1375787794,), (1375787913,), (1375787953,), (1375787954,), (1375787980,), (1375787981,), (1375787983,), (1375787988,), (1375788008,), (1375788010,), (1375788083,), (1375788154,), (1375788549,), (1375789049,), (1375791171,), (1375791189,), (1375791222,), (1375791224,), (1375791268,), (1375791314,), (1375791357,), (1375791359,), (1375791539,), (1375791822,), (1375791825,), (1375791837,), (1375791838,), (1375791840,), (1375791895,), (1375791924,), (1375791941,), (1375791969,), (1375791996,), (1375792021,), (1375792048,), (1375792959,), (1375793540,), (1375794182,), (1375794555,), (1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,), (1375798841,), (1375798913,), (1375798915,), (1375798923,), (1375798943,), (1375798954,), (1375798829,), (1375798830,), (1375798833,), (1375798836,), (1375798838,), (1375798853,), (1375798855,), (1375798857,), (1375798858,), (1375798859,), (1375798861,), (1375798867,), (1375798870,), (1375798874,), (1375798878,), (1375798880,), (1375798887,), (1375798902,), (1375798904,), (1375798907,), (1375798910,), (1375798964,), (1375798966,), (1375798970,), (1375798973,), (1375798976,), (1375799005,), (1375799008,), (1375799013,), (1375799016,), (1375799020,), (1375799022,), (1375799032,), (1375799036,), (1375799039,), (1375799043,), (1375799045,), (1375799047,), (1375799063,), (1375799068,), (1375799074,), (1375799078,), (1375799089,), (1375799093,), (1375799095,), (1375799120,), (1375799125,), (1375799141,), (1375799144,), (1375799147,), (1375799149,), (1375799152,), (1375799155,), (1375799177,), (1375799180,), (1375799182,), (1375799185,), (1375799188,), (1375799206,), (1375799207,), (1375799209,), (1375799234,), (1375799237,), (1375799240,), (1375799243,), (1375799246,), (1375799272,), (1375799276,), (1375799280,), (1375799295,), (1375799310,), (1375799331,), (1375799335,), (1375799337,), (1375799340,), (1375799343,), (1375799374,), (1375799379,), (1375799440,), (1375799442,), (1375799462,), (1375799465,), (1375799466,), (1375799477,), (1375799361,), (1375799363,), (1375799366,), (1375799369,), (1375799396,), (1375799401,), (1375799404,), (1375799409,), (1375799413,), (1375799416,), (1375799422,), (1375799424,), (1375799427,), (1375799437,), (1375799454,), (1375799458,), (1375799460,), (1375799490,), (1375799493,), (1375799495,), (1375799498,), (1375799502,), (1375799503,), (1375799514,), (1375799517,), (1375799519,), (1375799521,), (1375799547,), (1375799549,), (1375799550,), (1375799553,), (1375799557,), (1375799560,), (1375799582,), (1375799589,), (1375799593,), (1375799595,), (1375799615,), (1375799623,), (1375799626,), (1375799629,), (1375799633,), (1375799637,), (1375799651,), (1375799653,), (1375799655,), (1375799659,), (1375799662,), (1375799666,), (1375799674,), (1375799676,), (1375799677,), (1375799679,), (1375799687,), (1375799691,), (1375799694,), (1375799698,), (1375799701,), (1375799703,), (1375799716,), (1375799719,), (1375799722,), (1375799723,), (1375799743,), (1375799745,), (1375799748,), (1375799751,), (1375799754,), (1375799758,), (1375799768,), (1375799775,), (1375799777,), (1375799780,), (1375799785,), (1375799788,), (1375799791,), (1375799805,), (1375799806,), (1375799807,), (1375799809,), (1375799816,), (1375799830,), (1375799855,), (1375799857,), (1375799860,), (1375799862,), (1375799899,), (1375799882,), (1375799890,), (1375799891,), (1375799893,), (1375799895,), (1375799919,), (1375799923,), (1375799925,), (1375799928,), (1375799948,), (1375799949,), (1375799950,), (1375799952,), (1375799954,), (1375799957,), (1375799974,), (1375799975,), (1375799978,), (1375799986,), (1375799988,), (1375800013,), (1375800015,), (1375800018,), (1375800021,), (1375800022,), (1375800024,), (1375800054,), (1375800056,), (1375800057,), (1375800060,), (1375800079,), (1375800080,), (1375800082,), (1375800086,), (1375800088,), (1375800092,), (1375800101,), (1375800103,), (1375800104,), (1375800105,), (1375800110,), (1375800122,), (1375800133,), (1375800140,), (1375800143,), (1375800158,), (1375800162,), (1375800164,), (1375800167,), (1375800171,), (1375800174,), (1375800196,), (1375800198,), (1375800199,), (1375800200,), (1375800203,), (1375800238,), (1375800243,), (1375800251,), (1375800254,), (1375800257,), (1375800270,), (1375800271,), (1375800272,), (1375800275,), (1375800280,), (1375800304,), (1375800305,), (1375800307,), (1375800310,), (1375800311,), (1375800314,), (1375800328,), (1375800347,), (1375800374,), (1375800401,), (1375800424,), (1375800451,), (1375800536,), (1375800566,), (1375800594,), (1375800636,), (1375800822,), (1375802163,), (1375803911,), (1375803913,), (1375803915,), (1375803918,), (1375803922,), (1375803952,), (1375803955,), (1375803957,), (1375803959,), (1375803962,), (1375803987,), (1375803988,), (1375803990,), (1375803992,), (1375803994,), (1375803998,), (1375804011,), (1375804013,), (1375804015,), (1375804017,), (1375804020,), (1375804049,), (1375804051,), (1375804052,), (1375804055,), (1375804058,), (1375804063,), (1375804092,), (1375804093,), (1375804095,), (1375804098,), (1375804100,), (1375804102,), (1375804130,), (1375804132,), (1375804136,), (1375804138,), (1375804142,), (1375804145,), (1375804153,), (1375804154,), (1375804156,), (1375804159,), (1375804163,), (1375804165,), (1375804179,), (1375804185,), (1375804189,), (1375804193,), (1375804197,), (1375804201,), (1375804204,), (1375804207,), (1375804210,), (1375804213,), (1375804216,), (1375804229,), (1375804232,), (1375804235,), (1375804240,), (1375804243,), (1375804250,), (1375804252,), (1375804254,), (1375804336,), (1375804338,), (1375804348,), (1375804356,), (1375804380,), (1375804381,), (1375804382,), (1375804384,), (1375804389,), (1375804415,), (1375804418,), (1375804420,), (1375804422,), (1375804427,), (1375804466,), (1375804519,), (1375804520,), (1375804521,), (1375804555,), (1375804557,), (1375804559,), (1375804447,), (1375804448,), (1375804456,), (1375804461,), (1375804464,), (1375804486,), (1375804488,), (1375804491,), (1375804493,), (1375804496,), (1375804500,), (1375804513,), (1375804516,), (1375804518,), (1375804527,), (1375804532,), (1375804538,), (1375804541,), (1375804546,), (1375804550,), (1375804564,), (1375804567,), (1375804570,), (1375804572,), (1375804575,), (1375804578,), (1375804590,), (1375804591,), (1375804592,), (1375804594,), (1375804597,), (1375804626,), (1375804629,), (1375804631,), (1375804633,), (1375804634,), (1375804661,), (1375804663,), (1375804664,), (1375804666,), (1375804670,), (1375804672,), (1375804687,), (1375804694,), (1375804698,), (1375804700,), (1375804705,), (1375804734,), (1375804742,), (1375804744,), (1375804746,), (1375804748,), (1375804752,), (1375804777,), (1375804778,), (1375804779,), (1375804780,), (1375804782,), (1375804814,), (1375804818,), (1375804824,), (1375804829,), (1375804832,), (1375804835,), (1375804850,), (1375804865,), (1375804875,), (1375804879,), (1375804882,), (1375804887,), (1375804900,), (1375804907,), (1375804913,), (1375804914,), (1375804915,), (1375804917,), (1375804922,), (1375804923,), (1375804926,), (1375804929,), (1375804931,), (1375804933,), (1375804946,), (1375804947,), (1375804950,), (1375804955,), (1375804959,), (1375804963,), (1375804969,), (1375804985,), (1375804988,), (1375804992,), (1375804996,), (1375805041,), (1375805020,), (1375805028,), (1375805033,), (1375805035,), (1375805038,), (1375805063,), (1375805066,), (1375805068,), (1375805072,), (1375805076,), (1375805094,), (1375805096,), (1375805099,), (1375805104,), (1375805109,), (1375805113,), (1375805130,), (1375805133,), (1375805135,), (1375805136,), (1375805164,), (1375805167,), (1375805168,), (1375805169,), (1375805171,), (1375805174,), (1375805194,), (1375805196,), (1375805199,), (1375805204,), (1375805206,), (1375805210,), (1375805229,), (1375805231,), (1375805234,), (1375805236,), (1375805238,), (1375805241,), (1375805251,), (1375805255,), (1375805258,), (1375805265,), (1375805275,), (1375805277,), (1375805282,), (1375805285,), (1375805287,), (1375805288,), (1375805289,), (1375805291,), (1375805299,), (1375805305,), (1375805317,), (1375805335,), (1375805339,), (1375805342,), (1375805345,), (1375805348,), (1375805352,), (1375805354,), (1375805356,), (1375805359,), (1375805362,), (1375805365,), (1375805377,), (1375805380,), (1375805383,), (1375805385,), (1375805410,), (1375805412,), (1375805414,), (1375805416,), (1375805419,), (1375805423,), (1375805445,), (1375805448,), (1375805450,), (1375805452,), (1375805713,), (1375805769,), (1375805827,), (1375805876,), (1375805938,), (1375805985,), (1375806814,), (1375806884,), (1375808530,), (1375808533,), (1375808536,), (1375808537,), (1375808544,), (1375808547,), (1375808591,), (1375806539,), (1375806608,), (1375806680,), (1375806749,), (1375807502,), (1375807532,), (1375807555,), (1375807584,), (1375807622,), (1375807651,), (1375807983,), (1375808047,), (1375808107,), (1375808137,), (1375808178,), (1375808229,), (1375808370,), (1375808391,), (1375808412,), (1375808422,), (1375808424,), (1375808426,), (1375808472,), (1375808498,), (1375808516,), (1375808523,), (1375808527,), (1375808528,), (1375808555,), (1375808556,), (1375808558,), (1375808560,), (1375808561,), (1375808563,), (1375808578,), (1375808581,), (1375808585,), (1375808587,), (1375808647,), (1375808652,), (1375808653,), (1375808656,), (1375808659,), (1375808663,), (1375808736,), (1375808739,), (1375808742,), (1375808744,), (1375808763,), (1375808772,), (1375808776,), (1375808779,), (1375808782,), (1375808786,), (1375808804,), (1375808844,), (1375808847,), (1375808849,), (1375808852,), (1375808854,), (1375808857,), (1375808884,), (1375808886,), (1375808890,), (1375808896,), (1375808902,), (1375808906,), (1375808919,), (1375808921,), (1375808925,), (1375808927,), (1375808929,), (1375808931,), (1375808938,), (1375808942,), (1375808946,), (1375808950,), (1375808953,), (1375808957,), (1375808986,), (1375808988,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08082025': {'nb_upload': 81, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25805766]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884] map_info['map_portfolio_photo'] : {25805766: [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884, 1375808857, 1375808854, 1375808852, 1375808849, 1375808847, 1375808844, 1375808804, 1375808786, 1375808782, 1375808779, 1375808776, 1375808772, 1375808763, 1375808744, 1375808742, 1375808739, 1375808736, 1375808663, 1375808659, 1375808656, 1375808653, 1375808652, 1375808647, 1375808587, 1375808585, 1375808581, 1375808578, 1375808563, 1375808561, 1375808560, 1375808558, 1375808556, 1375808555, 1375808528, 1375808527, 1375808523, 1375808516, 1375808498, 1375808472, 1375808426, 1375808424, 1375808422, 1375808412, 1375808391, 1375808370, 1375808229, 1375808178, 1375808137, 1375808107, 1375808047, 1375807983, 1375807651, 1375807622, 1375807584, 1375807555, 1375807532, 1375807502, 1375806749, 1375806680, 1375806608, 1375806539]} final : True mtd_id 4302 list_pids : [1375808988, 1375808986, 1375808957, 1375808953, 1375808950, 1375808946, 1375808942, 1375808938, 1375808931, 1375808929, 1375808927, 1375808925, 1375808921, 1375808919, 1375808906, 1375808902, 1375808896, 1375808890, 1375808886, 1375808884] Looping around the photos to save general results len do output : 1 /25805766Didn'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, '3482293') ('4302', '25805766', '1375808988', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808986', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808957', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808953', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808950', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808946', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808942', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808938', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808931', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808929', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808927', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808925', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808921', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808919', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808906', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808902', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808896', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808890', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808886', None, None, None, None, None, '3482293') ('4302', None, None, None, None, None, None, None, '3482293') ('4302', '25805766', '1375808884', None, None, None, None, None, '3482293') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '25805766', 'None', None, None, None, None, '3482293'), ('4302', '25805766', '1375808988', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808986', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808957', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808953', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808950', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808946', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808942', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808938', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808931', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808929', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808927', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808925', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808921', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808919', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808906', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808902', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808896', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808890', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808886', None, None, None, None, None, '3482293'), ('4302', '25805766', '1375808884', None, None, None, None, None, '3482293')] time used for this insertion : 0.033516645431518555 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.204068183898926 time spend to save output : 0.03378939628601074 total time spend for step 5 : 3.2378575801849365 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 (3482293) 2.26user 1.86system 0:12.86elapsed 32%CPU (0avgtext+0avgdata 167400maxresident)k 152inputs+14568outputs (0major+76551minor)pagefaults 0swaps