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 : 3195920 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 (4188476) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4188476) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210458 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4188476'] with mtr_portfolio_ids : ['29210458'] and first list_photo_ids : [] new path : /proc/3195920/ Name: python3 Umask: 0002 State: R (running) Tgid: 3195920 Ngid: 0 Pid: 3195920 PPid: 3195919 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3195920 NSpid: 3195920 NSpgid: 3194789 NSsid: 3194789 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104020 kB VmRSS: 104020 kB RssAnon: 66288 kB RssFile: 37732 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 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: 45 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3195920', 'Ngid': '0', 'Pid': '3195920', 'PPid': '3195919', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3195920', 'NSpid': '3195920', 'NSpgid': '3194789', 'NSsid': '3194789', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104020 kB', 'VmRSS': '104020 kB', 'RssAnon': '66288 kB', 'RssFile': '37732 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 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': '45', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '3195920', '1113364', '0', '1113364', '872092', '104020', b'', 'marlene', '4188476') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29210458) 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 (4188476 ) ) 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 (29210458) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398019181, 'portfolio_id': 29210458}, {'photo_id': 1398019180, 'portfolio_id': 29210458}, {'photo_id': 1398019179, 'portfolio_id': 29210458}, {'photo_id': 1398019178, 'portfolio_id': 29210458}, {'photo_id': 1398019175, 'portfolio_id': 29210458}, {'photo_id': 1398019173, 'portfolio_id': 29210458}, {'photo_id': 1398019163, 'portfolio_id': 29210458}, {'photo_id': 1398019161, 'portfolio_id': 29210458}, {'photo_id': 1398019158, 'portfolio_id': 29210458}, {'photo_id': 1398019157, 'portfolio_id': 29210458}, {'photo_id': 1398019154, 'portfolio_id': 29210458}, {'photo_id': 1398019153, 'portfolio_id': 29210458}, {'photo_id': 1398019147, 'portfolio_id': 29210458}, {'photo_id': 1398019146, 'portfolio_id': 29210458}, {'photo_id': 1398019145, 'portfolio_id': 29210458}, {'photo_id': 1398019143, 'portfolio_id': 29210458}, {'photo_id': 1398019141, 'portfolio_id': 29210458}, {'photo_id': 1398019140, 'portfolio_id': 29210458}, {'photo_id': 1398019129, 'portfolio_id': 29210458}, {'photo_id': 1398019127, 'portfolio_id': 29210458}, {'photo_id': 1398019125, 'portfolio_id': 29210458}, {'photo_id': 1398019123, 'portfolio_id': 29210458}, {'photo_id': 1398019120, 'portfolio_id': 29210458}, {'photo_id': 1398019119, 'portfolio_id': 29210458}, {'photo_id': 1398019098, 'portfolio_id': 29210458}, {'photo_id': 1398019097, 'portfolio_id': 29210458}, {'photo_id': 1398019094, 'portfolio_id': 29210458}, {'photo_id': 1398019091, 'portfolio_id': 29210458}, {'photo_id': 1398019090, 'portfolio_id': 29210458}, {'photo_id': 1398019089, 'portfolio_id': 29210458}, {'photo_id': 1398019083, 'portfolio_id': 29210458}, {'photo_id': 1398019080, 'portfolio_id': 29210458}, {'photo_id': 1398019077, 'portfolio_id': 29210458}, {'photo_id': 1398019075, 'portfolio_id': 29210458}, {'photo_id': 1398019070, 'portfolio_id': 29210458}, {'photo_id': 1398019063, 'portfolio_id': 29210458}, {'photo_id': 1398019037, 'portfolio_id': 29210458}, {'photo_id': 1398019034, 'portfolio_id': 29210458}, {'photo_id': 1398019033, 'portfolio_id': 29210458}, {'photo_id': 1398019032, 'portfolio_id': 29210458}, {'photo_id': 1398019031, 'portfolio_id': 29210458}, {'photo_id': 1398019016, 'portfolio_id': 29210458}, {'photo_id': 1398019015, 'portfolio_id': 29210458}, {'photo_id': 1398019014, 'portfolio_id': 29210458}, {'photo_id': 1398018996, 'portfolio_id': 29210458}, {'photo_id': 1398018992, 'portfolio_id': 29210458}, {'photo_id': 1398018989, 'portfolio_id': 29210458}, {'photo_id': 1398018986, 'portfolio_id': 29210458}, {'photo_id': 1398018984, 'portfolio_id': 29210458}, {'photo_id': 1398018970, 'portfolio_id': 29210458}, {'photo_id': 1398018968, 'portfolio_id': 29210458}, {'photo_id': 1398018967, 'portfolio_id': 29210458}, {'photo_id': 1398018966, 'portfolio_id': 29210458}, {'photo_id': 1398018965, 'portfolio_id': 29210458}, {'photo_id': 1398018938, 'portfolio_id': 29210458}, {'photo_id': 1398018936, 'portfolio_id': 29210458}, {'photo_id': 1398018934, 'portfolio_id': 29210458}, {'photo_id': 1398018923, 'portfolio_id': 29210458}, {'photo_id': 1398018922, 'portfolio_id': 29210458}, {'photo_id': 1398018919, 'portfolio_id': 29210458}, {'photo_id': 1398018878, 'portfolio_id': 29210458}] map_portfolio_id_photo_id: {29210458: [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119, 1398019098, 1398019097, 1398019094, 1398019091, 1398019090, 1398019089, 1398019083, 1398019080, 1398019077, 1398019075, 1398019070, 1398019063, 1398019037, 1398019034, 1398019033, 1398019032, 1398019031, 1398019016, 1398019015, 1398019014, 1398018996, 1398018992, 1398018989, 1398018986, 1398018984, 1398018970, 1398018968, 1398018967, 1398018966, 1398018965, 1398018938, 1398018936, 1398018934, 1398018923, 1398018922, 1398018919, 1398018878]} ##### 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.019230127334594727 #### 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 Dec 5 03:42:57 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 (29210458) 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 : 29210458 get user id for portfolio 29210458 get sub ptf for main ptf 29210458, type 3726 and hashtags ['Carton_brun', 'environnement', 'mal_croppe', 'kraft', 'papier', 'Teint_Dans_La_Masse', 'metal', 'autre_refus', 'cartonnette', 'flou', 'plastique', '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`=29210458 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','mal_croppe','kraft','papier','Teint_Dans_La_Masse','metal','autre_refus','cartonnette','flou','plastique','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`=29210458 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','mal_croppe','kraft','papier','Teint_Dans_La_Masse','metal','autre_refus','cartonnette','flou','plastique','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29210458, 'sub_port_id': 29210462, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865038, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'Carton_brun': {'main_port_id': 29210458, 'sub_port_id': 29210463, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865039, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'flou': {'main_port_id': 29210458, 'sub_port_id': 29210464, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865040, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'plastique': {'main_port_id': 29210458, 'sub_port_id': 29210465, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865041, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'Carton_gris': {'main_port_id': 29210458, 'sub_port_id': 29210466, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865042, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'metal': {'main_port_id': 29210458, 'sub_port_id': 29210467, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865043, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29210458, 'sub_port_id': 29210468, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865044, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'kraft': {'main_port_id': 29210458, 'sub_port_id': 29210469, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865045, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'autre_refus': {'main_port_id': 29210458, 'sub_port_id': 29210470, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865046, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'mal_croppe': {'main_port_id': 29210458, 'sub_port_id': 29210471, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865047, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'environnement': {'main_port_id': 29210458, 'sub_port_id': 29210472, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865048, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}, 'papier': {'main_port_id': 29210458, 'sub_port_id': 29210473, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865049, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 32, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29210462 , 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=29210458 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 (29210462) result : ((1398019109,), (1398019111,), (1398019137,), (1398019138,), (1398019165,), (1398019166,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210463 , 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=29210458 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 (29210463) result : ((1398019112,), (1398019113,), (1398019114,), (1398019115,), (1398019116,), (1398019117,), (1398019168,), (1398019169,), (1398019170,), (1398019171,), (1398019172,), (1398019174,), (1398019188,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210464 , 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=29210458 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 (29210464) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210465 , 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=29210458 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 (29210465) result : ((1398018982,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210466 , 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=29210458 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 (29210466) result : ((1398019012,), (1398019108,), (1398019134,), (1398019135,), (1398019162,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210467 , 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=29210458 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 (29210467) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210468 , 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=29210458 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 (29210468) result : ((1398019011,), (1398019182,), (1398019183,), (1398019184,), (1398019185,), (1398019186,), (1398019187,), (1398019207,), (1398019208,), (1398019209,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210469 , 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=29210458 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 (29210469) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210470 , 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=29210458 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 (29210470) result : ((1398019107,), (1398019160,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210471 , 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=29210458 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 (29210471) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210472 , 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=29210458 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 (29210472) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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 29210473 , 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=29210458 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 (29210473) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29210458) result : ((1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) 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`=29210458 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','mal_croppe','kraft','papier','Teint_Dans_La_Masse','metal','autre_refus','cartonnette','flou','plastique','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`=29210458 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','mal_croppe','kraft','papier','Teint_Dans_La_Masse','metal','autre_refus','cartonnette','flou','plastique','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29210458, 'sub_port_id': 29210475, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865050, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'Carton_brun': {'main_port_id': 29210458, 'sub_port_id': 29210476, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865051, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'flou': {'main_port_id': 29210458, 'sub_port_id': 29210477, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865052, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'plastique': {'main_port_id': 29210458, 'sub_port_id': 29210478, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865053, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'Carton_gris': {'main_port_id': 29210458, 'sub_port_id': 29210479, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865054, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'metal': {'main_port_id': 29210458, 'sub_port_id': 29210480, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865055, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 29210458, 'sub_port_id': 29210481, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865056, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'kraft': {'main_port_id': 29210458, 'sub_port_id': 29210482, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865057, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'autre_refus': {'main_port_id': 29210458, 'sub_port_id': 29210483, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865058, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'mal_croppe': {'main_port_id': 29210458, 'sub_port_id': 29210484, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865059, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'environnement': {'main_port_id': 29210458, 'sub_port_id': 29210485, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865060, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}, 'papier': {'main_port_id': 29210458, 'sub_port_id': 29210486, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19865061, 'last_updated_at': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 3, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 3, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210472 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29210486,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29210473 lien utilise dans velours : https://marlene.fotonower.com/velours/29210475,29210476,29210477,29210478,29210479,29210480,29210481,29210482,29210483,29210484,29210485,29210486?tags=cartonnette,Carton_brun,flou,plastique,Carton_gris,metal,Teint_Dans_La_Masse,kraft,autre_refus,mal_croppe,environnement,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29210458]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119] map_info['map_portfolio_photo'] : {29210458: [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119, 1398019098, 1398019097, 1398019094, 1398019091, 1398019090, 1398019089, 1398019083, 1398019080, 1398019077, 1398019075, 1398019070, 1398019063, 1398019037, 1398019034, 1398019033, 1398019032, 1398019031, 1398019016, 1398019015, 1398019014, 1398018996, 1398018992, 1398018989, 1398018986, 1398018984, 1398018970, 1398018968, 1398018967, 1398018966, 1398018965, 1398018938, 1398018936, 1398018934, 1398018923, 1398018922, 1398018919, 1398018878]} final : False mtd_id 4302 list_pids : [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119] Looping around the photos to save general results len do output : 1 /29210458. 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, '4188476') ('4302', '29210458', '1398019181', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019180', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019179', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019178', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019175', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019173', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019163', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019161', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019158', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019157', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019154', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019153', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019147', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019146', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019145', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019143', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019141', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019140', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019129', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019127', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019125', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019123', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019120', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019119', None, None, None, None, None, '4188476') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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, '29210458', "{'cartonnette': 29210462, 'Carton_brun': 29210463, 'flou': 29210464, 'plastique': 29210465, 'Carton_gris': 29210466, 'metal': 29210467, 'Teint_Dans_La_Masse': 29210468, 'kraft': 29210469, 'autre_refus': 29210470, 'mal_croppe': 29210471, 'environnement': 29210472, 'papier': 29210473}", None, None, None, None, '4188476'), ('4302', '29210458', '1398019181', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019180', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019179', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019178', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019175', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019173', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019163', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019161', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019158', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019157', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019154', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019153', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019147', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019146', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019145', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019143', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019141', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019140', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019129', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019127', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019125', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019123', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019120', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019119', None, None, None, None, None, '4188476')] time used for this insertion : 0.018747806549072266 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.928685188293457 time spend to save output : 0.019105911254882812 total time spend for step 1 : 1.9477910995483398 step2:final Fri Dec 5 03:42:59 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 (29210458) 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 29210458 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398018878,1398018923,1398018922,1398018919,1398018938,1398018936,1398018934,1398018970,1398018968,1398018967,1398018966,1398018965,1398018996,1398018992,1398018989,1398018986,1398018984,1398019016,1398019015,1398019014,1398019037,1398019034,1398019033,1398019032,1398019031,1398019181,1398019180,1398019083,1398019080,1398019179,1398019178,1398019077,1398019147,1398019075,1398019146,1398019070,1398019145,1398019063,1398019143,1398019098,1398019141,1398019097,1398019140,1398019094,1398019129,1398019091,1398019127,1398019090,1398019125,1398019089,1398019123,1398019120,1398019119,1398019173,1398019175,1398019161,1398019163,1398019157,1398019158,1398019154,1398019153); 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([29210458]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} new output for save of step final : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119] map_info['map_portfolio_photo'] : {29210458: [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119, 1398019098, 1398019097, 1398019094, 1398019091, 1398019090, 1398019089, 1398019083, 1398019080, 1398019077, 1398019075, 1398019070, 1398019063, 1398019037, 1398019034, 1398019033, 1398019032, 1398019031, 1398019016, 1398019015, 1398019014, 1398018996, 1398018992, 1398018989, 1398018986, 1398018984, 1398018970, 1398018968, 1398018967, 1398018966, 1398018965, 1398018938, 1398018936, 1398018934, 1398018923, 1398018922, 1398018919, 1398018878]} final : False mtd_id 4302 list_pids : [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119] Looping around the photos to save general results len do output : 24 /1398019181.Didn't retrieve data . /1398019180.Didn't retrieve data . /1398019179.Didn't retrieve data . /1398019178.Didn't retrieve data . /1398019175.Didn't retrieve data . /1398019173.Didn't retrieve data . /1398019163.Didn't retrieve data . /1398019161.Didn't retrieve data . /1398019158.Didn't retrieve data . /1398019157.Didn't retrieve data . /1398019154.Didn't retrieve data . /1398019153.Didn't retrieve data . /1398019147.Didn't retrieve data . /1398019146.Didn't retrieve data . /1398019145.Didn't retrieve data . /1398019143.Didn't retrieve data . /1398019141.Didn't retrieve data . /1398019140.Didn't retrieve data . /1398019129.Didn't retrieve data . /1398019127.Didn't retrieve data . /1398019125.Didn't retrieve data . /1398019123.Didn't retrieve data . /1398019120.Didn't retrieve data . /1398019119.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, '4188476') ('4302', '29210458', '1398019181', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019180', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019179', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019178', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019175', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019173', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019163', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019161', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019158', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019157', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019154', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019153', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019147', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019146', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019145', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019143', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019141', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019140', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019129', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019127', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019125', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019123', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019120', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019119', None, None, None, None, None, '4188476') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 72 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', '29210458', '1398019181', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019180', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019179', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019178', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019175', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019173', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019163', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019161', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019158', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019157', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019154', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019153', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019147', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019146', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019145', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019143', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019141', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019140', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019129', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019127', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019125', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019123', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019120', '0.07985077895880378', None, None, None, None, '4188476'), ('4302', '29210458', '1398019119', '0.07985077895880378', None, None, None, None, '4188476')] time used for this insertion : 0.018057584762573242 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08013629913330078 time spend to save output : 0.019034385681152344 total time spend for step 2 : 0.09917068481445312 step3:velours_tree Fri Dec 5 03:42:59 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 : {29210458: [{'cartonnette': 29210462, 'Carton_brun': 29210463, 'flou': 29210464, 'plastique': 29210465, 'Carton_gris': 29210466, 'metal': 29210467, 'Teint_Dans_La_Masse': 29210468, 'kraft': 29210469, 'autre_refus': 29210470, 'mal_croppe': 29210471, 'environnement': 29210472, 'papier': 29210473}]} input_args_next_step : {29210458: ()} output_args : {29210458: [{'cartonnette': 29210462, 'Carton_brun': 29210463, 'flou': 29210464, 'plastique': 29210465, 'Carton_gris': 29210466, 'metal': 29210467, 'Teint_Dans_La_Masse': 29210468, 'kraft': 29210469, 'autre_refus': 29210470, 'mal_croppe': 29210471, 'environnement': 29210472, 'papier': 29210473}]} args : 29210458 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 : ({'cartonnette': 29210462, 'Carton_brun': 29210463, 'flou': 29210464, 'plastique': 29210465, 'Carton_gris': 29210466, 'metal': 29210467, 'Teint_Dans_La_Masse': 29210468, 'kraft': 29210469, 'autre_refus': 29210470, 'mal_croppe': 29210471, 'environnement': 29210472, 'papier': 29210473},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29210458) 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([29210458]) 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.23733210563659668 time spend to save output : 5.054473876953125e-05 total time spend for step 3 : 0.2373826503753662 step4:send_mail_cod Fri Dec 5 03:43: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 : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} input_args_next_step : {1398019181: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019181 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019180 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019179 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019178 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019175 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019173 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019163 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019161 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019158 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019157 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019154 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019153 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019147 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019146 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019145 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019143 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019141 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019140 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019129 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019127 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019125 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019123 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019120 depend.output_id : 0 input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ()} output_args : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',)} args : 1398019119 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 : {29210458: [{'cartonnette': 29210462, 'Carton_brun': 29210463, 'flou': 29210464, 'plastique': 29210465, 'Carton_gris': 29210466, 'metal': 29210467, 'Teint_Dans_La_Masse': 29210468, 'kraft': 29210469, 'autre_refus': 29210470, 'mal_croppe': 29210471, 'environnement': 29210472, 'papier': 29210473}]} input_args_next_step : {1398019181: ('0.07985077895880378',), 1398019180: ('0.07985077895880378',), 1398019179: ('0.07985077895880378',), 1398019178: ('0.07985077895880378',), 1398019175: ('0.07985077895880378',), 1398019173: ('0.07985077895880378',), 1398019163: ('0.07985077895880378',), 1398019161: ('0.07985077895880378',), 1398019158: ('0.07985077895880378',), 1398019157: ('0.07985077895880378',), 1398019154: ('0.07985077895880378',), 1398019153: ('0.07985077895880378',), 1398019147: ('0.07985077895880378',), 1398019146: ('0.07985077895880378',), 1398019145: ('0.07985077895880378',), 1398019143: ('0.07985077895880378',), 1398019141: ('0.07985077895880378',), 1398019140: ('0.07985077895880378',), 1398019129: ('0.07985077895880378',), 1398019127: ('0.07985077895880378',), 1398019125: ('0.07985077895880378',), 1398019123: ('0.07985077895880378',), 1398019120: ('0.07985077895880378',), 1398019119: ('0.07985077895880378',), 29210458: ()} output_args : {29210458: [{'cartonnette': 29210462, 'Carton_brun': 29210463, 'flou': 29210464, 'plastique': 29210465, 'Carton_gris': 29210466, 'metal': 29210467, 'Teint_Dans_La_Masse': 29210468, 'kraft': 29210469, 'autre_refus': 29210470, 'mal_croppe': 29210471, 'environnement': 29210472, 'papier': 29210473}]} args : 29210458 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 :25, first value : ('0.07985077895880378',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29210458) 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_view ph WHERE photo_id IN (1398019181,1398019180,1398019179,1398019178,1398019175,1398019173,1398019163,1398019161,1398019158,1398019157,1398019154,1398019153,1398019147,1398019146,1398019145,1398019143,1398019141,1398019140,1398019129,1398019127,1398019125,1398019123,1398019120,1398019119) Found this number of photos: 24 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398019119 begin to download photo : 1398019129 begin to download photo : 1398019146 begin to download photo : 1398019158 begin to download photo : 1398019178 download finish for photo 1398019178 begin to download photo : 1398019179 download finish for photo 1398019158 begin to download photo : 1398019161 download finish for photo 1398019119 begin to download photo : 1398019120 download finish for photo 1398019129 download finish for photo 1398019146 begin to download photo : 1398019140 begin to download photo : 1398019147 download finish for photo 1398019179 begin to download photo : 1398019180 download finish for photo 1398019161 begin to download photo : 1398019163 download finish for photo 1398019140 begin to download photo : 1398019141 download finish for photo 1398019147 begin to download photo : 1398019153 download finish for photo 1398019120 begin to download photo : 1398019123 download finish for photo 1398019180 begin to download photo : 1398019181 download finish for photo 1398019141 begin to download photo : 1398019143 download finish for photo 1398019153 begin to download photo : 1398019154 download finish for photo 1398019163 begin to download photo : 1398019173 download finish for photo 1398019123 begin to download photo : 1398019125 download finish for photo 1398019181 download finish for photo 1398019173 begin to download photo : 1398019175 download finish for photo 1398019143 begin to download photo : 1398019145 download finish for photo 1398019154 begin to download photo : 1398019157 download finish for photo 1398019125 begin to download photo : 1398019127 download finish for photo 1398019175 download finish for photo 1398019145 download finish for photo 1398019127 download finish for photo 1398019157 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 24 ; length of list_pids : 24 ; length of list_args : 24 results_Auto_P29210458_05-12-2025_03_43_01.pdf 29210462 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398019109: '1764902365_4148171_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887318_0.png', 1398019111: '1764902365_4148171_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887319_0.png', 1398019137: '1764902425_4151064_1398019031_85790827480c9a1debb503b4ef70cf54_rle_crop_4059887374_0.png', 1398019138: '1764902425_4151064_1398019031_85790827480c9a1debb503b4ef70cf54_rle_crop_4059887373_0.png', 1398019165: '1764902467_4153122_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887318_0.png', 1398019166: '1764902467_4153122_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887319_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/7887ac48668ba65f2f49079c4789169b_26542044.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/386258bc3ce720f844dde402beeea936_33269200.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/2dd814819babe1fe6cda3e7a343a26ec_46540245.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/ad97a2b0ef22c810ead64607d6370128_85341610.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/7887ac48668ba65f2f49079c4789169b_29578937.png change filename to text .imagette292104621764902581/ imagette292104621764902581/1764902467_4153122_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887318_0.png.png imagette292104621764902581/1764902365_4148171_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887319_0.png.png imagette292104621764902581/1764902365_4148171_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887318_0.png.png imagette292104621764902581/1764902425_4151064_1398019031_85790827480c9a1debb503b4ef70cf54_rle_crop_4059887374_0.png.png imagette292104621764902581/1764902467_4153122_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887319_0.png.png imagette292104621764902581/1764902425_4151064_1398019031_85790827480c9a1debb503b4ef70cf54_rle_crop_4059887373_0.png.png imagette292104641764902581/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/386258bc3ce720f844dde402beeea936_57232433.png imagette292104621764902581 29210464 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292104641764902581 29210465 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398018982: '1764902066_4133124_1398018922_a3c3972c1434dc087a7581592263fdab_rle_crop_4059885898_0.png'} change filename to text .imagette292104651764902581/ imagette292104651764902581/1764902066_4133124_1398018922_a3c3972c1434dc087a7581592263fdab_rle_crop_4059885898_0.png.png imagette292104671764902581/ imagette292104691764902581/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c66135598fce41fb6c22e102c385b9f3_3716658.png imagette292104651764902581 29210467 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210467 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292104671764902581 29210469 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210469 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292104691764902581 29210470 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210470 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398019107: '1764902365_4148171_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887302_0.png', 1398019160: '1764902467_4153122_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887302_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/47fe6b2b95a53d5c37c2851a2a797be1_98553671.png change filename to text .imagette292104701764902581/ imagette292104701764902581/1764902467_4153122_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887302_0.png.png imagette292104701764902581/1764902365_4148171_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887302_0.png.png imagette292104711764902581/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/47fe6b2b95a53d5c37c2851a2a797be1_50560708.png imagette292104701764902581 29210471 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210471 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292104711764902581 29210463 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398019112: '1764902365_4148171_1398019016_8ab014dc4b2ef53456cb755c29e382ba_rle_crop_4059887263_0.png', 1398019113: '1764902365_4148171_1398019016_8ab014dc4b2ef53456cb755c29e382ba_rle_crop_4059887267_0.png', 1398019114: '1764902365_4148171_1398018989_ea7787f989858ba6d1691b252f6bf85b_rle_crop_4059887295_0.png', 1398019115: '1764902365_4148171_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887310_0.png', 1398019116: '1764902365_4148171_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887309_0.png', 1398019117: '1764902365_4148171_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887324_0.png', 1398019168: '1764902467_4153122_1398019016_8ab014dc4b2ef53456cb755c29e382ba_rle_crop_4059887263_0.png', 1398019169: '1764902467_4153122_1398019016_8ab014dc4b2ef53456cb755c29e382ba_rle_crop_4059887267_0.png', 1398019170: '1764902467_4153122_1398018989_ea7787f989858ba6d1691b252f6bf85b_rle_crop_4059887295_0.png', 1398019171: '1764902467_4153122_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887310_0.png', 1398019172: '1764902467_4153122_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887309_0.png', 1398019174: '1764902467_4153122_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887324_0.png', 1398019188: '1764902485_4155546_1398018967_feb651ea664bb8ddaa2aa0e2e21754ae_rle_crop_4059887725_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/cce726c6da0b2770ea61b6097d0b571f_31244670.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/8cb726923bb78f8b567ae426e7ed7606_12181428.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/7e92ff47eeba793e94b0706516226170_24515746.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3b30d5c709a0862a1ca8ef68ac31c8d1_201579.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/93d6460caff5f11e3e274b978390c9af_49102257.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/23191755a86a8507bc2330d1f997beca_40409892.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/cce726c6da0b2770ea61b6097d0b571f_23171755.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/8cb726923bb78f8b567ae426e7ed7606_81370546.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/7e92ff47eeba793e94b0706516226170_69184171.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3b30d5c709a0862a1ca8ef68ac31c8d1_88777237.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/93d6460caff5f11e3e274b978390c9af_92528020.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/23191755a86a8507bc2330d1f997beca_22874727.png change filename to text .imagette292104631764902581/ imagette292104631764902581/1764902467_4153122_1398018989_ea7787f989858ba6d1691b252f6bf85b_rle_crop_4059887295_0.png.png imagette292104631764902581/1764902365_4148171_1398019016_8ab014dc4b2ef53456cb755c29e382ba_rle_crop_4059887267_0.png.png imagette292104631764902581/1764902467_4153122_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887310_0.png.png imagette292104631764902581/1764902365_4148171_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887324_0.png.png imagette292104631764902581/1764902365_4148171_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887310_0.png.png imagette292104631764902581/1764902365_4148171_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887309_0.png.png imagette292104631764902581/1764902365_4148171_1398019016_8ab014dc4b2ef53456cb755c29e382ba_rle_crop_4059887263_0.png.png imagette292104631764902581/1764902467_4153122_1398019016_8ab014dc4b2ef53456cb755c29e382ba_rle_crop_4059887267_0.png.png imagette292104631764902581/1764902485_4155546_1398018967_feb651ea664bb8ddaa2aa0e2e21754ae_rle_crop_4059887725_0.png.png imagette292104631764902581/1764902467_4153122_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887324_0.png.png imagette292104631764902581/1764902467_4153122_1398018986_fd0566710f888f1336a7b3a86b0ff914_rle_crop_4059887309_0.png.png imagette292104631764902581/1764902365_4148171_1398018989_ea7787f989858ba6d1691b252f6bf85b_rle_crop_4059887295_0.png.png imagette292104631764902581/1764902467_4153122_1398019016_8ab014dc4b2ef53456cb755c29e382ba_rle_crop_4059887263_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/6628f1fe9d8c78c4fc9a070c3c108371_62376473.png imagette292104631764902581 29210466 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210466 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398019012: '1764902125_4136061_1398018878_177246e28a08d9f56c52437f97c7538b_rle_crop_4059886153_0.png', 1398019108: '1764902365_4148171_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887321_0.png', 1398019134: '1764902425_4151064_1398019034_d259fd42b2c71651869e7fc2d0187579_rle_crop_4059887361_0.png', 1398019135: '1764902425_4151064_1398019031_85790827480c9a1debb503b4ef70cf54_rle_crop_4059887375_0.png', 1398019162: '1764902467_4153122_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887321_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3b38d31eb836e58e188b016fce833639_86029680.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/7dda9dda4f447d3cfe85c3cbb72c8442_75197859.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/da33e7131117d35cf0e9138769b48c91_39878934.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/5ca254cf89d103c98c78314da2671c7b_31242671.png change filename to text .imagette292104661764902582/ imagette292104661764902582/1764902125_4136061_1398018878_177246e28a08d9f56c52437f97c7538b_rle_crop_4059886153_0.png.png imagette292104661764902582/1764902425_4151064_1398019031_85790827480c9a1debb503b4ef70cf54_rle_crop_4059887375_0.png.png imagette292104661764902582/1764902467_4153122_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887321_0.png.png imagette292104661764902582/1764902425_4151064_1398019034_d259fd42b2c71651869e7fc2d0187579_rle_crop_4059887361_0.png.png imagette292104661764902582/1764902365_4148171_1398018984_00a790f2a8d598591b529ccf9d7d139f_rle_crop_4059887321_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/7dda9dda4f447d3cfe85c3cbb72c8442_26189879.png imagette292104661764902582 29210468 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398019011: '1764902125_4136061_1398018878_177246e28a08d9f56c52437f97c7538b_rle_crop_4059886156_0.png', 1398019182: '1764902485_4155546_1398018996_31539334230db118904a53995789000e_rle_crop_4059887702_0.png', 1398019183: '1764902485_4155546_1398018968_cae7eefa65e793bb55b6b386abc49502_rle_crop_4059887715_0.png', 1398019184: '1764902485_4155546_1398018967_feb651ea664bb8ddaa2aa0e2e21754ae_rle_crop_4059887724_0.png', 1398019185: '1764902485_4155546_1398018966_9c0002736c665a9a2b8c085774c5d3c0_rle_crop_4059887734_0.png', 1398019186: '1764902485_4155546_1398018965_3562a92e8caa5c37742b58506227d81f_rle_crop_4059887744_0.png', 1398019187: '1764902485_4155546_1398018965_3562a92e8caa5c37742b58506227d81f_rle_crop_4059887745_0.png', 1398019207: '1764902547_4159698_1398019094_70cd1e71ada96c1fb4f45ec000bd984e_rle_crop_4059887847_0.png', 1398019208: '1764902547_4159698_1398019091_5e3700a2465017ba3203022471054577_rle_crop_4059887859_0.png', 1398019209: '1764902547_4159698_1398019089_4873c6e6982b81db31e136fb08f2e246_rle_crop_4059887879_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/f54f00998686d33ddfb7a5ac120d645b_94563502.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/9b4c70f9c0de6d0afe466c8d6357b003_94029936.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/d26c6b5c678a999ed6a128c8b1705121_81156727.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3d20c48c8a0b90cb7c724c5f6a4bf041_22508070.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/8ccf1cfd52ad3baea5d855b8b7b09633_64964018.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e568cb48a41aae3b6d4fc4f46633b456_43817091.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/76942158d0dec60714e29b29d0261f1c_67113898.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/1ddec085bfdeec0b56ab635d5028dcec_34327194.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/fa7143a9f48e98209ce22e533831500d_54673980.png change filename to text .imagette292104681764902583/ imagette292104681764902583/1764902125_4136061_1398018878_177246e28a08d9f56c52437f97c7538b_rle_crop_4059886156_0.png.png imagette292104681764902583/1764902485_4155546_1398018966_9c0002736c665a9a2b8c085774c5d3c0_rle_crop_4059887734_0.png.png imagette292104681764902583/1764902485_4155546_1398018967_feb651ea664bb8ddaa2aa0e2e21754ae_rle_crop_4059887724_0.png.png imagette292104681764902583/1764902485_4155546_1398018996_31539334230db118904a53995789000e_rle_crop_4059887702_0.png.png imagette292104681764902583/1764902547_4159698_1398019094_70cd1e71ada96c1fb4f45ec000bd984e_rle_crop_4059887847_0.png.png imagette292104681764902583/1764902547_4159698_1398019089_4873c6e6982b81db31e136fb08f2e246_rle_crop_4059887879_0.png.png imagette292104681764902583/1764902485_4155546_1398018965_3562a92e8caa5c37742b58506227d81f_rle_crop_4059887744_0.png.png imagette292104681764902583/1764902485_4155546_1398018968_cae7eefa65e793bb55b6b386abc49502_rle_crop_4059887715_0.png.png imagette292104681764902583/1764902547_4159698_1398019091_5e3700a2465017ba3203022471054577_rle_crop_4059887859_0.png.png imagette292104681764902583/1764902485_4155546_1398018965_3562a92e8caa5c37742b58506227d81f_rle_crop_4059887745_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c6bc65a970801f534345c46232700fb0_37744630.png imagette292104681764902583 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29210458 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29210475,29210476,29210477,29210478,29210479,29210480,29210481,29210482,29210483,29210484,29210485,29210486?tags=cartonnette,Carton_brun,flou,plastique,Carton_gris,metal,Teint_Dans_La_Masse,kraft,autre_refus,mal_croppe,environnement,papier your option no_mail is active, we will not send the real mail to your client args[1398019181] : ('0.07985077895880378',) no score found for photo 1398019181 We are sending mail with results at report@fotonower.com args[1398019180] : ('0.07985077895880378',) no score found for photo 1398019180 We are sending mail with results at report@fotonower.com args[1398019179] : ('0.07985077895880378',) no score found for photo 1398019179 We are sending mail with results at report@fotonower.com args[1398019178] : ('0.07985077895880378',) no score found for photo 1398019178 We are sending mail with results at report@fotonower.com args[1398019175] : ('0.07985077895880378',) no score found for photo 1398019175 We are sending mail with results at report@fotonower.com args[1398019173] : ('0.07985077895880378',) no score found for photo 1398019173 We are sending mail with results at report@fotonower.com args[1398019163] : ('0.07985077895880378',) no score found for photo 1398019163 We are sending mail with results at report@fotonower.com args[1398019161] : ('0.07985077895880378',) no score found for photo 1398019161 We are sending mail with results at report@fotonower.com args[1398019158] : ('0.07985077895880378',) no score found for photo 1398019158 We are sending mail with results at report@fotonower.com args[1398019157] : ('0.07985077895880378',) no score found for photo 1398019157 We are sending mail with results at report@fotonower.com args[1398019154] : ('0.07985077895880378',) no score found for photo 1398019154 We are sending mail with results at report@fotonower.com args[1398019153] : ('0.07985077895880378',) no score found for photo 1398019153 We are sending mail with results at report@fotonower.com args[1398019147] : ('0.07985077895880378',) no score found for photo 1398019147 We are sending mail with results at report@fotonower.com args[1398019146] : ('0.07985077895880378',) no score found for photo 1398019146 We are sending mail with results at report@fotonower.com args[1398019145] : ('0.07985077895880378',) no score found for photo 1398019145 We are sending mail with results at report@fotonower.com args[1398019143] : ('0.07985077895880378',) no score found for photo 1398019143 We are sending mail with results at report@fotonower.com args[1398019141] : ('0.07985077895880378',) no score found for photo 1398019141 We are sending mail with results at report@fotonower.com args[1398019140] : ('0.07985077895880378',) no score found for photo 1398019140 We are sending mail with results at report@fotonower.com args[1398019129] : ('0.07985077895880378',) no score found for photo 1398019129 We are sending mail with results at report@fotonower.com args[1398019127] : ('0.07985077895880378',) no score found for photo 1398019127 We are sending mail with results at report@fotonower.com args[1398019125] : ('0.07985077895880378',) no score found for photo 1398019125 We are sending mail with results at report@fotonower.com args[1398019123] : ('0.07985077895880378',) no score found for photo 1398019123 We are sending mail with results at report@fotonower.com args[1398019120] : ('0.07985077895880378',) no score found for photo 1398019120 We are sending mail with results at report@fotonower.com args[1398019119] : ('0.07985077895880378',) no score found for photo 1398019119 We are sending mail with results at report@fotonower.com refus_total : 0.07985077895880378 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210458 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_P29210458_05-12-2025_03_43_01.pdf results_Auto_P29210458_05-12-2025_03_43_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210458_05-12-2025_03_43_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','29210458','results_Auto_P29210458_05-12-2025_03_43_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210458_05-12-2025_03_43_01.pdf','pdf','','0.25','0.07985077895880378') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29210458]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119] map_info['map_portfolio_photo'] : {29210458: [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119, 1398019098, 1398019097, 1398019094, 1398019091, 1398019090, 1398019089, 1398019083, 1398019080, 1398019077, 1398019075, 1398019070, 1398019063, 1398019037, 1398019034, 1398019033, 1398019032, 1398019031, 1398019016, 1398019015, 1398019014, 1398018996, 1398018992, 1398018989, 1398018986, 1398018984, 1398018970, 1398018968, 1398018967, 1398018966, 1398018965, 1398018938, 1398018936, 1398018934, 1398018923, 1398018922, 1398018919, 1398018878]} final : False mtd_id 4302 list_pids : [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119] 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, '4188476') ('4302', '29210458', '1398019181', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019180', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019179', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019178', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019175', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019173', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019163', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019161', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019158', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019157', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019154', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019153', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019147', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019146', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019145', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019143', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019141', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019140', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019129', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019127', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019125', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019123', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019120', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019119', None, None, None, None, None, '4188476') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '29210458', '1398019181', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019180', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019179', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019178', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019175', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019173', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019163', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019161', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019158', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019157', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019154', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019153', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019147', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019146', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019145', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019143', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019141', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019140', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019129', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019127', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019125', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019123', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019120', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019119', None, None, None, None, None, '4188476')] time used for this insertion : 0.02170705795288086 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.61794638633728 time spend to save output : 0.022133827209472656 total time spend for step 4 : 5.640080213546753 step5:split_time_score Fri Dec 5 03:43: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 : ['29210458'] 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 : [('29210458',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29210458) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398019178: {'path': 'temp/1764902580_3195920_1398019178_3e5834edf1d54c49e51dc05f774552cf.jpg', 'extension': 'jpg'}, 1398019179: {'path': 'temp/1764902580_3195920_1398019179_af3d4efe7c4bd060a58e7c664fdf1246.jpg', 'extension': 'jpg'}, 1398019180: {'path': 'temp/1764902580_3195920_1398019180_3e492fa89a932c6c650a0d3eae8bd9bb.jpg', 'extension': 'jpg'}, 1398019181: {'path': 'temp/1764902580_3195920_1398019181_13a742316a25ce3c6e06e92886d63f01.jpg', 'extension': 'jpg'}, 1398019158: {'path': 'temp/1764902580_3195920_1398019158_a1e36d91c1af8b4ca0eee9a74d7eda7d.jpg', 'extension': 'jpg'}, 1398019161: {'path': 'temp/1764902580_3195920_1398019161_f693a4d013e24e10420e4c139e7815d0.jpg', 'extension': 'jpg'}, 1398019163: {'path': 'temp/1764902580_3195920_1398019163_51bbfd978e57f29f7a1adc996bc6aed9.jpg', 'extension': 'jpg'}, 1398019173: {'path': 'temp/1764902580_3195920_1398019173_c76d7497c4fd6819a622a8f73928a3f5.jpg', 'extension': 'jpg'}, 1398019175: {'path': 'temp/1764902580_3195920_1398019175_74c09745f85a71ab8d083efb60784ad1.jpg', 'extension': 'jpg'}, 1398019129: {'path': 'temp/1764902580_3195920_1398019129_4a49c92b1dd716c5c8615b7b2bf797b4.jpg', 'extension': 'jpg'}, 1398019140: {'path': 'temp/1764902580_3195920_1398019140_fc5130275fab8345fc0049d167c584de.jpg', 'extension': 'jpg'}, 1398019141: {'path': 'temp/1764902580_3195920_1398019141_eb15f08ad33664a03db4b60e67ac1c88.jpg', 'extension': 'jpg'}, 1398019143: {'path': 'temp/1764902580_3195920_1398019143_ad853908e462659b06f352dba2415b70.jpg', 'extension': 'jpg'}, 1398019145: {'path': 'temp/1764902580_3195920_1398019145_f2937b43b4fe958271102a573b0019b2.jpg', 'extension': 'jpg'}, 1398019119: {'path': 'temp/1764902580_3195920_1398019119_7113a3a05813c5b2e5ada4defdea3975.jpg', 'extension': 'jpg'}, 1398019120: {'path': 'temp/1764902580_3195920_1398019120_5d150a7b9a83c17ebe259b4a5fb1fa15.jpg', 'extension': 'jpg'}, 1398019123: {'path': 'temp/1764902580_3195920_1398019123_41194a3485c685e0b2befe7afe4e8d05.jpg', 'extension': 'jpg'}, 1398019125: {'path': 'temp/1764902580_3195920_1398019125_6bf57f0de4f8be39743711f0403a8d06.jpg', 'extension': 'jpg'}, 1398019127: {'path': 'temp/1764902580_3195920_1398019127_445980f4777772928c9611d95eb6a6ff.jpg', 'extension': 'jpg'}, 1398019146: {'path': 'temp/1764902580_3195920_1398019146_625c37d5f2b858ebf874d5d494afe881.jpg', 'extension': 'jpg'}, 1398019147: {'path': 'temp/1764902580_3195920_1398019147_defb910d914ebf1950f830f85707bd40.jpg', 'extension': 'jpg'}, 1398019153: {'path': 'temp/1764902580_3195920_1398019153_9c4dc0a60fe1d94af1490c594e480878.jpg', 'extension': 'jpg'}, 1398019154: {'path': 'temp/1764902580_3195920_1398019154_3db0d675ef6f69fe59801cf739ae3b3b.jpg', 'extension': 'jpg'}, 1398019157: {'path': 'temp/1764902580_3195920_1398019157_949af6eec0aa08ef798d6a14f795090b.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 = 29210458; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29210458 group by h (('03', 61),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29210458 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 (29210458) 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 (29210458) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05122025 29210458 Nombre de photos uploadées : 61 / 23040 (0%) 05122025 29210458 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 05122025 29210458 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1398018878, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/177246e28a08d9f56c52437f97c7538b.jpg', 'username': None, 'uploaded_at': 1764901867, 'text': 'image_05122025_03_30_14_010141m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1398018923, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/71084f9bd048c9bda22571c4b9d126a5.jpg', 'username': None, 'uploaded_at': 1764901927, 'text': 'image_05122025_03_30_24_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398018922, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/a3c3972c1434dc087a7581592263fdab.jpg', 'username': None, 'uploaded_at': 1764901927, 'text': 'image_05122025_03_31_14_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398018919, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/338a1fec913a019e3050cdf1835e0a1e.jpg', 'username': None, 'uploaded_at': 1764901927, 'text': 'image_05122025_03_31_34_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 1.0013580322265625e-05 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031685829162597656 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29210458, '2025-12-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2697308,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.272341251373291 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= 2697308 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29203465, 'dashboard_result_id': 18098589, '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_P29203465_05-12-2025_00_20_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29204100, 'dashboard_result_id': 18098590, '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_P29204100_05-12-2025_00_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29204816, 'dashboard_result_id': 18098591, '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_P29204816_05-12-2025_00_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29205333, 'dashboard_result_id': 18098592, '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_P29205333_05-12-2025_01_37_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29206956, 'dashboard_result_id': 18098593, '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_P29206956_05-12-2025_01_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29206959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206969, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29207334, 'dashboard_result_id': 18098594, '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_P29207334_05-12-2025_02_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29207339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29207340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29207341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29207342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29207343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29207344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29207345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29207346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29207347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29207348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29207349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29207350, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29208070, 'dashboard_result_id': 18098595, '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_P29208070_05-12-2025_02_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208083, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29208366, 'dashboard_result_id': 18098596, '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_P29208366_05-12-2025_02_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208417, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29208840, 'dashboard_result_id': 18098597, '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_P29208840_05-12-2025_03_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208855, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29209184, 'dashboard_result_id': 18098598, '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_P29209184_05-12-2025_03_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29209202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29209211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209213, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29209764, 'dashboard_result_id': 18098599, '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_P29209764_05-12-2025_03_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29209768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29209769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209779, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2704846, 'mtr_portfolio_id': 29210458, 'dashboard_result_id': 18098600, '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_P29210458_05-12-2025_03_41_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210473, '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 = 29203465 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': 4187741, 'mtr_portfolio_id': 29203465, 'created_at': datetime.datetime(2025, 12, 5, 0, 20, 58), 'result': '0.04651784933153334', 'result_long': None, 'result_double': None}] Qualite : 0.04651784933153334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29203465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29203465_05-12-2025_00_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29203465 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_P29203465_05-12-2025_00_20_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, 'pht': 3726}}" where mtr_portfolio_id = 29203465 and dashboard_run_id = 2704846 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`=29203465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098589, 0.04651784933153334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29203465_05-12-2025_00_20_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, '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 = 29204100 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': 4187807, 'mtr_portfolio_id': 29204100, 'created_at': datetime.datetime(2025, 12, 5, 0, 34, 30), 'result': '0.05793572545112421', 'result_long': None, 'result_double': None}] Qualite : 0.05793572545112421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29204100 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204100_05-12-2025_00_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29204100 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_P29204100_05-12-2025_00_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, 'pht': 3726}}" where mtr_portfolio_id = 29204100 and dashboard_run_id = 2704846 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`=29204100 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098590, 0.05793572545112421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204100_05-12-2025_00_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, '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 = 29204816 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': 4187857, 'mtr_portfolio_id': 29204816, 'created_at': datetime.datetime(2025, 12, 5, 0, 48, 57), 'result': '0.06523619095960073', 'result_long': None, 'result_double': None}] Qualite : 0.06523619095960073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29204816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204816_05-12-2025_00_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29204816 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_P29204816_05-12-2025_00_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, 'pht': 3726}}" where mtr_portfolio_id = 29204816 and dashboard_run_id = 2704846 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`=29204816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098591, 0.06523619095960073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204816_05-12-2025_00_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, '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 = 29205333 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': 4187927, 'mtr_portfolio_id': 29205333, 'created_at': datetime.datetime(2025, 12, 5, 1, 37, 30), 'result': '0.035921190619032206', 'result_long': None, 'result_double': None}] Qualite : 0.035921190619032206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29205333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29205333_05-12-2025_01_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29205333 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_P29205333_05-12-2025_01_37_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, 'pht': 3726}}" where mtr_portfolio_id = 29205333 and dashboard_run_id = 2704846 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`=29205333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098592, 0.035921190619032206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29205333_05-12-2025_01_37_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, '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 = 29206956 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': 4188049, 'mtr_portfolio_id': 29206956, 'created_at': datetime.datetime(2025, 12, 5, 1, 46, 59), 'result': '0.04861845343586731', 'result_long': None, 'result_double': None}] Qualite : 0.04861845343586731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29206956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29206956_05-12-2025_01_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29206956 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_P29206956_05-12-2025_01_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29206959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206969, 'pht': 3726}}" where mtr_portfolio_id = 29206956 and dashboard_run_id = 2704846 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`=29206956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098593, 0.04861845343586731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29206956_05-12-2025_01_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29206959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206969, '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 = 29207334 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': 4188077, 'mtr_portfolio_id': 29207334, 'created_at': datetime.datetime(2025, 12, 5, 2, 18, 59), 'result': '0.06305644086646897', 'result_long': None, 'result_double': None}] Qualite : 0.06305644086646897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29207334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29207334_05-12-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29207334 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_P29207334_05-12-2025_02_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29207339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29207340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29207341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29207342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29207343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29207344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29207345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29207346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29207347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29207348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29207349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29207350, 'pht': 3726}}" where mtr_portfolio_id = 29207334 and dashboard_run_id = 2704846 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`=29207334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098594, 0.06305644086646897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29207334_05-12-2025_02_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29207339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29207340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29207341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29207342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29207343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29207344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29207345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29207346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29207347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29207348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29207349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29207350, '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 = 29208070 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': 4188167, 'mtr_portfolio_id': 29208070, 'created_at': datetime.datetime(2025, 12, 5, 2, 32, 59), 'result': '0.043778303067274364', 'result_long': None, 'result_double': None}] Qualite : 0.043778303067274364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29208070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208070_05-12-2025_02_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29208070 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_P29208070_05-12-2025_02_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208083, 'pht': 3726}}" where mtr_portfolio_id = 29208070 and dashboard_run_id = 2704846 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`=29208070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098595, 0.043778303067274364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208070_05-12-2025_02_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208083, '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 = 29208366 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': 4188201, 'mtr_portfolio_id': 29208366, 'created_at': datetime.datetime(2025, 12, 5, 2, 46, 30), 'result': '0.059706277655994976', 'result_long': None, 'result_double': None}] Qualite : 0.059706277655994976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29208366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208366_05-12-2025_02_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29208366 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_P29208366_05-12-2025_02_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208417, 'pht': 3726}}" where mtr_portfolio_id = 29208366 and dashboard_run_id = 2704846 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`=29208366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098596, 0.059706277655994976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208366_05-12-2025_02_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208417, '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 = 29208840 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': 4188260, 'mtr_portfolio_id': 29208840, 'created_at': datetime.datetime(2025, 12, 5, 3, 2, 58), 'result': '0.05194858121456301', 'result_long': None, 'result_double': None}] Qualite : 0.05194858121456301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29208840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208840_05-12-2025_03_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29208840 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_P29208840_05-12-2025_03_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208855, 'pht': 3726}}" where mtr_portfolio_id = 29208840 and dashboard_run_id = 2704848 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`=29208840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098597, 0.05194858121456301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208840_05-12-2025_03_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208855, '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 = 29209184 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': 4188340, 'mtr_portfolio_id': 29209184, 'created_at': datetime.datetime(2025, 12, 5, 3, 16, 57), 'result': '0.057964945585717076', 'result_long': None, 'result_double': None}] Qualite : 0.057964945585717076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29209184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209184_05-12-2025_03_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29209184 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_P29209184_05-12-2025_03_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29209202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29209211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209213, 'pht': 3726}}" where mtr_portfolio_id = 29209184 and dashboard_run_id = 2704848 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`=29209184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098598, 0.057964945585717076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209184_05-12-2025_03_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29209202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29209211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209213, '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 = 29209764 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': 4188419, 'mtr_portfolio_id': 29209764, 'created_at': datetime.datetime(2025, 12, 5, 3, 33, 28), 'result': '0.05321275219122587', 'result_long': None, 'result_double': None}] Qualite : 0.05321275219122587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29209764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209764_05-12-2025_03_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29209764 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_P29209764_05-12-2025_03_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29209768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29209769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209779, 'pht': 3726}}" where mtr_portfolio_id = 29209764 and dashboard_run_id = 2704848 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`=29209764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098599, 0.05321275219122587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209764_05-12-2025_03_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29209768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29209769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209779, '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 = 29210458 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': 4188476, 'mtr_portfolio_id': 29210458, 'created_at': datetime.datetime(2025, 12, 5, 3, 42, 59), 'result': '0.07985077895880378', 'result_long': None, 'result_double': None}] Qualite : 0.07985077895880378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29210458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210458_05-12-2025_03_43_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29210458 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_P29210458_05-12-2025_03_43_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210473, 'pht': 3726}}" where mtr_portfolio_id = 29210458 and dashboard_run_id = 2704848 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`=29210458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18098600, 0.07985077895880378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210458_05-12-2025_03_43_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210473, '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 (29203465,29204100,29204816,29205333,29206956,29207334,29208070,29208366,29208840,29209184,29209764,29210458) result : ((1397959937,), (1397959974,), (1397960021,), (1397960092,), (1397960481,), (1397960521,), (1397960553,), (1397960586,), (1397961101,), (1397961167,), (1397961232,), (1397962113,), (1397962192,), (1397962286,), (1397962376,), (1397962475,), (1397963967,), (1397964076,), (1397964165,), (1397964258,), (1397964358,), (1397964394,), (1397964744,), (1397964772,), (1397964812,), (1397964911,), (1397965998,), (1397966063,), (1397966185,), (1397966241,), (1397966925,), (1397966997,), (1397967080,), (1397967152,), (1397967591,), (1397967627,), (1397967667,), (1397967701,), (1397967707,), (1397967711,), (1397967726,), (1397967764,), (1397967950,), (1397967985,), (1397968021,), (1397968057,), (1397968512,), (1397968551,), (1397968590,), (1397969197,), (1397969245,), (1397969714,), (1397969748,), (1397970267,), (1397970299,), (1397970332,), (1397970910,), (1397970769,), (1397970805,), (1397970839,), (1397970875,), (1397971205,), (1397971206,), (1397971207,), (1397971282,), (1397971370,), (1397971408,), (1397971730,), (1397971776,), (1397971886,), (1397972014,), (1397972851,), (1397972853,), (1397972855,), (1397972857,), (1397972860,), (1397972861,), (1397973076,), (1397973078,), (1397973177,), (1397973179,), (1397973184,), (1397973288,), (1397973336,), (1397973357,), (1397973445,), (1397973531,), (1397973629,), (1397973718,), (1397973811,), (1397973900,), (1397974284,), (1397974319,), (1397974652,), (1397974654,), (1397974656,), (1397974658,), (1397975085,), (1397975094,), (1397975117,), (1397975118,), (1397975156,), (1397975158,), (1397975169,), (1397975171,), (1397975173,), (1397975269,), (1397975304,), (1397975311,), (1397975312,), (1397975343,), (1397975358,), (1397975552,), (1397975556,), (1397975558,), (1397975560,), (1397975563,), (1397975727,), (1397975730,), (1397975731,), (1397975732,), (1397975876,), (1397975904,), (1397975917,), (1397975920,), (1397975944,), (1397975950,), (1397975954,), (1397975955,), (1397975959,), (1397975965,), (1397977062,), (1397977576,), (1397977577,), (1397977578,), (1397977644,), (1397977676,), (1397977678,), (1397977881,), (1397977882,), (1397977042,), (1397977044,), (1397977046,), (1397977048,), (1397977049,), (1397977157,), (1397977177,), (1397977207,), (1397977311,), (1397977453,), (1397977557,), (1397977759,), (1397977760,), (1397977762,), (1397977763,), (1397977770,), (1397977772,), (1397977774,), (1397977775,), (1397977812,), (1397977815,), (1397978023,), (1397978061,), (1397978096,), (1397978133,), (1397978293,), (1397978298,), (1397978304,), (1397978332,), (1397978337,), (1397978370,), (1397978373,), (1397978375,), (1397978377,), (1397978379,), (1397978388,), (1397978390,), (1397978391,), (1397978392,), (1397978394,), (1397978396,), (1397978410,), (1397978412,), (1397978414,), (1397978416,), (1397978419,), (1397978422,), (1397978650,), (1397978709,), (1397978748,), (1397978763,), (1397978766,), (1397978771,), (1397978837,), (1397978838,), (1397978839,), (1397978847,), (1397978909,), (1397978927,), (1397978963,), (1397978986,), (1397979067,), (1397979167,), (1397979882,), (1397979991,), (1397980105,), (1397980152,), (1397980399,), (1397980401,), (1397980442,), (1397980898,), (1397980899,), (1397980900,), (1397980964,), (1397981145,), (1397981151,), (1397981166,), (1397981211,), (1397981213,), (1397981215,), (1397981217,), (1397981221,), (1397981224,), (1397981261,), (1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,), (1397994026,), (1397995481,), (1397995607,), (1397997021,), (1397997055,), (1397997171,), (1397997207,), (1397997458,), (1397997506,), (1397997519,), (1397997521,), (1397997575,), (1397997577,), (1397997579,), (1397997581,), (1397997583,), (1397997600,), (1397997601,), (1397997602,), (1397997604,), (1397997606,), (1397997609,), (1397997618,), (1397997619,), (1397997621,), (1397997624,), (1397997636,), (1397997893,), (1397997924,), (1397997955,), (1397998338,), (1397998369,), (1397998396,), (1397998428,), (1397998461,), (1397998613,), (1397998614,), (1397998616,), (1397998618,), (1397998620,), (1397999140,), (1397999257,), (1397999392,), (1398000453,), (1398000383,), (1398001243,), (1398001374,), (1398001428,), (1398001466,), (1398001504,), (1398001542,), (1398001919,), (1398001921,), (1398001922,), (1398001923,), (1398001925,), (1398001927,), (1398002172,), (1398002196,), (1398002215,), (1398002219,), (1398002249,), (1398002263,), (1398002280,), (1398002282,), (1398002284,), (1398002286,), (1398002289,), (1398002291,), (1398002295,), (1398002297,), (1398002298,), (1398002300,), (1398002302,), (1398002304,), (1398002309,), (1398002312,), (1398002315,), (1398002320,), (1398002324,), (1398002327,), (1398002334,), (1398002335,), (1398002337,), (1398002339,), (1398002342,), (1398002352,), (1398002354,), (1398002356,), (1398002390,), (1398002391,), (1398002393,), (1398002395,), (1398002398,), (1398002406,), (1398002407,), (1398002409,), (1398002411,), (1398002447,), (1398002448,), (1398002449,), (1398002462,), (1398002912,), (1398002908,), (1398002910,), (1398002911,), (1398002926,), (1398002928,), (1398002947,), (1398002948,), (1398002963,), (1398002964,), (1398002979,), (1398002980,), (1398003849,), (1398003867,), (1398003868,), (1398003895,), (1398003928,), (1398005177,), (1398005212,), (1398005247,), (1398005348,), (1398005390,), (1398005421,), (1398005454,), (1398005489,), (1398005665,), (1398005673,), (1398005675,), (1398005679,), (1398005785,), (1398005787,), (1398005789,), (1398005803,), (1398005804,), (1398005805,), (1398005806,), (1398005832,), (1398005833,), (1398005834,), (1398005836,), (1398005839,), (1398005841,), (1398005849,), (1398005851,), (1398005853,), (1398005868,), (1398005855,), (1398005857,), (1398005859,), (1398005862,), (1398005865,), (1398005884,), (1398005886,), (1398005887,), (1398005888,), (1398005891,), (1398005904,), (1398005905,), (1398005906,), (1398005931,), (1398005932,), (1398005934,), (1398005936,), (1398005939,), (1398005942,), (1398005950,), (1398005952,), (1398005954,), (1398005956,), (1398005959,), (1398005961,), (1398005980,), (1398005981,), (1398005982,), (1398005983,), (1398005996,), (1398005997,), (1398005999,), (1398006001,), (1398006005,), (1398006036,), (1398006038,), (1398006039,), (1398006040,), (1398006042,), (1398006044,), (1398006059,), (1398006061,), (1398006062,), (1398006064,), (1398006066,), (1398006068,), (1398006086,), (1398006088,), (1398006091,), (1398006094,), (1398006097,), (1398006100,), (1398006103,), (1398006104,), (1398006105,), (1398006107,), (1398006108,), (1398006109,), (1398006113,), (1398006115,), (1398006117,), (1398006119,), (1398006128,), (1398006134,), (1398006139,), (1398006141,), (1398006142,), (1398006145,), (1398006147,), (1398006149,), (1398006159,), (1398006160,), (1398006161,), (1398006185,), (1398006189,), (1398006191,), (1398006194,), (1398006206,), (1398006207,), (1398006209,), (1398006238,), (1398006237,), (1398006251,), (1398006253,), (1398006255,), (1398006257,), (1398006259,), (1398006296,), (1398006302,), (1398006320,), (1398006321,), (1398006323,), (1398006325,), (1398006328,), (1398006331,), (1398006345,), (1398006346,), (1398006347,), (1398006349,), (1398006351,), (1398006353,), (1398006363,), (1398006365,), (1398006368,), (1398006371,), (1398006374,), (1398006376,), (1398006387,), (1398006388,), (1398006389,), (1398006391,), (1398006393,), (1398006394,), (1398006398,), (1398006399,), (1398006402,), (1398006405,), (1398006407,), (1398006410,), (1398006414,), (1398006415,), (1398006416,), (1398006446,), (1398006448,), (1398006450,), (1398006452,), (1398006455,), (1398006458,), (1398006462,), (1398006465,), (1398006467,), (1398006469,), (1398006471,), (1398006473,), (1398006475,), (1398006476,), (1398006479,), (1398006481,), (1398006483,), (1398006487,), (1398006498,), (1398006499,), (1398006500,), (1398006515,), (1398006516,), (1398006517,), (1398006518,), (1398006521,), (1398006539,), (1398006540,), (1398006541,), (1398006542,), (1398006551,), (1398006553,), (1398006560,), (1398006561,), (1398006984,), (1398006880,), (1398006916,), (1398006948,), (1398007373,), (1398007408,), (1398007412,), (1398007414,), (1398007430,), (1398007453,), (1398007512,), (1398007587,), (1398007657,), (1398007727,), (1398008229,), (1398008283,), (1398008316,), (1398008405,), (1398008802,), (1398008839,), (1398008876,), (1398008912,), (1398008942,), (1398008944,), (1398008956,), (1398009645,), (1398009701,), (1398009785,), (1398009829,), (1398009866,), (1398010258,), (1398010298,), (1398010331,), (1398010432,), (1398010435,), (1398010457,), (1398011222,), (1398011282,), (1398011342,), (1398011389,), (1398011438,), (1398011740,), (1398011776,), (1398012235,), (1398012271,), (1398012719,), (1398012753,), (1398012787,), (1398012824,), (1398012858,), (1398013143,), (1398013174,), (1398013208,), (1398013274,), (1398013931,), (1398013993,), (1398014027,), (1398014061,), (1398014122,), (1398014558,), (1398014525,), (1398014719,), (1398014721,), (1398014724,), (1398014756,), (1398014824,), (1398014893,), (1398015410,), (1398015447,), (1398015499,), (1398015562,), (1398015601,), (1398015639,), (1398015883,), (1398015885,), (1398015887,), (1398015890,), (1398015893,), (1398015895,), (1398016136,), (1398016200,), (1398016271,), (1398016341,), (1398016411,), (1398016478,), (1398016679,), (1398016711,), (1398016747,), (1398016789,), (1398016853,), (1398016918,), (1398017076,), (1398017119,), (1398017121,), (1398017123,), (1398017126,), (1398017129,), (1398017134,), (1398017135,), (1398017136,), (1398017163,), (1398017199,), (1398017235,), (1398017358,), (1398017445,), (1398017446,), (1398017479,), (1398017542,), (1398017947,), (1398017982,), (1398018015,), (1398018047,), (1398018081,), (1398018343,), (1398018344,), (1398018346,), (1398018348,), (1398018350,), (1398018491,), (1398018526,), (1398018560,), (1398018761,), (1398018769,), (1398018771,), (1398018775,), (1398018793,), (1398018796,), (1398018799,), (1398018803,), (1398018816,), (1398018820,), (1398018824,), (1398018828,), (1398018833,), (1398018845,), (1398018858,), (1398018861,), (1398018863,), (1398018865,), (1398018871,), (1398018873,), (1398018880,), (1398018882,), (1398018884,), (1398018886,), (1398018888,), (1398018896,), (1398018900,), (1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05122025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29210458]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119] map_info['map_portfolio_photo'] : {29210458: [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119, 1398019098, 1398019097, 1398019094, 1398019091, 1398019090, 1398019089, 1398019083, 1398019080, 1398019077, 1398019075, 1398019070, 1398019063, 1398019037, 1398019034, 1398019033, 1398019032, 1398019031, 1398019016, 1398019015, 1398019014, 1398018996, 1398018992, 1398018989, 1398018986, 1398018984, 1398018970, 1398018968, 1398018967, 1398018966, 1398018965, 1398018938, 1398018936, 1398018934, 1398018923, 1398018922, 1398018919, 1398018878]} final : True mtd_id 4302 list_pids : [1398019181, 1398019180, 1398019179, 1398019178, 1398019175, 1398019173, 1398019163, 1398019161, 1398019158, 1398019157, 1398019154, 1398019153, 1398019147, 1398019146, 1398019145, 1398019143, 1398019141, 1398019140, 1398019129, 1398019127, 1398019125, 1398019123, 1398019120, 1398019119] Looping around the photos to save general results len do output : 1 /29210458Didn'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, '4188476') ('4302', '29210458', '1398019181', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019180', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019179', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019178', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019175', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019173', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019163', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019161', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019158', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019157', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019154', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019153', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019147', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019146', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019145', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019143', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019141', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019140', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019129', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019127', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019125', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019123', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019120', None, None, None, None, None, '4188476') ('4302', None, None, None, None, None, None, None, '4188476') ('4302', '29210458', '1398019119', None, None, None, None, None, '4188476') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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, '29210458', 'None', None, None, None, None, '4188476'), ('4302', '29210458', '1398019181', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019180', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019179', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019178', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019175', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019173', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019163', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019161', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019158', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019157', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019154', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019153', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019147', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019146', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019145', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019143', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019141', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019140', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019129', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019127', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019125', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019123', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019120', None, None, None, None, None, '4188476'), ('4302', '29210458', '1398019119', None, None, None, None, None, '4188476')] time used for this insertion : 0.022790193557739258 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1740663051605225 time spend to save output : 0.023085832595825195 total time spend for step 5 : 1.1971521377563477 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 (4188476) 2.40user 2.58system 0:11.90elapsed 41%CPU (0avgtext+0avgdata 167920maxresident)k 352inputs+18080outputs (0major+79987minor)pagefaults 0swaps