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 : 2506305 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 (3958033) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3958033) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897649 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3958033'] with mtr_portfolio_ids : ['27897649'] and first list_photo_ids : [] new path : /proc/2506305/ Name: python3 Umask: 0002 State: R (running) Tgid: 2506305 Ngid: 0 Pid: 2506305 PPid: 2506304 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2506305 NSpid: 2506305 NSpgid: 2505298 NSsid: 2505298 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98156 kB VmRSS: 98156 kB RssAnon: 59852 kB RssFile: 38304 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 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: 51 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2506305', 'Ngid': '0', 'Pid': '2506305', 'PPid': '2506304', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2506305', 'NSpid': '2506305', 'NSpgid': '2505298', 'NSsid': '2505298', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98156 kB', 'VmRSS': '98156 kB', 'RssAnon': '59852 kB', 'RssFile': '38304 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '51', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '2506305', '1106856', '0', '1106856', '865608', '98156', b'', 'marlene', '3958033') 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 (27897649) 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 (3958033 ) ) 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 (27897649) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1389906297, 'portfolio_id': 27897649}, {'photo_id': 1389906179, 'portfolio_id': 27897649}, {'photo_id': 1389906178, 'portfolio_id': 27897649}, {'photo_id': 1389906145, 'portfolio_id': 27897649}, {'photo_id': 1389906143, 'portfolio_id': 27897649}, {'photo_id': 1389906131, 'portfolio_id': 27897649}, {'photo_id': 1389906099, 'portfolio_id': 27897649}, {'photo_id': 1389906096, 'portfolio_id': 27897649}, {'photo_id': 1389906070, 'portfolio_id': 27897649}, {'photo_id': 1389906061, 'portfolio_id': 27897649}, {'photo_id': 1389906058, 'portfolio_id': 27897649}, {'photo_id': 1389906055, 'portfolio_id': 27897649}, {'photo_id': 1389906043, 'portfolio_id': 27897649}, {'photo_id': 1389906041, 'portfolio_id': 27897649}, {'photo_id': 1389906024, 'portfolio_id': 27897649}, {'photo_id': 1389906022, 'portfolio_id': 27897649}, {'photo_id': 1389905986, 'portfolio_id': 27897649}] map_portfolio_id_photo_id: {27897649: [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986]} ##### 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.050824880599975586 #### 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 Sat Oct 18 06:05: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 (27897649) 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 : 27897649 get user id for portfolio 27897649 get sub ptf for main ptf 27897649, type 3726 and hashtags ['plastique', 'flou', 'environnement', 'papier', 'kraft', 'metal', 'autre_refus', 'Carton_brun', 'cartonnette', 'Carton_gris', 'Teint_Dans_La_Masse', 'mal_croppe'] 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`=27897649 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','environnement','papier','kraft','metal','autre_refus','Carton_brun','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27897649 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','environnement','papier','kraft','metal','autre_refus','Carton_brun','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 27897649, 'sub_port_id': 27897650, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834616, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'mal_croppe': {'main_port_id': 27897649, 'sub_port_id': 27897651, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834617, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'papier': {'main_port_id': 27897649, 'sub_port_id': 27897652, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834618, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'kraft': {'main_port_id': 27897649, 'sub_port_id': 27897653, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834619, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'metal': {'main_port_id': 27897649, 'sub_port_id': 27897654, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834620, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'Carton_gris': {'main_port_id': 27897649, 'sub_port_id': 27897655, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834621, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'cartonnette': {'main_port_id': 27897649, 'sub_port_id': 27897656, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834622, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'autre_refus': {'main_port_id': 27897649, 'sub_port_id': 27897657, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834623, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'flou': {'main_port_id': 27897649, 'sub_port_id': 27897658, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834624, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'environnement': {'main_port_id': 27897649, 'sub_port_id': 27897659, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834625, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'plastique': {'main_port_id': 27897649, 'sub_port_id': 27897660, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834626, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 27897649, 'sub_port_id': 27897661, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834627, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 16), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27897650 , 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=27897649 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 (27897650) result : ((1389906411,), (1389906414,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897651 , 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=27897649 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 (27897651) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897652 , 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=27897649 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 (27897652) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897653 , 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=27897649 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 (27897653) result : ((1389906095,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897654 , 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=27897649 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 (27897654) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897655 , 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=27897649 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 (27897655) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897656 , 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=27897649 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 (27897656) result : ((1389906403,), (1389906405,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897657 , 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=27897649 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 (27897657) result : ((1389906139,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897658 , 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=27897649 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 (27897658) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897659 , 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=27897649 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 (27897659) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897660 , 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=27897649 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 (27897660) result : ((1389906111,), (1389906420,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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 27897661 , 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=27897649 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 (27897661) result : ((1389906089,), (1389906091,), (1389906093,), (1389906094,), (1389906102,), (1389906103,), (1389906104,), (1389906105,), (1389906106,), (1389906107,), (1389906108,), (1389906133,), (1389906134,), (1389906136,), (1389906137,), (1389906213,), (1389906229,), (1389906388,), (1389906391,), (1389906394,), (1389906398,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27897649) result : ((1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,)) 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`=27897649 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','environnement','papier','kraft','metal','autre_refus','Carton_brun','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27897649 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','environnement','papier','kraft','metal','autre_refus','Carton_brun','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 27897649, 'sub_port_id': 27897662, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834628, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'mal_croppe': {'main_port_id': 27897649, 'sub_port_id': 27897663, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834629, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'papier': {'main_port_id': 27897649, 'sub_port_id': 27897664, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834630, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'kraft': {'main_port_id': 27897649, 'sub_port_id': 27897665, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834631, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'metal': {'main_port_id': 27897649, 'sub_port_id': 27897666, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834632, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'Carton_gris': {'main_port_id': 27897649, 'sub_port_id': 27897667, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834633, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'cartonnette': {'main_port_id': 27897649, 'sub_port_id': 27897668, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834634, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'autre_refus': {'main_port_id': 27897649, 'sub_port_id': 27897669, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834635, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'flou': {'main_port_id': 27897649, 'sub_port_id': 27897670, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834636, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'environnement': {'main_port_id': 27897649, 'sub_port_id': 27897671, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834637, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'plastique': {'main_port_id': 27897649, 'sub_port_id': 27897672, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834638, 'last_updated_at': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 1, 49, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}, 'Teint_Dans_La_Masse': {'main_port_id': 27897649, 'sub_port_id': 27897673, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18834639, 'last_updated_at': datetime.datetime(2025, 10, 18, 2, 3, 18), 'last_updated_at_desc': datetime.datetime(2025, 10, 18, 2, 3, 18), 'last_updated_at_asc': datetime.datetime(2025, 10, 18, 1, 49, 6)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897662,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897650 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897663,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897651 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897664,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897652 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897665,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897653 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897666,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897654 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897667,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897655 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897668,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897656 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897669,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897657 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897670,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897658 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897671,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897659 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897672,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897660 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27897673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27897661 lien utilise dans velours : https://marlene.fotonower.com/velours/27897662,27897663,27897664,27897665,27897666,27897667,27897668,27897669,27897670,27897671,27897672,27897673?tags=Carton_brun,mal_croppe,papier,kraft,metal,Carton_gris,cartonnette,autre_refus,flou,environnement,plastique,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27897649]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986] map_info['map_portfolio_photo'] : {27897649: [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986]} final : False mtd_id 4302 list_pids : [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986] Looping around the photos to save general results len do output : 1 /27897649. 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, '3958033') ('4302', '27897649', '1389906297', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906179', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906178', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906145', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906143', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906131', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906099', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906096', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906070', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906061', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906058', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906055', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906043', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906041', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906024', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906022', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389905986', None, None, None, None, None, '3958033') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '27897649', "{'Carton_brun': 27897650, 'mal_croppe': 27897651, 'papier': 27897652, 'kraft': 27897653, 'metal': 27897654, 'Carton_gris': 27897655, 'cartonnette': 27897656, 'autre_refus': 27897657, 'flou': 27897658, 'environnement': 27897659, 'plastique': 27897660, 'Teint_Dans_La_Masse': 27897661}", None, None, None, None, '3958033'), ('4302', '27897649', '1389906297', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906179', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906178', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906145', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906143', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906131', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906099', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906096', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906070', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906061', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906058', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906055', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906043', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906041', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906024', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906022', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389905986', None, None, None, None, None, '3958033')] time used for this insertion : 0.8387007713317871 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.803487539291382 time spend to save output : 0.8391158580780029 total time spend for step 1 : 7.642603397369385 step2:final Sat Oct 18 06:06: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 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 (27897649) 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 27897649 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1389905986,1389906024,1389906022,1389906043,1389906041,1389906061,1389906058,1389906055,1389906070,1389906099,1389906096,1389906145,1389906143,1389906131,1389906179,1389906178,1389906297); 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([27897649]) Inside saveOutput : final : False verbose : True original output for save of step final : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} new output for save of step final : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986] map_info['map_portfolio_photo'] : {27897649: [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986]} final : False mtd_id 4302 list_pids : [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986] Looping around the photos to save general results len do output : 17 /1389906297.Didn't retrieve data . /1389906179.Didn't retrieve data . /1389906178.Didn't retrieve data . /1389906145.Didn't retrieve data . /1389906143.Didn't retrieve data . /1389906131.Didn't retrieve data . /1389906099.Didn't retrieve data . /1389906096.Didn't retrieve data . /1389906070.Didn't retrieve data . /1389906061.Didn't retrieve data . /1389906058.Didn't retrieve data . /1389906055.Didn't retrieve data . /1389906043.Didn't retrieve data . /1389906041.Didn't retrieve data . /1389906024.Didn't retrieve data . /1389906022.Didn't retrieve data . /1389905986.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, '3958033') ('4302', '27897649', '1389906297', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906179', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906178', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906145', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906143', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906131', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906099', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906096', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906070', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906061', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906058', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906055', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906043', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906041', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906024', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906022', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389905986', None, None, None, None, None, '3958033') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '27897649', '1389906297', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906179', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906178', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906145', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906143', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906131', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906099', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906096', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906070', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906061', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906058', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906055', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906043', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906041', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906024', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389906022', '0.05785941287341705', None, None, None, None, '3958033'), ('4302', '27897649', '1389905986', '0.05785941287341705', None, None, None, None, '3958033')] time used for this insertion : 0.31598949432373047 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3193976879119873 time spend to save output : 0.31683993339538574 total time spend for step 2 : 0.636237621307373 step3:velours_tree Sat Oct 18 06:06:06 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 : {27897649: [{'Carton_brun': 27897650, 'mal_croppe': 27897651, 'papier': 27897652, 'kraft': 27897653, 'metal': 27897654, 'Carton_gris': 27897655, 'cartonnette': 27897656, 'autre_refus': 27897657, 'flou': 27897658, 'environnement': 27897659, 'plastique': 27897660, 'Teint_Dans_La_Masse': 27897661}]} input_args_next_step : {27897649: ()} output_args : {27897649: [{'Carton_brun': 27897650, 'mal_croppe': 27897651, 'papier': 27897652, 'kraft': 27897653, 'metal': 27897654, 'Carton_gris': 27897655, 'cartonnette': 27897656, 'autre_refus': 27897657, 'flou': 27897658, 'environnement': 27897659, 'plastique': 27897660, 'Teint_Dans_La_Masse': 27897661}]} args : 27897649 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 : ({'Carton_brun': 27897650, 'mal_croppe': 27897651, 'papier': 27897652, 'kraft': 27897653, 'metal': 27897654, 'Carton_gris': 27897655, 'cartonnette': 27897656, 'autre_refus': 27897657, 'flou': 27897658, 'environnement': 27897659, 'plastique': 27897660, 'Teint_Dans_La_Masse': 27897661},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27897649) 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([27897649]) 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.2891733646392822 time spend to save output : 4.5299530029296875e-05 total time spend for step 3 : 0.2892186641693115 step4:send_mail_cod Sat Oct 18 06:06:06 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 : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} input_args_next_step : {1389906297: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906297 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906179 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906178 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906145 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906143 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906131 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906099 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906096 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906070 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906061 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906058 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906055 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906043 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906041 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906024 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389906022 depend.output_id : 0 input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ()} output_args : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',)} args : 1389905986 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 : {27897649: [{'Carton_brun': 27897650, 'mal_croppe': 27897651, 'papier': 27897652, 'kraft': 27897653, 'metal': 27897654, 'Carton_gris': 27897655, 'cartonnette': 27897656, 'autre_refus': 27897657, 'flou': 27897658, 'environnement': 27897659, 'plastique': 27897660, 'Teint_Dans_La_Masse': 27897661}]} input_args_next_step : {1389906297: ('0.05785941287341705',), 1389906179: ('0.05785941287341705',), 1389906178: ('0.05785941287341705',), 1389906145: ('0.05785941287341705',), 1389906143: ('0.05785941287341705',), 1389906131: ('0.05785941287341705',), 1389906099: ('0.05785941287341705',), 1389906096: ('0.05785941287341705',), 1389906070: ('0.05785941287341705',), 1389906061: ('0.05785941287341705',), 1389906058: ('0.05785941287341705',), 1389906055: ('0.05785941287341705',), 1389906043: ('0.05785941287341705',), 1389906041: ('0.05785941287341705',), 1389906024: ('0.05785941287341705',), 1389906022: ('0.05785941287341705',), 1389905986: ('0.05785941287341705',), 27897649: ()} output_args : {27897649: [{'Carton_brun': 27897650, 'mal_croppe': 27897651, 'papier': 27897652, 'kraft': 27897653, 'metal': 27897654, 'Carton_gris': 27897655, 'cartonnette': 27897656, 'autre_refus': 27897657, 'flou': 27897658, 'environnement': 27897659, 'plastique': 27897660, 'Teint_Dans_La_Masse': 27897661}]} args : 27897649 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 :18, first value : ('0.05785941287341705',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27897649) 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 (1389906297,1389906179,1389906178,1389906145,1389906143,1389906131,1389906099,1389906096,1389906070,1389906061,1389906058,1389906055,1389906043,1389906041,1389906024,1389906022,1389905986) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1389905986 begin to download photo : 1389906043 begin to download photo : 1389906070 begin to download photo : 1389906143 begin to download photo : 1389906297 download finish for photo 1389906297 download finish for photo 1389905986 begin to download photo : 1389906022 download finish for photo 1389906043 begin to download photo : 1389906055 download finish for photo 1389906143 begin to download photo : 1389906145 download finish for photo 1389906070 begin to download photo : 1389906096 download finish for photo 1389906022 begin to download photo : 1389906024 download finish for photo 1389906055 begin to download photo : 1389906058 download finish for photo 1389906145 begin to download photo : 1389906178 download finish for photo 1389906096 begin to download photo : 1389906099 download finish for photo 1389906024 begin to download photo : 1389906041 download finish for photo 1389906178 begin to download photo : 1389906179 download finish for photo 1389906058 begin to download photo : 1389906061 download finish for photo 1389906099 begin to download photo : 1389906131 download finish for photo 1389906041 download finish for photo 1389906061 download finish for photo 1389906179 download finish for photo 1389906131 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette278976511760760367/ length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P27897649_18-10-2025_06_06_07.pdf 27897651 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=27897651 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278976511760760367 27897653 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=27897653 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389906095: '1760745067_3701411_1389906022_a33835db112ae2df540d587199ea67f4_rle_crop_4001230866_0.png'} change filename to text .imagette278976531760760367/ imagette278976531760760367/1760745067_3701411_1389906022_a33835db112ae2df540d587199ea67f4_rle_crop_4001230866_0.png.png imagette278976541760760367/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/21413fac84e303ef40cc11ea11a0aa19_7576629.png imagette278976531760760367 27897654 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=27897654 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278976541760760367 27897656 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=27897656 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389906403: '1760745807_3804814_1389906297_111816fee29ea0e96bc9909943f816ac_rle_crop_4001249933_0.png', 1389906405: '1760745807_3804814_1389906178_af3a66cbe2153a8edcad202c6a2a8c92_rle_crop_4001249958_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/c9be4e26f7576cca2c375addbb5d2c08_82027428.png change filename to text .imagette278976561760760367/ imagette278976561760760367/1760745807_3804814_1389906178_af3a66cbe2153a8edcad202c6a2a8c92_rle_crop_4001249958_0.png.png imagette278976561760760367/1760745807_3804814_1389906297_111816fee29ea0e96bc9909943f816ac_rle_crop_4001249933_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/b6d64aab0e1b73fa31b2db7464a25a9e_36721832.png imagette278976561760760367 27897657 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=27897657 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389906139: '1760745206_3707352_1389906061_0bfea4f3f5da2ea4f0c26a79f822b208_rle_crop_4001231060_0.png'} change filename to text .imagette278976571760760367/ imagette278976571760760367/1760745206_3707352_1389906061_0bfea4f3f5da2ea4f0c26a79f822b208_rle_crop_4001231060_0.png.png imagette278976581760760367/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/991820968af7e89da5fce33c6098f787_83032168.png imagette278976571760760367 27897658 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=27897658 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278976581760760367 27897660 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=27897660 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389906111: '1760745085_3701856_1389905986_242a2a23f7f07f7fb4811b6dd39de597_rle_crop_4001230918_0.png', 1389906420: '1760745807_3804814_1389906297_111816fee29ea0e96bc9909943f816ac_rle_crop_4001249935_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/1e3e5f1fbc7bfccc50330e978801d65f_14201287.png change filename to text .imagette278976601760760367/ imagette278976601760760367/1760745085_3701856_1389905986_242a2a23f7f07f7fb4811b6dd39de597_rle_crop_4001230918_0.png.png imagette278976601760760367/1760745807_3804814_1389906297_111816fee29ea0e96bc9909943f816ac_rle_crop_4001249935_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/fc2688cb246709a52bfda9a2df7ff0f9_18752126.png imagette278976601760760367 27897650 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=27897650 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389906411: '1760745807_3804814_1389906297_111816fee29ea0e96bc9909943f816ac_rle_crop_4001249939_0.png', 1389906414: '1760745807_3804814_1389906178_af3a66cbe2153a8edcad202c6a2a8c92_rle_crop_4001249959_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/f38a83b2c68d92a08d57bc1094b99538_83208038.png change filename to text .imagette278976501760760367/ imagette278976501760760367/1760745807_3804814_1389906178_af3a66cbe2153a8edcad202c6a2a8c92_rle_crop_4001249959_0.png.png imagette278976501760760367/1760745807_3804814_1389906297_111816fee29ea0e96bc9909943f816ac_rle_crop_4001249939_0.png.png imagette278976551760760368/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/37f043f64805056af56d5a53bd262daf_22741899.png imagette278976501760760367 27897655 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=27897655 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278976551760760368 27897661 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=27897661 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389906108: '1760745085_3701856_1389905986_242a2a23f7f07f7fb4811b6dd39de597_rle_crop_4001230906_0.png', 1389906398: '1760745807_3804814_1389906178_af3a66cbe2153a8edcad202c6a2a8c92_rle_crop_4001249960_0.png', 1389906394: '1760745807_3804814_1389906178_af3a66cbe2153a8edcad202c6a2a8c92_rle_crop_4001249956_0.png', 1389906391: '1760745807_3804814_1389906297_111816fee29ea0e96bc9909943f816ac_rle_crop_4001249940_0.png', 1389906388: '1760745807_3804814_1389906297_111816fee29ea0e96bc9909943f816ac_rle_crop_4001249936_0.png', 1389906229: '1760745507_3714452_1389906096_8e5798a43ca2c83438451cd63fc75a26_rle_crop_4001239196_0.png', 1389906213: '1760745425_3713326_1389906179_bb5bae386a755aa26e6952d5adf22c99_rle_crop_4001234849_0.png', 1389906137: '1760745206_3707352_1389906041_2103dd82a6a67dbb461d1a1e7967609b_rle_crop_4001231078_0.png', 1389906136: '1760745206_3707352_1389906041_2103dd82a6a67dbb461d1a1e7967609b_rle_crop_4001231081_0.png', 1389906134: '1760745184_3706351_1389906055_70abaef19cf97a054617ab7a9e0c550a_rle_crop_4001231069_0.png', 1389906133: '1760745184_3706351_1389906058_bd9472338c974d59695671c9c3b65f16_rle_crop_4001231049_0.png', 1389906089: '1760745067_3701411_1389906043_4e37bf3ffb89410e38a13c536e80cc72_rle_crop_4001230842_0.png', 1389906107: '1760745085_3701856_1389905986_242a2a23f7f07f7fb4811b6dd39de597_rle_crop_4001230912_0.png', 1389906106: '1760745085_3701856_1389905986_242a2a23f7f07f7fb4811b6dd39de597_rle_crop_4001230913_0.png', 1389906105: '1760745085_3701856_1389905986_242a2a23f7f07f7fb4811b6dd39de597_rle_crop_4001230908_0.png', 1389906104: '1760745085_3701856_1389906024_adae207845209cc13cd86f3e9dc56f52_rle_crop_4001230887_0.png', 1389906103: '1760745085_3701856_1389906024_adae207845209cc13cd86f3e9dc56f52_rle_crop_4001230892_0.png', 1389906102: '1760745085_3701856_1389906024_adae207845209cc13cd86f3e9dc56f52_rle_crop_4001230889_0.png', 1389906094: '1760745067_3701411_1389906022_a33835db112ae2df540d587199ea67f4_rle_crop_4001230876_0.png', 1389906093: '1760745067_3701411_1389906043_4e37bf3ffb89410e38a13c536e80cc72_rle_crop_4001230843_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/0553424183219ad154db10faeb4b321d_54257623.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/31779184172d3f6145262180c8e0cef1_5484561.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/9c650911a1c6ba1c3bb44ccaf7f6d65c_27900113.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/520ae5bdcbc011099fabf929dcc236fc_33755657.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/54e30b2f156692543f3118b1bacfff83_31629545.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/0de0068bf4c18182830a62de76873f5e_93778455.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/916785207c0a0f0f1256bc1163b0ea93_78906581.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/4079f2840cf05c14b811ad625b117930_37140365.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/c2eeb6184d29287c6c9ef4a5f527dbea_27955677.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/b73968cf70356a0e5fe739d94c4b3f77_13965341.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/42434a1491c4fcbd4df0b6aeb19ef13c_87192709.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/799b5da649b0195ef346a0677d5b61b6_54833578.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/48cdb48314725314d6748fdc841da750_71719812.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/acf42618e2387c768140d132debc7d62_7871025.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/8c5d3219d9dc5e382f31d1fe4dd1eb14_94136287.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/b51311e7356d3614162ba57f91d179ad_95508317.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/b8c1651b197a602280478508de1d6a08_26667264.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/9e2cc987122d5e4b2dd7e49a57fc855b_93014442.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/8526e71b903bebbf4563737ddd036b04_18399670.png change filename to text .imagette278976611760760368/ imagette278976611760760368/1760745206_3707352_1389906041_2103dd82a6a67dbb461d1a1e7967609b_rle_crop_4001231081_0.png.png imagette278976611760760368/1760745807_3804814_1389906178_af3a66cbe2153a8edcad202c6a2a8c92_rle_crop_4001249956_0.png.png imagette278976611760760368/1760745085_3701856_1389906024_adae207845209cc13cd86f3e9dc56f52_rle_crop_4001230892_0.png.png imagette278976611760760368/1760745507_3714452_1389906096_8e5798a43ca2c83438451cd63fc75a26_rle_crop_4001239196_0.png.png imagette278976611760760368/1760745184_3706351_1389906055_70abaef19cf97a054617ab7a9e0c550a_rle_crop_4001231069_0.png.png imagette278976611760760368/1760745085_3701856_1389905986_242a2a23f7f07f7fb4811b6dd39de597_rle_crop_4001230906_0.png.png imagette278976611760760368/1760745085_3701856_1389905986_242a2a23f7f07f7fb4811b6dd39de597_rle_crop_4001230908_0.png.png imagette278976611760760368/1760745425_3713326_1389906179_bb5bae386a755aa26e6952d5adf22c99_rle_crop_4001234849_0.png.png imagette278976611760760368/1760745807_3804814_1389906297_111816fee29ea0e96bc9909943f816ac_rle_crop_4001249940_0.png.png imagette278976611760760368/1760745206_3707352_1389906041_2103dd82a6a67dbb461d1a1e7967609b_rle_crop_4001231078_0.png.png imagette278976611760760368/1760745807_3804814_1389906178_af3a66cbe2153a8edcad202c6a2a8c92_rle_crop_4001249960_0.png.png imagette278976611760760368/1760745067_3701411_1389906043_4e37bf3ffb89410e38a13c536e80cc72_rle_crop_4001230843_0.png.png imagette278976611760760368/1760745184_3706351_1389906058_bd9472338c974d59695671c9c3b65f16_rle_crop_4001231049_0.png.png imagette278976611760760368/1760745085_3701856_1389905986_242a2a23f7f07f7fb4811b6dd39de597_rle_crop_4001230913_0.png.png imagette278976611760760368/1760745085_3701856_1389906024_adae207845209cc13cd86f3e9dc56f52_rle_crop_4001230889_0.png.png imagette278976611760760368/1760745807_3804814_1389906297_111816fee29ea0e96bc9909943f816ac_rle_crop_4001249936_0.png.png imagette278976611760760368/1760745085_3701856_1389905986_242a2a23f7f07f7fb4811b6dd39de597_rle_crop_4001230912_0.png.png imagette278976611760760368/1760745067_3701411_1389906022_a33835db112ae2df540d587199ea67f4_rle_crop_4001230876_0.png.png imagette278976611760760368/1760745085_3701856_1389906024_adae207845209cc13cd86f3e9dc56f52_rle_crop_4001230887_0.png.png imagette278976611760760368/1760745067_3701411_1389906043_4e37bf3ffb89410e38a13c536e80cc72_rle_crop_4001230842_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/c02547648a3e1b99ab113354165649ca_31305495.png imagette278976611760760368 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27897649 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27897662,27897663,27897664,27897665,27897666,27897667,27897668,27897669,27897670,27897671,27897672,27897673?tags=Carton_brun,mal_croppe,papier,kraft,metal,Carton_gris,cartonnette,autre_refus,flou,environnement,plastique,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1389906297] : ('0.05785941287341705',) no score found for photo 1389906297 We are sending mail with results at report@fotonower.com args[1389906179] : ('0.05785941287341705',) no score found for photo 1389906179 We are sending mail with results at report@fotonower.com args[1389906178] : ('0.05785941287341705',) no score found for photo 1389906178 We are sending mail with results at report@fotonower.com args[1389906145] : ('0.05785941287341705',) no score found for photo 1389906145 We are sending mail with results at report@fotonower.com args[1389906143] : ('0.05785941287341705',) no score found for photo 1389906143 We are sending mail with results at report@fotonower.com args[1389906131] : ('0.05785941287341705',) no score found for photo 1389906131 We are sending mail with results at report@fotonower.com args[1389906099] : ('0.05785941287341705',) no score found for photo 1389906099 We are sending mail with results at report@fotonower.com args[1389906096] : ('0.05785941287341705',) no score found for photo 1389906096 We are sending mail with results at report@fotonower.com args[1389906070] : ('0.05785941287341705',) no score found for photo 1389906070 We are sending mail with results at report@fotonower.com args[1389906061] : ('0.05785941287341705',) no score found for photo 1389906061 We are sending mail with results at report@fotonower.com args[1389906058] : ('0.05785941287341705',) no score found for photo 1389906058 We are sending mail with results at report@fotonower.com args[1389906055] : ('0.05785941287341705',) no score found for photo 1389906055 We are sending mail with results at report@fotonower.com args[1389906043] : ('0.05785941287341705',) no score found for photo 1389906043 We are sending mail with results at report@fotonower.com args[1389906041] : ('0.05785941287341705',) no score found for photo 1389906041 We are sending mail with results at report@fotonower.com args[1389906024] : ('0.05785941287341705',) no score found for photo 1389906024 We are sending mail with results at report@fotonower.com args[1389906022] : ('0.05785941287341705',) no score found for photo 1389906022 We are sending mail with results at report@fotonower.com args[1389905986] : ('0.05785941287341705',) no score found for photo 1389905986 We are sending mail with results at report@fotonower.com refus_total : 0.05785941287341705 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=27897649 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_P27897649_18-10-2025_06_06_07.pdf results_Auto_P27897649_18-10-2025_06_06_07.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897649_18-10-2025_06_06_07.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','27897649','results_Auto_P27897649_18-10-2025_06_06_07.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897649_18-10-2025_06_06_07.pdf','pdf','','0.23','0.05785941287341705') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27897649]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986] map_info['map_portfolio_photo'] : {27897649: [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986]} final : False mtd_id 4302 list_pids : [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986] 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, '3958033') ('4302', '27897649', '1389906297', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906179', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906178', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906145', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906143', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906131', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906099', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906096', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906070', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906061', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906058', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906055', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906043', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906041', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906024', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906022', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389905986', None, None, None, None, None, '3958033') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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', '27897649', '1389906297', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906179', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906178', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906145', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906143', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906131', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906099', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906096', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906070', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906061', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906058', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906055', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906043', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906041', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906024', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906022', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389905986', None, None, None, None, None, '3958033')] time used for this insertion : 0.4339432716369629 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.915109872817993 time spend to save output : 0.43423962593078613 total time spend for step 4 : 8.34934949874878 step5:split_time_score Sat Oct 18 06:06:14 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 : ['27897649'] 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 : [('27897649',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27897649) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1389906297: {'path': 'temp/1760760366_2506305_1389906297_111816fee29ea0e96bc9909943f816ac.jpg', 'extension': 'jpg'}, 1389905986: {'path': 'temp/1760760366_2506305_1389905986_242a2a23f7f07f7fb4811b6dd39de597.jpg', 'extension': 'jpg'}, 1389906022: {'path': 'temp/1760760366_2506305_1389906022_a33835db112ae2df540d587199ea67f4.jpg', 'extension': 'jpg'}, 1389906024: {'path': 'temp/1760760366_2506305_1389906024_adae207845209cc13cd86f3e9dc56f52.jpg', 'extension': 'jpg'}, 1389906041: {'path': 'temp/1760760366_2506305_1389906041_2103dd82a6a67dbb461d1a1e7967609b.jpg', 'extension': 'jpg'}, 1389906043: {'path': 'temp/1760760366_2506305_1389906043_4e37bf3ffb89410e38a13c536e80cc72.jpg', 'extension': 'jpg'}, 1389906055: {'path': 'temp/1760760366_2506305_1389906055_70abaef19cf97a054617ab7a9e0c550a.jpg', 'extension': 'jpg'}, 1389906058: {'path': 'temp/1760760366_2506305_1389906058_bd9472338c974d59695671c9c3b65f16.jpg', 'extension': 'jpg'}, 1389906061: {'path': 'temp/1760760366_2506305_1389906061_0bfea4f3f5da2ea4f0c26a79f822b208.jpg', 'extension': 'jpg'}, 1389906143: {'path': 'temp/1760760366_2506305_1389906143_8a45cd73620462f92a9319396fa4c34f.jpg', 'extension': 'jpg'}, 1389906145: {'path': 'temp/1760760366_2506305_1389906145_076a9abe04d736a380155acf22b7ca4d.jpg', 'extension': 'jpg'}, 1389906178: {'path': 'temp/1760760366_2506305_1389906178_af3a66cbe2153a8edcad202c6a2a8c92.jpg', 'extension': 'jpg'}, 1389906179: {'path': 'temp/1760760366_2506305_1389906179_bb5bae386a755aa26e6952d5adf22c99.jpg', 'extension': 'jpg'}, 1389906070: {'path': 'temp/1760760366_2506305_1389906070_10099daaa657b180e598290efb466c30.jpg', 'extension': 'jpg'}, 1389906096: {'path': 'temp/1760760366_2506305_1389906096_8e5798a43ca2c83438451cd63fc75a26.jpg', 'extension': 'jpg'}, 1389906099: {'path': 'temp/1760760366_2506305_1389906099_0b619e4f0f16f735216d967e10e3fd8a.jpg', 'extension': 'jpg'}, 1389906131: {'path': 'temp/1760760366_2506305_1389906131_8ffc352e03d9a144c627b51c9ab4d080.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 = 27897649; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) 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 = 27897649 group by h (('01', 17),) 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=27897649 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 (27897649) 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 (27897649) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18102025 27897649 Nombre de photos uploadées : 17 / 23040 (0%) 18102025 27897649 Nombre de photos taguées (types de déchets): 0 / 17 (0%) 18102025 27897649 Nombre de photos taguées (volume) : 0 / 17 (0%) [{'photo_id': 1389905986, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/242a2a23f7f07f7fb4811b6dd39de597.jpg', 'username': None, 'uploaded_at': 1760744767, 'text': 'image_18102025_01_45_14_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389906024, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/adae207845209cc13cd86f3e9dc56f52.jpg', 'username': None, 'uploaded_at': 1760744888, 'text': 'image_18102025_01_45_24_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389906022, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/a33835db112ae2df540d587199ea67f4.jpg', 'username': None, 'uploaded_at': 1760744888, 'text': 'image_18102025_01_47_14_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389906043, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/18/4e37bf3ffb89410e38a13c536e80cc72.jpg', 'username': None, 'uploaded_at': 1760744948, 'text': 'image_18102025_01_47_54_010141m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009491443634033203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27897649, '2025-10-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-10-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2466431,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.8009264469146729 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= 2466431 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27896937, 'dashboard_result_id': 16501982, '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_P27896937_18-10-2025_00_21_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27896938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27896939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27896940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27896941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27896942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27896943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27896944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27896945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27896946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27896947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27896948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27896949, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27897082, 'dashboard_result_id': 16501983, '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_P27897082_18-10-2025_06_05_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897094, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27897224, 'dashboard_result_id': 16501984, '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_P27897224_18-10-2025_00_49_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897237, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897238, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27897649, 'dashboard_result_id': 16501985, '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_P27897649_18-10-2025_02_03_20.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897658, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897661, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27897862, 'dashboard_result_id': 16501986, '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_P27897862_18-10-2025_02_19_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27897863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897874, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27897953, 'dashboard_result_id': 16501987, '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_P27897953_18-10-2025_02_41_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897965, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27898195, 'dashboard_result_id': 16501988, '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_P27898195_18-10-2025_02_49_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898207, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27898471, 'dashboard_result_id': 16501989, '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_P27898471_18-10-2025_03_05_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898485, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27898580, 'dashboard_result_id': 16501990, '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_P27898580_18-10-2025_03_21_12.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898630, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27898903, 'dashboard_result_id': 16501991, '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_P27898903_18-10-2025_03_33_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898915, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27899020, 'dashboard_result_id': 16501992, '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_P27899020_18-10-2025_03_47_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27899022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27899023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27899024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27899025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27899026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27899027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27899028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27899029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27899030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27899031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27899032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27899033, 'pht': 3726}}"}, {'dashboat_entry_day': 2466431, 'dashboard_run_id': 2475154, 'mtr_portfolio_id': 27899153, 'dashboard_result_id': 16501993, '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_P27899153_18-10-2025_04_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27899155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27899156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27899157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27899158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27899159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27899160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27899161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27899162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27899163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27899164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27899165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27899166, '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 = 27896937 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': 3958030, 'mtr_portfolio_id': 27896937, 'created_at': datetime.datetime(2025, 10, 18, 6, 5, 33), 'result': '0.09099973140958073', 'result_long': None, 'result_double': None}] Qualite : 0.09099973140958073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27896937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27896937_18-10-2025_00_21_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27896937 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_P27896937_18-10-2025_00_21_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27896938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27896939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27896940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27896941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27896942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27896943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27896944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27896945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27896946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27896947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27896948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27896949, 'pht': 3726}}" where mtr_portfolio_id = 27896937 and dashboard_run_id = 2475154 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`=27896937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501982, 0.09099973140958073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27896937_18-10-2025_00_21_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27896938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27896939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27896940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27896941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27896942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27896943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27896944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27896945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27896946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27896947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27896948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27896949, '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 = 27897082 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': 3958031, 'mtr_portfolio_id': 27897082, 'created_at': datetime.datetime(2025, 10, 18, 6, 5, 35), 'result': '0.07317906211010498', 'result_long': None, 'result_double': None}] Qualite : 0.07317906211010498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27897082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897082_18-10-2025_06_05_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27897082 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_P27897082_18-10-2025_06_05_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897094, 'pht': 3726}}" where mtr_portfolio_id = 27897082 and dashboard_run_id = 2475154 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`=27897082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501983, 0.07317906211010498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897082_18-10-2025_06_05_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897094, '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 = 27897224 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': 3958032, 'mtr_portfolio_id': 27897224, 'created_at': datetime.datetime(2025, 10, 18, 6, 5, 45), 'result': '0.08786564930415407', 'result_long': None, 'result_double': None}] Qualite : 0.08786564930415407 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27897224 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897224_18-10-2025_00_49_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27897224 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_P27897224_18-10-2025_00_49_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897237, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897238, 'pht': 3726}}" where mtr_portfolio_id = 27897224 and dashboard_run_id = 2475154 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`=27897224 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501984, 0.08786564930415407, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897224_18-10-2025_00_49_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897237, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897238, '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 = 27897649 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': 3958033, 'mtr_portfolio_id': 27897649, 'created_at': datetime.datetime(2025, 10, 18, 6, 6, 5), 'result': '0.05785941287341705', 'result_long': None, 'result_double': None}] Qualite : 0.05785941287341705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27897649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897649_18-10-2025_06_06_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27897649 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_P27897649_18-10-2025_06_06_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897658, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897661, 'pht': 3726}}" where mtr_portfolio_id = 27897649 and dashboard_run_id = 2475154 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`=27897649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501985, 0.05785941287341705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897649_18-10-2025_06_06_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897658, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897661, '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 = 27897862 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': 3958034, 'mtr_portfolio_id': 27897862, 'created_at': datetime.datetime(2025, 10, 18, 6, 6, 8), 'result': '0.0490194716089698', 'result_long': None, 'result_double': None}] Qualite : 0.0490194716089698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27897862 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897862_18-10-2025_06_06_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27897862 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_P27897862_18-10-2025_06_06_11.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27897863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897874, 'pht': 3726}}" where mtr_portfolio_id = 27897862 and dashboard_run_id = 2475154 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`=27897862 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501986, 0.0490194716089698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897862_18-10-2025_06_06_11.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27897863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897874, '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 = 27897953 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': 3957580, 'mtr_portfolio_id': 27897953, 'created_at': datetime.datetime(2025, 10, 18, 2, 41, 3), 'result': '0.08473415069032887', 'result_long': None, 'result_double': None}] Qualite : 0.08473415069032887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27897953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897953_18-10-2025_02_41_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27897953 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_P27897953_18-10-2025_02_41_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897965, 'pht': 3726}}" where mtr_portfolio_id = 27897953 and dashboard_run_id = 2475154 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`=27897953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501987, 0.08473415069032887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27897953_18-10-2025_02_41_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27897954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27897955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27897956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27897957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27897958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27897959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27897960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27897961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27897962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27897963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27897964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27897965, '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 = 27898195 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': 3957615, 'mtr_portfolio_id': 27898195, 'created_at': datetime.datetime(2025, 10, 18, 2, 49, 6), 'result': '0.24571874473128885', 'result_long': None, 'result_double': None}] Qualite : 0.24571874473128885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27898195 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27898195_18-10-2025_02_49_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27898195 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_P27898195_18-10-2025_02_49_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898207, 'pht': 3726}}" where mtr_portfolio_id = 27898195 and dashboard_run_id = 2475154 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`=27898195 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501988, 0.24571874473128885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27898195_18-10-2025_02_49_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898207, '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 = 27898471 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': 3957643, 'mtr_portfolio_id': 27898471, 'created_at': datetime.datetime(2025, 10, 18, 3, 5, 8), 'result': '0.10721193416235719', 'result_long': None, 'result_double': None}] Qualite : 0.10721193416235719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27898471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27898471_18-10-2025_03_05_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27898471 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_P27898471_18-10-2025_03_05_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898485, 'pht': 3726}}" where mtr_portfolio_id = 27898471 and dashboard_run_id = 2475154 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`=27898471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501989, 0.10721193416235719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27898471_18-10-2025_03_05_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898485, '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 = 27898580 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': 3957678, 'mtr_portfolio_id': 27898580, 'created_at': datetime.datetime(2025, 10, 18, 3, 21, 11), 'result': '0.05481004617026408', 'result_long': None, 'result_double': None}] Qualite : 0.05481004617026408 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27898580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27898580_18-10-2025_03_21_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27898580 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_P27898580_18-10-2025_03_21_12.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898630, 'pht': 3726}}" where mtr_portfolio_id = 27898580 and dashboard_run_id = 2475154 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`=27898580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501990, 0.05481004617026408, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27898580_18-10-2025_03_21_12.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898630, '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 = 27898903 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': 3957713, 'mtr_portfolio_id': 27898903, 'created_at': datetime.datetime(2025, 10, 18, 3, 33, 3), 'result': '0.05400119590479028', 'result_long': None, 'result_double': None}] Qualite : 0.05400119590479028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27898903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27898903_18-10-2025_03_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27898903 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_P27898903_18-10-2025_03_33_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898915, 'pht': 3726}}" where mtr_portfolio_id = 27898903 and dashboard_run_id = 2475154 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`=27898903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501991, 0.05400119590479028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27898903_18-10-2025_03_33_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27898904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27898905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27898906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27898907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27898908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27898909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27898910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27898911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27898912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27898913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27898914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27898915, '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 = 27899020 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': 3957731, 'mtr_portfolio_id': 27899020, 'created_at': datetime.datetime(2025, 10, 18, 3, 47, 6), 'result': '0.15649131658152904', 'result_long': None, 'result_double': None}] Qualite : 0.15649131658152904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27899020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27899020_18-10-2025_03_47_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27899020 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_P27899020_18-10-2025_03_47_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27899022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27899023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27899024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27899025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27899026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27899027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27899028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27899029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27899030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27899031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27899032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27899033, 'pht': 3726}}" where mtr_portfolio_id = 27899020 and dashboard_run_id = 2475154 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`=27899020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501992, 0.15649131658152904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27899020_18-10-2025_03_47_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27899022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27899023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27899024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27899025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27899026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27899027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27899028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27899029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27899030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27899031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27899032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27899033, '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 = 27899153 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': 3957761, 'mtr_portfolio_id': 27899153, 'created_at': datetime.datetime(2025, 10, 18, 4, 3, 29), 'result': '0.05998158777668752', 'result_long': None, 'result_double': None}] Qualite : 0.05998158777668752 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27899153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27899153_18-10-2025_04_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27899153 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_P27899153_18-10-2025_04_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27899155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27899156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27899157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27899158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27899159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27899160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27899161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27899162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27899163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27899164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27899165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27899166, 'pht': 3726}}" where mtr_portfolio_id = 27899153 and dashboard_run_id = 2475154 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`=27899153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16501993, 0.05998158777668752, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27899153_18-10-2025_04_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27899155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27899156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27899157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27899158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27899159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27899160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27899161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27899162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27899163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27899164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27899165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27899166, '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 (27896937,27897082,27897224,27897649,27897862,27897953,27898195,27898471,27898580,27898903,27899020,27899153) result : ((1389901132,), (1389901178,), (1389901199,), (1389901224,), (1389901227,), (1389901762,), (1389901875,), (1389901876,), (1389901877,), (1389901946,), (1389901973,), (1389901976,), (1389902015,), (1389902080,), (1389902116,), (1389902117,), (1389902146,), (1389902148,), (1389902188,), (1389902189,), (1389902213,), (1389902215,), (1389902218,), (1389902221,), (1389902223,), (1389902224,), (1389902247,), (1389902350,), (1389902347,), (1389902360,), (1389902378,), (1389902405,), (1389902407,), (1389902435,), (1389902490,), (1389902514,), (1389902516,), (1389902599,), (1389905986,), (1389906022,), (1389906024,), (1389906041,), (1389906043,), (1389906055,), (1389906058,), (1389906061,), (1389906070,), (1389906096,), (1389906099,), (1389906131,), (1389906143,), (1389906145,), (1389906178,), (1389906179,), (1389906297,), (1389906295,), (1389906539,), (1389906564,), (1389906612,), (1389906698,), (1389906706,), (1389907939,), (1389907981,), (1389908761,), (1389908735,), (1389908965,), (1389909121,), (1389909158,), (1389909644,), (1389909771,), (1389909792,), (1389909924,), (1389910269,), (1389910917,), (1389911384,), (1389911433,), (1389911459,), (1389911379,), (1389911381,), (1389911396,), (1389911398,), (1389911426,), (1389911429,), (1389911431,), (1389911444,), (1389911464,), (1389911466,), (1389911467,), (1389911502,), (1389911531,), (1389911533,), (1389911558,), (1389911595,), (1389911598,), (1389911601,), (1389911613,), (1389911616,), (1389911618,), (1389911620,), (1389911672,), (1389911669,), (1389911740,), (1389911782,), (1389911924,), (1389911963,), (1389911966,), (1389912008,), (1389912057,), (1389912070,), (1389912044,), (1389912047,), (1389912061,), (1389912065,), (1389912140,), (1389912158,), (1389913015,), (1389913103,), (1389913715,), (1389913761,), (1389913925,), (1389914404,), (1389914571,), (1389914870,), (1389914904,), (1389914932,), (1389914936,), (1389914965,), (1389915003,), (1389915063,), (1389915069,), (1389915077,), (1389915120,), (1389915146,), (1389915167,), (1389915170,), (1389915218,), (1389915251,), (1389915301,), (1389915302,), (1389915312,), (1389915313,), (1389915316,), (1389915318,), (1389915321,), (1389915354,), (1389915373,), (1389915408,), (1389915426,), (1389915465,), (1389915470,), (1389915519,), (1389915504,), (1389915532,), (1389915548,), (1389915555,), (1389915568,), (1389915569,), (1389915576,), (1389915609,), (1389915611,), (1389915624,), (1389915626,), (1389915643,), (1389915644,), (1389915694,), (1389915702,), (1389915714,), (1389915722,), (1389915833,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18102025': {'nb_upload': 17, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27897649]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986] map_info['map_portfolio_photo'] : {27897649: [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986]} final : True mtd_id 4302 list_pids : [1389906297, 1389906179, 1389906178, 1389906145, 1389906143, 1389906131, 1389906099, 1389906096, 1389906070, 1389906061, 1389906058, 1389906055, 1389906043, 1389906041, 1389906024, 1389906022, 1389905986] Looping around the photos to save general results len do output : 1 /27897649Didn'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, '3958033') ('4302', '27897649', '1389906297', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906179', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906178', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906145', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906143', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906131', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906099', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906096', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906070', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906061', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906058', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906055', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906043', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906041', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906024', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389906022', None, None, None, None, None, '3958033') ('4302', None, None, None, None, None, None, None, '3958033') ('4302', '27897649', '1389905986', None, None, None, None, None, '3958033') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '27897649', 'None', None, None, None, None, '3958033'), ('4302', '27897649', '1389906297', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906179', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906178', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906145', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906143', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906131', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906099', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906096', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906070', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906061', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906058', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906055', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906043', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906041', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906024', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389906022', None, None, None, None, None, '3958033'), ('4302', '27897649', '1389905986', None, None, None, None, None, '3958033')] time used for this insertion : 0.09867548942565918 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.109762668609619 time spend to save output : 0.09894609451293945 total time spend for step 5 : 4.208708763122559 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 (3958033) 2.35user 2.65system 0:23.95elapsed 20%CPU (0avgtext+0avgdata 161148maxresident)k 256inputs+15688outputs (0major+72767minor)pagefaults 0swaps