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 : 1655731 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 (4266940) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4266940) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676059 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4266940'] with mtr_portfolio_ids : ['29676059'] and first list_photo_ids : [] new path : /proc/1655731/ Name: python3 Umask: 0002 State: R (running) Tgid: 1655731 Ngid: 0 Pid: 1655731 PPid: 1655730 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1655731 NSpid: 1655731 NSpgid: 1654450 NSsid: 1654450 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 103764 kB VmRSS: 103764 kB RssAnon: 66288 kB RssFile: 37476 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1655731', 'Ngid': '0', 'Pid': '1655731', 'PPid': '1655730', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1655731', 'NSpid': '1655731', 'NSpgid': '1654450', 'NSsid': '1654450', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '103764 kB', 'VmRSS': '103764 kB', 'RssAnon': '66288 kB', 'RssFile': '37476 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '1655731', '1113364', '0', '1113364', '872092', '103764', b'', 'marlene', '4266940') 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 (29676059) 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 (4266940 ) ) 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 (29676059) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400784223, 'portfolio_id': 29676059}, {'photo_id': 1400784221, 'portfolio_id': 29676059}, {'photo_id': 1400784219, 'portfolio_id': 29676059}, {'photo_id': 1400784197, 'portfolio_id': 29676059}, {'photo_id': 1400784194, 'portfolio_id': 29676059}, {'photo_id': 1400784191, 'portfolio_id': 29676059}, {'photo_id': 1400784188, 'portfolio_id': 29676059}, {'photo_id': 1400784177, 'portfolio_id': 29676059}, {'photo_id': 1400784161, 'portfolio_id': 29676059}, {'photo_id': 1400784157, 'portfolio_id': 29676059}, {'photo_id': 1400784154, 'portfolio_id': 29676059}, {'photo_id': 1400784150, 'portfolio_id': 29676059}, {'photo_id': 1400784146, 'portfolio_id': 29676059}, {'photo_id': 1400784142, 'portfolio_id': 29676059}, {'photo_id': 1400784095, 'portfolio_id': 29676059}, {'photo_id': 1400784093, 'portfolio_id': 29676059}, {'photo_id': 1400784072, 'portfolio_id': 29676059}, {'photo_id': 1400784069, 'portfolio_id': 29676059}, {'photo_id': 1400784066, 'portfolio_id': 29676059}, {'photo_id': 1400784063, 'portfolio_id': 29676059}, {'photo_id': 1400784040, 'portfolio_id': 29676059}, {'photo_id': 1400784037, 'portfolio_id': 29676059}, {'photo_id': 1400784034, 'portfolio_id': 29676059}, {'photo_id': 1400784030, 'portfolio_id': 29676059}, {'photo_id': 1400784027, 'portfolio_id': 29676059}, {'photo_id': 1400784001, 'portfolio_id': 29676059}, {'photo_id': 1400783999, 'portfolio_id': 29676059}, {'photo_id': 1400783860, 'portfolio_id': 29676059}] map_portfolio_id_photo_id: {29676059: [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142, 1400784095, 1400784093, 1400784072, 1400784069, 1400784066, 1400784063, 1400784040, 1400784037, 1400784034, 1400784030, 1400784027, 1400784001, 1400783999, 1400783860]} ##### 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.018116474151611328 #### 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 Wed Dec 24 05:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29676059) 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 : 29676059 get user id for portfolio 29676059 get sub ptf for main ptf 29676059, type 3726 and hashtags ['kraft', 'cartonnette', 'autre_refus', 'Carton_brun', 'Teint_Dans_La_Masse', 'mal_croppe', 'flou', 'papier', 'plastique', 'Carton_gris', 'metal', 'environnement'] 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`=29676059 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','autre_refus','Carton_brun','Teint_Dans_La_Masse','mal_croppe','flou','papier','plastique','Carton_gris','metal','environnement')) 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`=29676059 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','autre_refus','Carton_brun','Teint_Dans_La_Masse','mal_croppe','flou','papier','plastique','Carton_gris','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29676059, 'sub_port_id': 29676064, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269443, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'Carton_brun': {'main_port_id': 29676059, 'sub_port_id': 29676065, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269444, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'environnement': {'main_port_id': 29676059, 'sub_port_id': 29676066, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269445, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'autre_refus': {'main_port_id': 29676059, 'sub_port_id': 29676067, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269446, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'cartonnette': {'main_port_id': 29676059, 'sub_port_id': 29676068, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269447, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'kraft': {'main_port_id': 29676059, 'sub_port_id': 29676069, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269448, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'mal_croppe': {'main_port_id': 29676059, 'sub_port_id': 29676070, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269449, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'Carton_gris': {'main_port_id': 29676059, 'sub_port_id': 29676071, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269450, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'plastique': {'main_port_id': 29676059, 'sub_port_id': 29676072, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269451, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'flou': {'main_port_id': 29676059, 'sub_port_id': 29676073, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269452, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'metal': {'main_port_id': 29676059, 'sub_port_id': 29676074, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269453, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}, 'papier': {'main_port_id': 29676059, 'sub_port_id': 29676075, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269454, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 10, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29676064 , 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=29676059 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 (29676064) result : ((1400784108,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676065 , 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=29676059 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 (29676065) result : ((1400784116,), (1400784137,), (1400784139,), (1400784198,), (1400784199,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676066 , 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=29676059 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 (29676066) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676067 , 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=29676059 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 (29676067) result : ((1400784109,), (1400784128,), (1400784129,), (1400784130,), (1400784131,), (1400784195,), (1400784196,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676068 , 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=29676059 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 (29676068) result : ((1400784113,), (1400784114,), (1400784115,), (1400784134,), (1400784208,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676069 , 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=29676059 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 (29676069) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676070 , 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=29676059 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 (29676070) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676071 , 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=29676059 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 (29676071) result : ((1400784110,), (1400784132,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676072 , 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=29676059 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 (29676072) result : ((1400784117,), (1400784118,), (1400784140,), (1400784141,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676073 , 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=29676059 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 (29676073) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676074 , 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=29676059 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 (29676074) result : ((1400784121,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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 29676075 , 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=29676059 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 (29676075) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29676059) result : ((1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) 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`=29676059 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','autre_refus','Carton_brun','Teint_Dans_La_Masse','mal_croppe','flou','papier','plastique','Carton_gris','metal','environnement')) 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`=29676059 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','autre_refus','Carton_brun','Teint_Dans_La_Masse','mal_croppe','flou','papier','plastique','Carton_gris','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29676059, 'sub_port_id': 29676076, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269455, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'Carton_brun': {'main_port_id': 29676059, 'sub_port_id': 29676077, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269456, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'environnement': {'main_port_id': 29676059, 'sub_port_id': 29676078, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269457, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'autre_refus': {'main_port_id': 29676059, 'sub_port_id': 29676079, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269458, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'cartonnette': {'main_port_id': 29676059, 'sub_port_id': 29676080, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269459, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'kraft': {'main_port_id': 29676059, 'sub_port_id': 29676081, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269460, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'mal_croppe': {'main_port_id': 29676059, 'sub_port_id': 29676082, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269461, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'Carton_gris': {'main_port_id': 29676059, 'sub_port_id': 29676083, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269462, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'plastique': {'main_port_id': 29676059, 'sub_port_id': 29676084, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269463, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'flou': {'main_port_id': 29676059, 'sub_port_id': 29676085, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269464, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'metal': {'main_port_id': 29676059, 'sub_port_id': 29676086, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269465, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}, 'papier': {'main_port_id': 29676059, 'sub_port_id': 29676087, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20269466, 'last_updated_at': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 5, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 5, 11)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676085,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676073 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676086,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676074 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29676087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29676075 lien utilise dans velours : https://marlene.fotonower.com/velours/29676076,29676077,29676078,29676079,29676080,29676081,29676082,29676083,29676084,29676085,29676086,29676087?tags=Teint_Dans_La_Masse,Carton_brun,environnement,autre_refus,cartonnette,kraft,mal_croppe,Carton_gris,plastique,flou,metal,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29676059]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142] map_info['map_portfolio_photo'] : {29676059: [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142, 1400784095, 1400784093, 1400784072, 1400784069, 1400784066, 1400784063, 1400784040, 1400784037, 1400784034, 1400784030, 1400784027, 1400784001, 1400783999, 1400783860]} final : False mtd_id 4302 list_pids : [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142] Looping around the photos to save general results len do output : 1 /29676059. 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, '4266940') ('4302', '29676059', '1400784223', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784221', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784219', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784197', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784194', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784191', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784188', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784177', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784161', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784157', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784154', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784150', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784146', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784142', None, None, None, None, None, '4266940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29676059', "{'Teint_Dans_La_Masse': 29676064, 'Carton_brun': 29676065, 'environnement': 29676066, 'autre_refus': 29676067, 'cartonnette': 29676068, 'kraft': 29676069, 'mal_croppe': 29676070, 'Carton_gris': 29676071, 'plastique': 29676072, 'flou': 29676073, 'metal': 29676074, 'papier': 29676075}", None, None, None, None, '4266940'), ('4302', '29676059', '1400784223', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784221', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784219', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784197', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784194', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784191', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784188', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784177', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784161', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784157', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784154', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784150', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784146', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784142', None, None, None, None, None, '4266940')] time used for this insertion : 0.017430543899536133 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7954740524291992 time spend to save output : 0.017727375030517578 total time spend for step 1 : 1.8132014274597168 step2:final Wed Dec 24 05:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29676059) 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 29676059 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400783860,1400784001,1400783999,1400784040,1400784037,1400784034,1400784030,1400784027,1400784072,1400784069,1400784066,1400784063,1400784095,1400784093,1400784161,1400784157,1400784154,1400784150,1400784146,1400784142,1400784197,1400784177,1400784194,1400784191,1400784188,1400784223,1400784221,1400784219); 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([29676059]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} new output for save of step final : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142] map_info['map_portfolio_photo'] : {29676059: [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142, 1400784095, 1400784093, 1400784072, 1400784069, 1400784066, 1400784063, 1400784040, 1400784037, 1400784034, 1400784030, 1400784027, 1400784001, 1400783999, 1400783860]} final : False mtd_id 4302 list_pids : [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142] Looping around the photos to save general results len do output : 14 /1400784223.Didn't retrieve data . /1400784221.Didn't retrieve data . /1400784219.Didn't retrieve data . /1400784197.Didn't retrieve data . /1400784194.Didn't retrieve data . /1400784191.Didn't retrieve data . /1400784188.Didn't retrieve data . /1400784177.Didn't retrieve data . /1400784161.Didn't retrieve data . /1400784157.Didn't retrieve data . /1400784154.Didn't retrieve data . /1400784150.Didn't retrieve data . /1400784146.Didn't retrieve data . /1400784142.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, '4266940') ('4302', '29676059', '1400784223', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784221', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784219', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784197', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784194', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784191', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784188', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784177', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784161', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784157', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784154', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784150', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784146', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784142', None, None, None, None, None, '4266940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '29676059', '1400784223', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784221', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784219', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784197', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784194', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784191', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784188', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784177', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784161', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784157', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784154', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784150', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784146', '0.06516207433372824', None, None, None, None, '4266940'), ('4302', '29676059', '1400784142', '0.06516207433372824', None, None, None, None, '4266940')] time used for this insertion : 0.016185998916625977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07901763916015625 time spend to save output : 0.016801834106445312 total time spend for step 2 : 0.09581947326660156 step3:velours_tree Wed Dec 24 05:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29676059: [{'Teint_Dans_La_Masse': 29676064, 'Carton_brun': 29676065, 'environnement': 29676066, 'autre_refus': 29676067, 'cartonnette': 29676068, 'kraft': 29676069, 'mal_croppe': 29676070, 'Carton_gris': 29676071, 'plastique': 29676072, 'flou': 29676073, 'metal': 29676074, 'papier': 29676075}]} input_args_next_step : {29676059: ()} output_args : {29676059: [{'Teint_Dans_La_Masse': 29676064, 'Carton_brun': 29676065, 'environnement': 29676066, 'autre_refus': 29676067, 'cartonnette': 29676068, 'kraft': 29676069, 'mal_croppe': 29676070, 'Carton_gris': 29676071, 'plastique': 29676072, 'flou': 29676073, 'metal': 29676074, 'papier': 29676075}]} args : 29676059 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 : ({'Teint_Dans_La_Masse': 29676064, 'Carton_brun': 29676065, 'environnement': 29676066, 'autre_refus': 29676067, 'cartonnette': 29676068, 'kraft': 29676069, 'mal_croppe': 29676070, 'Carton_gris': 29676071, 'plastique': 29676072, 'flou': 29676073, 'metal': 29676074, 'papier': 29676075},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29676059) 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([29676059]) 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.23764634132385254 time spend to save output : 4.7206878662109375e-05 total time spend for step 3 : 0.23769354820251465 step4:send_mail_cod Wed Dec 24 05:15:01 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 : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} input_args_next_step : {1400784223: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784223 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784221 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784219 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784197 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784194 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784191 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784188 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784177 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784161 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784157 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784154 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784150 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784146 depend.output_id : 0 input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ()} output_args : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',)} args : 1400784142 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 : {29676059: [{'Teint_Dans_La_Masse': 29676064, 'Carton_brun': 29676065, 'environnement': 29676066, 'autre_refus': 29676067, 'cartonnette': 29676068, 'kraft': 29676069, 'mal_croppe': 29676070, 'Carton_gris': 29676071, 'plastique': 29676072, 'flou': 29676073, 'metal': 29676074, 'papier': 29676075}]} input_args_next_step : {1400784223: ('0.06516207433372824',), 1400784221: ('0.06516207433372824',), 1400784219: ('0.06516207433372824',), 1400784197: ('0.06516207433372824',), 1400784194: ('0.06516207433372824',), 1400784191: ('0.06516207433372824',), 1400784188: ('0.06516207433372824',), 1400784177: ('0.06516207433372824',), 1400784161: ('0.06516207433372824',), 1400784157: ('0.06516207433372824',), 1400784154: ('0.06516207433372824',), 1400784150: ('0.06516207433372824',), 1400784146: ('0.06516207433372824',), 1400784142: ('0.06516207433372824',), 29676059: ()} output_args : {29676059: [{'Teint_Dans_La_Masse': 29676064, 'Carton_brun': 29676065, 'environnement': 29676066, 'autre_refus': 29676067, 'cartonnette': 29676068, 'kraft': 29676069, 'mal_croppe': 29676070, 'Carton_gris': 29676071, 'plastique': 29676072, 'flou': 29676073, 'metal': 29676074, 'papier': 29676075}]} args : 29676059 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 :15, first value : ('0.06516207433372824',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29676059) 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 (1400784223,1400784221,1400784219,1400784197,1400784194,1400784191,1400784188,1400784177,1400784161,1400784157,1400784154,1400784150,1400784146,1400784142) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400784142 begin to download photo : 1400784154 begin to download photo : 1400784177 begin to download photo : 1400784194 begin to download photo : 1400784221 download finish for photo 1400784221 begin to download photo : 1400784223 download finish for photo 1400784154 begin to download photo : 1400784157 download finish for photo 1400784142 begin to download photo : 1400784146 download finish for photo 1400784177 begin to download photo : 1400784188 download finish for photo 1400784194 begin to download photo : 1400784197 download finish for photo 1400784157 begin to download photo : 1400784161 download finish for photo 1400784223 download finish for photo 1400784188 begin to download photo : 1400784191 download finish for photo 1400784197 begin to download photo : 1400784219 download finish for photo 1400784146 begin to download photo : 1400784150 download finish for photo 1400784161 download finish for photo 1400784219 download finish for photo 1400784150 download finish for photo 1400784191 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29676059_24-12-2025_05_15_01.pdf 29676067 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=29676067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400784109: '1766549466_4106199_1400784063_d09929138a075f892fb7ac41fd814253_rle_crop_4079740345_0.png', 1400784128: '1766549486_4107409_1400784072_c6c70e0e47c2191648e1fb5729aad750_rle_crop_4079740480_0.png', 1400784129: '1766549486_4107409_1400784037_c8c12ece0258bdc50ab1fad3571f07ab_rle_crop_4079740498_0.png', 1400784130: '1766549486_4107409_1400784037_c8c12ece0258bdc50ab1fad3571f07ab_rle_crop_4079740493_0.png', 1400784131: '1766549486_4107409_1400784027_6c30d2bfe94585d9763f8f0b2aa125a7_rle_crop_4079740532_0.png', 1400784195: '1766549587_4112593_1400784095_9ac71532311758fb6f33bcecee348e9b_rle_crop_4079740582_0.png', 1400784196: '1766549587_4112593_1400784095_9ac71532311758fb6f33bcecee348e9b_rle_crop_4079740581_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/a70ec0d379c17740a577507143cd4d94_26373911.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/1ff3f13e2a8aad5d8049f0ab656c821a_65096499.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/4756ef499fc2c941c71be656d28be6a0_8188064.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/bbcc28b73ef7d7c82e57fd8d878ef87e_3653229.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/f5d5d9f57cc1de160c560e78c46e4005_20908005.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/8ed3fad4206882aa94fe81c42752db01_23222800.png change filename to text .imagette296760671766549701/ imagette296760671766549701/1766549486_4107409_1400784027_6c30d2bfe94585d9763f8f0b2aa125a7_rle_crop_4079740532_0.png.png imagette296760671766549701/1766549486_4107409_1400784072_c6c70e0e47c2191648e1fb5729aad750_rle_crop_4079740480_0.png.png imagette296760671766549701/1766549587_4112593_1400784095_9ac71532311758fb6f33bcecee348e9b_rle_crop_4079740581_0.png.png imagette296760671766549701/1766549486_4107409_1400784037_c8c12ece0258bdc50ab1fad3571f07ab_rle_crop_4079740498_0.png.png imagette296760671766549701/1766549466_4106199_1400784063_d09929138a075f892fb7ac41fd814253_rle_crop_4079740345_0.png.png imagette296760671766549701/1766549587_4112593_1400784095_9ac71532311758fb6f33bcecee348e9b_rle_crop_4079740582_0.png.png imagette296760671766549701/1766549486_4107409_1400784037_c8c12ece0258bdc50ab1fad3571f07ab_rle_crop_4079740493_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/36a6c62b10e0cc3486ce200f75219c12_48062819.png imagette296760671766549701 29676068 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=29676068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400784113: '1766549466_4106199_1400784069_3608ed8be059bd341eee764c19302c41_rle_crop_4079740318_0.png', 1400784114: '1766549466_4106199_1400784066_10f71a6c4050f9ae548813fb16ced696_rle_crop_4079740329_0.png', 1400784115: '1766549466_4106199_1400784063_d09929138a075f892fb7ac41fd814253_rle_crop_4079740347_0.png', 1400784134: '1766549486_4107409_1400784037_c8c12ece0258bdc50ab1fad3571f07ab_rle_crop_4079740491_0.png', 1400784208: '1766549606_4113063_1400784040_64638b6c3d4d4acdf837e94040724b44_rle_crop_4079740613_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/bdfa0e09033c19381df30a6c2c06db2d_2118437.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/6c0272ea00792f0ba379a74bcb36de04_81415627.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/7e619f970092355e4b259938e67804f5_75100214.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/db5c531603f7b377523a0d4677508e5e_22941508.png change filename to text .imagette296760681766549701/ imagette296760681766549701/1766549466_4106199_1400784069_3608ed8be059bd341eee764c19302c41_rle_crop_4079740318_0.png.png imagette296760681766549701/1766549466_4106199_1400784066_10f71a6c4050f9ae548813fb16ced696_rle_crop_4079740329_0.png.png imagette296760681766549701/1766549606_4113063_1400784040_64638b6c3d4d4acdf837e94040724b44_rle_crop_4079740613_0.png.png imagette296760681766549701/1766549466_4106199_1400784063_d09929138a075f892fb7ac41fd814253_rle_crop_4079740347_0.png.png imagette296760681766549701/1766549486_4107409_1400784037_c8c12ece0258bdc50ab1fad3571f07ab_rle_crop_4079740491_0.png.png imagette296760691766549702/ imagette296760701766549702/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/40caaaf6e7032567c3238bbfe0960fa5_54409005.png imagette296760681766549701 29676069 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=29676069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296760691766549702 29676070 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=29676070 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296760701766549702 29676072 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=29676072 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400784117: '1766549466_4106199_1400784069_3608ed8be059bd341eee764c19302c41_rle_crop_4079740327_0.png', 1400784118: '1766549466_4106199_1400784066_10f71a6c4050f9ae548813fb16ced696_rle_crop_4079740339_0.png', 1400784140: '1766549486_4107409_1400784072_c6c70e0e47c2191648e1fb5729aad750_rle_crop_4079740486_0.png', 1400784141: '1766549486_4107409_1400784027_6c30d2bfe94585d9763f8f0b2aa125a7_rle_crop_4079740537_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/c878b7c3660589ee2cdfe41d0a2178ec_78443629.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b0f6d1897824a3c69ed787465388a9ab_75790870.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/c37d28a4c89ff45d489fb67f30cd2cdf_17943452.png change filename to text .imagette296760721766549702/ imagette296760721766549702/1766549466_4106199_1400784066_10f71a6c4050f9ae548813fb16ced696_rle_crop_4079740339_0.png.png imagette296760721766549702/1766549486_4107409_1400784027_6c30d2bfe94585d9763f8f0b2aa125a7_rle_crop_4079740537_0.png.png imagette296760721766549702/1766549486_4107409_1400784072_c6c70e0e47c2191648e1fb5729aad750_rle_crop_4079740486_0.png.png imagette296760721766549702/1766549466_4106199_1400784069_3608ed8be059bd341eee764c19302c41_rle_crop_4079740327_0.png.png imagette296760731766549702/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/9b43b786e5e7d104ed7faabe1ca0fe1f_42359061.png imagette296760721766549702 29676073 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=29676073 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296760731766549702 29676074 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=29676074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400784121: '1766549466_4106199_1400784069_3608ed8be059bd341eee764c19302c41_rle_crop_4079740324_0.png'} change filename to text .imagette296760741766549702/ imagette296760741766549702/1766549466_4106199_1400784069_3608ed8be059bd341eee764c19302c41_rle_crop_4079740324_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/f26194c6b9ada43601b9f51791282d44_94376019.png imagette296760741766549702 29676064 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=29676064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400784108: '1766549466_4106199_1400784066_10f71a6c4050f9ae548813fb16ced696_rle_crop_4079740334_0.png'} change filename to text .imagette296760641766549702/ imagette296760641766549702/1766549466_4106199_1400784066_10f71a6c4050f9ae548813fb16ced696_rle_crop_4079740334_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/ad14dc699be83b7ae3cbd64cb389b65c_68299006.png imagette296760641766549702 29676065 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=29676065 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400784116: '1766549466_4106199_1400784069_3608ed8be059bd341eee764c19302c41_rle_crop_4079740323_0.png', 1400784137: '1766549486_4107409_1400784034_cd6210a8f42d7083d35c8a4953091b7d_rle_crop_4079740507_0.png', 1400784139: '1766549486_4107409_1400784030_c0e1ea6c8930b78623f604a111a4c373_rle_crop_4079740517_0.png', 1400784198: '1766549587_4112593_1400784095_9ac71532311758fb6f33bcecee348e9b_rle_crop_4079740585_0.png', 1400784199: '1766549587_4112593_1400784095_9ac71532311758fb6f33bcecee348e9b_rle_crop_4079740584_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/a507affa7a5a0515ffe36f33f1790507_4335651.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/afbb64e4648c1d9d5c7ac9e02ad60f16_4658580.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/5b236a2699a4a30919d505bcafc70696_45837075.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b3885036a17df085550e7e764c861fe5_36188945.png change filename to text .imagette296760651766549703/ imagette296760651766549703/1766549486_4107409_1400784034_cd6210a8f42d7083d35c8a4953091b7d_rle_crop_4079740507_0.png.png imagette296760651766549703/1766549587_4112593_1400784095_9ac71532311758fb6f33bcecee348e9b_rle_crop_4079740585_0.png.png imagette296760651766549703/1766549587_4112593_1400784095_9ac71532311758fb6f33bcecee348e9b_rle_crop_4079740584_0.png.png imagette296760651766549703/1766549466_4106199_1400784069_3608ed8be059bd341eee764c19302c41_rle_crop_4079740323_0.png.png imagette296760651766549703/1766549486_4107409_1400784030_c0e1ea6c8930b78623f604a111a4c373_rle_crop_4079740517_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/ba4ec973266a0ad0be169a351f578836_18679275.png imagette296760651766549703 29676071 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=29676071 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400784110: '1766549466_4106199_1400784069_3608ed8be059bd341eee764c19302c41_rle_crop_4079740319_0.png', 1400784132: '1766549486_4107409_1400784034_cd6210a8f42d7083d35c8a4953091b7d_rle_crop_4079740505_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/c9d64a6dbf91ccea7cf7f87d6f2a2e88_22772830.png change filename to text .imagette296760711766549703/ imagette296760711766549703/1766549466_4106199_1400784069_3608ed8be059bd341eee764c19302c41_rle_crop_4079740319_0.png.png imagette296760711766549703/1766549486_4107409_1400784034_cd6210a8f42d7083d35c8a4953091b7d_rle_crop_4079740505_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/c838770ac15c5d3c75575edb4b33e959_50159205.png imagette296760711766549703 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29676059 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29676076,29676077,29676078,29676079,29676080,29676081,29676082,29676083,29676084,29676085,29676086,29676087?tags=Teint_Dans_La_Masse,Carton_brun,environnement,autre_refus,cartonnette,kraft,mal_croppe,Carton_gris,plastique,flou,metal,papier your option no_mail is active, we will not send the real mail to your client args[1400784223] : ('0.06516207433372824',) no score found for photo 1400784223 We are sending mail with results at report@fotonower.com args[1400784221] : ('0.06516207433372824',) no score found for photo 1400784221 We are sending mail with results at report@fotonower.com args[1400784219] : ('0.06516207433372824',) no score found for photo 1400784219 We are sending mail with results at report@fotonower.com args[1400784197] : ('0.06516207433372824',) no score found for photo 1400784197 We are sending mail with results at report@fotonower.com args[1400784194] : ('0.06516207433372824',) no score found for photo 1400784194 We are sending mail with results at report@fotonower.com args[1400784191] : ('0.06516207433372824',) no score found for photo 1400784191 We are sending mail with results at report@fotonower.com args[1400784188] : ('0.06516207433372824',) no score found for photo 1400784188 We are sending mail with results at report@fotonower.com args[1400784177] : ('0.06516207433372824',) no score found for photo 1400784177 We are sending mail with results at report@fotonower.com args[1400784161] : ('0.06516207433372824',) no score found for photo 1400784161 We are sending mail with results at report@fotonower.com args[1400784157] : ('0.06516207433372824',) no score found for photo 1400784157 We are sending mail with results at report@fotonower.com args[1400784154] : ('0.06516207433372824',) no score found for photo 1400784154 We are sending mail with results at report@fotonower.com args[1400784150] : ('0.06516207433372824',) no score found for photo 1400784150 We are sending mail with results at report@fotonower.com args[1400784146] : ('0.06516207433372824',) no score found for photo 1400784146 We are sending mail with results at report@fotonower.com args[1400784142] : ('0.06516207433372824',) no score found for photo 1400784142 We are sending mail with results at report@fotonower.com refus_total : 0.06516207433372824 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=29676059 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_P29676059_24-12-2025_05_15_01.pdf results_Auto_P29676059_24-12-2025_05_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676059_24-12-2025_05_15_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29676059','results_Auto_P29676059_24-12-2025_05_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676059_24-12-2025_05_15_01.pdf','pdf','','0.22','0.06516207433372824') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29676059]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142] map_info['map_portfolio_photo'] : {29676059: [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142, 1400784095, 1400784093, 1400784072, 1400784069, 1400784066, 1400784063, 1400784040, 1400784037, 1400784034, 1400784030, 1400784027, 1400784001, 1400783999, 1400783860]} final : False mtd_id 4302 list_pids : [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142] 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, '4266940') ('4302', '29676059', '1400784223', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784221', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784219', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784197', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784194', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784191', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784188', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784177', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784161', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784157', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784154', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784150', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784146', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784142', None, None, None, None, None, '4266940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '29676059', '1400784223', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784221', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784219', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784197', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784194', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784191', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784188', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784177', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784161', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784157', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784154', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784150', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784146', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784142', None, None, None, None, None, '4266940')] time used for this insertion : 0.017923831939697266 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.337256669998169 time spend to save output : 0.018164396286010742 total time spend for step 4 : 4.35542106628418 step5:split_time_score Wed Dec 24 05:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29676059'] 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 : [('29676059',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29676059) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400784221: {'path': 'temp/1766549701_1655731_1400784221_2005e1c810fd0814779c4693459d6e3d.jpg', 'extension': 'jpg'}, 1400784223: {'path': 'temp/1766549701_1655731_1400784223_904915308181336f093c3e8d02815433.jpg', 'extension': 'jpg'}, 1400784154: {'path': 'temp/1766549701_1655731_1400784154_41d3eff098f7bf18d25376e7de12961e.jpg', 'extension': 'jpg'}, 1400784157: {'path': 'temp/1766549701_1655731_1400784157_5f61d4075ea41cc80880173d1bd77028.jpg', 'extension': 'jpg'}, 1400784161: {'path': 'temp/1766549701_1655731_1400784161_aeccbeb5cc4e058af3706c0ea9c22aeb.jpg', 'extension': 'jpg'}, 1400784194: {'path': 'temp/1766549701_1655731_1400784194_286a72ddbe40f5e9d9e95bad7b2d3140.jpg', 'extension': 'jpg'}, 1400784197: {'path': 'temp/1766549701_1655731_1400784197_d01a4b3fe5eb3b096dfda23385f5210b.jpg', 'extension': 'jpg'}, 1400784219: {'path': 'temp/1766549701_1655731_1400784219_a63ac6b1d3772f55709629bc5b2d47d5.jpg', 'extension': 'jpg'}, 1400784142: {'path': 'temp/1766549701_1655731_1400784142_a30406c5c5cf696dc2eeb767f281caed.jpg', 'extension': 'jpg'}, 1400784146: {'path': 'temp/1766549701_1655731_1400784146_2b8b3f01ec43b4274c7d3338bd50593f.jpg', 'extension': 'jpg'}, 1400784150: {'path': 'temp/1766549701_1655731_1400784150_99a6c2571d0019570fec739982eef8e9.jpg', 'extension': 'jpg'}, 1400784177: {'path': 'temp/1766549701_1655731_1400784177_6d34a996abaac6d9795400f563cfed41.jpg', 'extension': 'jpg'}, 1400784188: {'path': 'temp/1766549701_1655731_1400784188_bdac504e28802a5f9a2c2b0154ba6e4b.jpg', 'extension': 'jpg'}, 1400784191: {'path': 'temp/1766549701_1655731_1400784191_d49eb1ed80faec92a813f87205d9eee3.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 = 29676059; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29676059 group by h (('05', 28),) 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=29676059 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 (29676059) 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 (29676059) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24122025 29676059 Nombre de photos uploadées : 28 / 23040 (0%) 24122025 29676059 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 24122025 29676059 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1400783860, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/95ff6a47697bced521ca2549a60a21c9.jpg', 'username': None, 'uploaded_at': 1766548987, 'text': 'image_24122025_05_02_34_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400784001, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2a83faab7a11b1b0ef89d96caa486a70.jpg', 'username': None, 'uploaded_at': 1766549287, 'text': 'image_24122025_05_02_44_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400783999, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/3403f26e6f960b609382f697db74eb88.jpg', 'username': None, 'uploaded_at': 1766549287, 'text': 'image_24122025_05_07_03_10159.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400784040, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/64638b6c3d4d4acdf837e94040724b44.jpg', 'username': None, 'uploaded_at': 1766549347, 'text': 'image_24122025_05_07_43_9128.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012965202331542969 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29676059, '2025-12-24' ) 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-12-24' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2781885,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24715232849121094 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= 2781885 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29668057, 'dashboard_result_id': 18683063, '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_P29668057_24-12-2025_00_19_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29668522, 'dashboard_result_id': 18683064, '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_P29668522_24-12-2025_00_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29668997, 'dashboard_result_id': 18683065, '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_P29668997_24-12-2025_00_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29669483, 'dashboard_result_id': 18683066, '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_P29669483_24-12-2025_01_03_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29670567, 'dashboard_result_id': 18683067, '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_P29670567_24-12-2025_01_47_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29670856, 'dashboard_result_id': 18683068, '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_P29670856_24-12-2025_02_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29671273, 'dashboard_result_id': 18683069, '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_P29671273_24-12-2025_02_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29671897, 'dashboard_result_id': 18683070, '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_P29671897_24-12-2025_02_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29672417, 'dashboard_result_id': 18683071, '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_P29672417_24-12-2025_02_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29672816, 'dashboard_result_id': 18683072, '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_P29672816_24-12-2025_04_30_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29673237, 'dashboard_result_id': 18683073, '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_P29673237_24-12-2025_03_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29673713, 'dashboard_result_id': 18683074, '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_P29673713_24-12-2025_03_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673732, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29674114, 'dashboard_result_id': 18683075, '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_P29674114_24-12-2025_03_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674150, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29674573, 'dashboard_result_id': 18683076, '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_P29674573_24-12-2025_04_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674609, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29674924, 'dashboard_result_id': 18683077, '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_P29674924_24-12-2025_04_13_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674946, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29675865, 'dashboard_result_id': 18683078, '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_P29675865_24-12-2025_04_29_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29675867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29675868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29675869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29675870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29675871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29675872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29675873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29675874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29675875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29675876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29675877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29675878, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789558, 'mtr_portfolio_id': 29676059, 'dashboard_result_id': 18683079, '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_P29676059_24-12-2025_05_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676075, '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 = 29668057 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': 4265770, 'mtr_portfolio_id': 29668057, 'created_at': datetime.datetime(2025, 12, 24, 0, 19, 31), 'result': '0.06135353829280031', 'result_long': None, 'result_double': None}] Qualite : 0.06135353829280031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668057 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668057_24-12-2025_00_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668057 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_P29668057_24-12-2025_00_19_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, 'pht': 3726}}" where mtr_portfolio_id = 29668057 and dashboard_run_id = 2789558 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`=29668057 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683063, 0.06135353829280031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668057_24-12-2025_00_19_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, '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 = 29668522 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': 4265831, 'mtr_portfolio_id': 29668522, 'created_at': datetime.datetime(2025, 12, 24, 0, 33, 3), 'result': '0.05424920509000451', 'result_long': None, 'result_double': None}] Qualite : 0.05424920509000451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668522_24-12-2025_00_33_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668522 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_P29668522_24-12-2025_00_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, 'pht': 3726}}" where mtr_portfolio_id = 29668522 and dashboard_run_id = 2789558 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`=29668522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683064, 0.05424920509000451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668522_24-12-2025_00_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, '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 = 29668997 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': 4265902, 'mtr_portfolio_id': 29668997, 'created_at': datetime.datetime(2025, 12, 24, 0, 49, 2), 'result': '0.028189047341204393', 'result_long': None, 'result_double': None}] Qualite : 0.028189047341204393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668997_24-12-2025_00_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668997 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_P29668997_24-12-2025_00_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, 'pht': 3726}}" where mtr_portfolio_id = 29668997 and dashboard_run_id = 2789558 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`=29668997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683065, 0.028189047341204393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668997_24-12-2025_00_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, '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 = 29669483 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': 4265972, 'mtr_portfolio_id': 29669483, 'created_at': datetime.datetime(2025, 12, 24, 1, 3, 2), 'result': '0.039287696512471944', 'result_long': None, 'result_double': None}] Qualite : 0.039287696512471944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29669483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29669483_24-12-2025_01_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29669483 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_P29669483_24-12-2025_01_03_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, 'pht': 3726}}" where mtr_portfolio_id = 29669483 and dashboard_run_id = 2789558 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`=29669483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683066, 0.039287696512471944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29669483_24-12-2025_01_03_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, '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 = 29670567 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': 4266119, 'mtr_portfolio_id': 29670567, 'created_at': datetime.datetime(2025, 12, 24, 1, 47, 3), 'result': '0.037633975953310125', 'result_long': None, 'result_double': None}] Qualite : 0.037633975953310125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29670567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670567_24-12-2025_01_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29670567 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_P29670567_24-12-2025_01_47_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, 'pht': 3726}}" where mtr_portfolio_id = 29670567 and dashboard_run_id = 2789558 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`=29670567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683067, 0.037633975953310125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670567_24-12-2025_01_47_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, '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 = 29670856 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': 4266155, 'mtr_portfolio_id': 29670856, 'created_at': datetime.datetime(2025, 12, 24, 2, 4, 31), 'result': '0.07641640149739097', 'result_long': None, 'result_double': None}] Qualite : 0.07641640149739097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29670856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670856_24-12-2025_02_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29670856 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_P29670856_24-12-2025_02_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, 'pht': 3726}}" where mtr_portfolio_id = 29670856 and dashboard_run_id = 2789558 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`=29670856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683068, 0.07641640149739097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670856_24-12-2025_02_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, '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 = 29671273 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': 4266240, 'mtr_portfolio_id': 29671273, 'created_at': datetime.datetime(2025, 12, 24, 2, 19, 29), 'result': '0.041436645449697156', 'result_long': None, 'result_double': None}] Qualite : 0.041436645449697156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29671273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671273_24-12-2025_02_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29671273 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_P29671273_24-12-2025_02_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, 'pht': 3726}}" where mtr_portfolio_id = 29671273 and dashboard_run_id = 2789558 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`=29671273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683069, 0.041436645449697156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671273_24-12-2025_02_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, '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 = 29671897 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': 4266310, 'mtr_portfolio_id': 29671897, 'created_at': datetime.datetime(2025, 12, 24, 2, 32, 59), 'result': '0.03722838001781973', 'result_long': None, 'result_double': None}] Qualite : 0.03722838001781973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29671897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671897_24-12-2025_02_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29671897 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_P29671897_24-12-2025_02_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, 'pht': 3726}}" where mtr_portfolio_id = 29671897 and dashboard_run_id = 2789558 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`=29671897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683070, 0.03722838001781973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671897_24-12-2025_02_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, '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 = 29672417 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': 4266373, 'mtr_portfolio_id': 29672417, 'created_at': datetime.datetime(2025, 12, 24, 2, 48, 58), 'result': '0.053284267866979956', 'result_long': None, 'result_double': None}] Qualite : 0.053284267866979956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29672417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672417_24-12-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29672417 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_P29672417_24-12-2025_02_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, 'pht': 3726}}" where mtr_portfolio_id = 29672417 and dashboard_run_id = 2789558 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`=29672417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683071, 0.053284267866979956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672417_24-12-2025_02_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, '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 = 29672816 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': 4266429, 'mtr_portfolio_id': 29672816, 'created_at': datetime.datetime(2025, 12, 24, 4, 30, 59), 'result': '0.044191773702888', 'result_long': None, 'result_double': None}] Qualite : 0.044191773702888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29672816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672816_24-12-2025_04_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29672816 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_P29672816_24-12-2025_04_30_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, 'pht': 3726}}" where mtr_portfolio_id = 29672816 and dashboard_run_id = 2789558 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`=29672816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683072, 0.044191773702888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672816_24-12-2025_04_30_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, '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 = 29673237 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': 4266482, 'mtr_portfolio_id': 29673237, 'created_at': datetime.datetime(2025, 12, 24, 3, 17), 'result': '0.0466483171573243', 'result_long': None, 'result_double': None}] Qualite : 0.0466483171573243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29673237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_03_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29673237 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_P29673237_24-12-2025_03_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, 'pht': 3726}}" where mtr_portfolio_id = 29673237 and dashboard_run_id = 2789558 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`=29673237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683073, 0.0466483171573243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_03_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, '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 = 29673713 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': 4266529, 'mtr_portfolio_id': 29673713, 'created_at': datetime.datetime(2025, 12, 24, 3, 32, 56), 'result': '0.04981389740956126', 'result_long': None, 'result_double': None}] Qualite : 0.04981389740956126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29673713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673713_24-12-2025_03_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29673713 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_P29673713_24-12-2025_03_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673732, 'pht': 3726}}" where mtr_portfolio_id = 29673713 and dashboard_run_id = 2789558 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`=29673713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683074, 0.04981389740956126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673713_24-12-2025_03_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673732, '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 = 29674114 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': 4266607, 'mtr_portfolio_id': 29674114, 'created_at': datetime.datetime(2025, 12, 24, 3, 48, 59), 'result': '0.06671008552183694', 'result_long': None, 'result_double': None}] Qualite : 0.06671008552183694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29674114 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674114_24-12-2025_03_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29674114 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_P29674114_24-12-2025_03_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674150, 'pht': 3726}}" where mtr_portfolio_id = 29674114 and dashboard_run_id = 2789558 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`=29674114 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683075, 0.06671008552183694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674114_24-12-2025_03_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674150, '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 = 29674573 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': 4266673, 'mtr_portfolio_id': 29674573, 'created_at': datetime.datetime(2025, 12, 24, 4, 2, 58), 'result': '0.0390869813593363', 'result_long': None, 'result_double': None}] Qualite : 0.0390869813593363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29674573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674573_24-12-2025_04_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29674573 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_P29674573_24-12-2025_04_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674609, 'pht': 3726}}" where mtr_portfolio_id = 29674573 and dashboard_run_id = 2789558 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`=29674573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683076, 0.0390869813593363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674573_24-12-2025_04_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674609, '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 = 29674924 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': 4266755, 'mtr_portfolio_id': 29674924, 'created_at': datetime.datetime(2025, 12, 24, 4, 12, 59), 'result': '0.03132340191340667', 'result_long': None, 'result_double': None}] Qualite : 0.03132340191340667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29674924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674924_24-12-2025_04_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29674924 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_P29674924_24-12-2025_04_13_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674946, 'pht': 3726}}" where mtr_portfolio_id = 29674924 and dashboard_run_id = 2789558 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`=29674924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683077, 0.03132340191340667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674924_24-12-2025_04_13_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674946, '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 = 29675865 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 29675865 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29675865 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29675865 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29675865 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29675865 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29675865_24-12-2025_04_29_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29675865 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_P29675865_24-12-2025_04_29_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29675867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29675868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29675869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29675870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29675871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29675872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29675873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29675874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29675875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29675876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29675877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29675878, 'pht': 3726}}" where mtr_portfolio_id = 29675865 and dashboard_run_id = 2789560 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 = 29676059 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': 4266940, 'mtr_portfolio_id': 29676059, 'created_at': datetime.datetime(2025, 12, 24, 5, 15), 'result': '0.06516207433372824', 'result_long': None, 'result_double': None}] Qualite : 0.06516207433372824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29676059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676059_24-12-2025_05_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29676059 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_P29676059_24-12-2025_05_15_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676075, 'pht': 3726}}" where mtr_portfolio_id = 29676059 and dashboard_run_id = 2789560 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`=29676059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18683079, 0.06516207433372824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676059_24-12-2025_05_15_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676075, '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 (29668057,29668522,29668997,29669483,29670567,29670856,29671273,29671897,29672417,29672816,29673237,29673713,29674114,29674573,29674924,29675865,29676059) result : ((1400757182,), (1400757200,), (1400757201,), (1400757219,), (1400757222,), (1400757225,), (1400757229,), (1400757233,), (1400757235,), (1400757291,), (1400757316,), (1400757349,), (1400757377,), (1400757746,), (1400757819,), (1400757890,), (1400757967,), (1400758048,), (1400758117,), (1400758458,), (1400758524,), (1400758596,), (1400758705,), (1400758733,), (1400758760,), (1400758785,), (1400759140,), (1400759145,), (1400759284,), (1400759286,), (1400759288,), (1400759291,), (1400759295,), (1400759299,), (1400759375,), (1400759403,), (1400759434,), (1400759459,), (1400759715,), (1400759753,), (1400759789,), (1400759925,), (1400759927,), (1400759938,), (1400759965,), (1400760110,), (1400760118,), (1400760120,), (1400760144,), (1400760148,), (1400760152,), (1400760155,), (1400760368,), (1400760397,), (1400760424,), (1400760451,), (1400760481,), (1400760511,), (1400760514,), (1400760517,), (1400760521,), (1400760525,), (1400760530,), (1400760537,), (1400760539,), (1400760555,), (1400760546,), (1400760549,), (1400760552,), (1400760570,), (1400760573,), (1400760578,), (1400760581,), (1400760587,), (1400760590,), (1400760617,), (1400760620,), (1400760622,), (1400760668,), (1400760698,), (1400760726,), (1400760758,), (1400760868,), (1400760871,), (1400760873,), (1400760876,), (1400760902,), (1400761049,), (1400761051,), (1400761053,), (1400761055,), (1400761057,), (1400761059,), (1400761079,), (1400761085,), (1400761088,), (1400761091,), (1400761101,), (1400761103,), (1400761105,), (1400761107,), (1400761110,), (1400761116,), (1400761119,), (1400761121,), (1400761136,), (1400761138,), (1400761141,), (1400761143,), (1400761147,), (1400761150,), (1400761161,), (1400761164,), (1400761168,), (1400761172,), (1400761178,), (1400761181,), (1400761197,), (1400761201,), (1400761204,), (1400761213,), (1400761218,), (1400761228,), (1400761254,), (1400761281,), (1400761316,), (1400761624,), (1400761628,), (1400761633,), (1400761676,), (1400761703,), (1400761715,), (1400761917,), (1400761949,), (1400761978,), (1400761984,), (1400761987,), (1400762060,), (1400762070,), (1400762540,), (1400762554,), (1400762557,), (1400762466,), (1400762498,), (1400762529,), (1400762534,), (1400762538,), (1400762570,), (1400762581,), (1400762583,), (1400762585,), (1400762587,), (1400762597,), (1400762598,), (1400762601,), (1400762605,), (1400762621,), (1400762623,), (1400762625,), (1400762654,), (1400762675,), (1400762703,), (1400762731,), (1400762761,), (1400762788,), (1400762795,), (1400762797,), (1400762799,), (1400762812,), (1400762815,), (1400762818,), (1400762820,), (1400762822,), (1400762824,), (1400762835,), (1400762838,), (1400762840,), (1400762842,), (1400762864,), (1400762866,), (1400762869,), (1400762876,), (1400762881,), (1400762957,), (1400762961,), (1400762965,), (1400762969,), (1400762973,), (1400762975,), (1400762988,), (1400762997,), (1400763003,), (1400763005,), (1400763021,), (1400763023,), (1400763025,), (1400763027,), (1400763030,), (1400763033,), (1400763051,), (1400763054,), (1400763057,), (1400763059,), (1400763062,), (1400763085,), (1400763088,), (1400763090,), (1400763092,), (1400763095,), (1400763098,), (1400763113,), (1400763120,), (1400763125,), (1400763147,), (1400763152,), (1400763156,), (1400763160,), (1400763163,), (1400763165,), (1400763198,), (1400763201,), (1400763204,), (1400763222,), (1400763239,), (1400763246,), (1400763248,), (1400763250,), (1400763253,), (1400763281,), (1400763190,), (1400763192,), (1400763195,), (1400763263,), (1400763266,), (1400763268,), (1400763276,), (1400763292,), (1400763341,), (1400763403,), (1400763450,), (1400763453,), (1400763474,), (1400763522,), (1400763528,), (1400763617,), (1400763620,), (1400763622,), (1400763626,), (1400763628,), (1400763631,), (1400763649,), (1400763653,), (1400763657,), (1400763663,), (1400763668,), (1400763670,), (1400763687,), (1400763692,), (1400763697,), (1400763728,), (1400763755,), (1400763758,), (1400763784,), (1400763790,), (1400763794,), (1400763798,), (1400763802,), (1400763804,), (1400763807,), (1400763822,), (1400763845,), (1400763848,), (1400763851,), (1400763870,), (1400763880,), (1400763890,), (1400763918,), (1400763922,), (1400763925,), (1400763930,), (1400763934,), (1400763949,), (1400765913,), (1400765916,), (1400765918,), (1400765937,), (1400765940,), (1400765944,), (1400765948,), (1400765972,), (1400765976,), (1400765995,), (1400765999,), (1400766004,), (1400766009,), (1400766026,), (1400766030,), (1400766034,), (1400766038,), (1400766054,), (1400766058,), (1400766061,), (1400766087,), (1400766089,), (1400766091,), (1400766094,), (1400766098,), (1400766102,), (1400766112,), (1400766115,), (1400766118,), (1400766121,), (1400766150,), (1400766154,), (1400766155,), (1400766158,), (1400766160,), (1400766175,), (1400766177,), (1400766178,), (1400766201,), (1400766210,), (1400766213,), (1400766216,), (1400766218,), (1400766220,), (1400766238,), (1400766241,), (1400766244,), (1400766248,), (1400766252,), (1400766256,), (1400766272,), (1400766274,), (1400766276,), (1400766295,), (1400766298,), (1400766301,), (1400766357,), (1400766340,), (1400766347,), (1400766355,), (1400766373,), (1400766375,), (1400766377,), (1400766381,), (1400766402,), (1400766412,), (1400766415,), (1400766441,), (1400766445,), (1400766449,), (1400766453,), (1400766477,), (1400766479,), (1400766481,), (1400766500,), (1400766504,), (1400766509,), (1400766515,), (1400766519,), (1400766521,), (1400766544,), (1400766548,), (1400766551,), (1400766567,), (1400766569,), (1400766571,), (1400766574,), (1400766601,), (1400766604,), (1400766607,), (1400766610,), (1400766632,), (1400766636,), (1400766640,), (1400766644,), (1400766648,), (1400766651,), (1400766654,), (1400766670,), (1400766673,), (1400766676,), (1400766678,), (1400766681,), (1400766684,), (1400766692,), (1400766695,), (1400766698,), (1400766702,), (1400766738,), (1400766741,), (1400766744,), (1400766748,), (1400766752,), (1400766756,), (1400766923,), (1400766958,), (1400766989,), (1400767018,), (1400767143,), (1400767124,), (1400767136,), (1400767140,), (1400767157,), (1400767184,), (1400767211,), (1400767240,), (1400767268,), (1400767486,), (1400768100,), (1400768152,), (1400768180,), (1400768206,), (1400768228,), (1400768428,), (1400768456,), (1400768482,), (1400768529,), (1400768558,), (1400768594,), (1400768660,), (1400768669,), (1400768679,), (1400768706,), (1400768782,), (1400768830,), (1400768898,), (1400768964,), (1400769266,), (1400769304,), (1400769344,), (1400769385,), (1400769568,), (1400769571,), (1400769574,), (1400769617,), (1400769668,), (1400769709,), (1400769846,), (1400769867,), (1400769871,), (1400769875,), (1400769879,), (1400769892,), (1400769896,), (1400769905,), (1400769915,), (1400769930,), (1400769941,), (1400769948,), (1400769960,), (1400769963,), (1400769966,), (1400769973,), (1400769974,), (1400769979,), (1400769993,), (1400769997,), (1400770000,), (1400770001,), (1400770002,), (1400770004,), (1400770007,), (1400770016,), (1400770019,), (1400770041,), (1400770050,), (1400770055,), (1400770058,), (1400770062,), (1400770066,), (1400770082,), (1400770092,), (1400770095,), (1400770097,), (1400770100,), (1400770104,), (1400770141,), (1400770121,), (1400770128,), (1400770134,), (1400770137,), (1400770155,), (1400770159,), (1400770161,), (1400770165,), (1400770168,), (1400770187,), (1400770190,), (1400770192,), (1400770197,), (1400770207,), (1400770216,), (1400770229,), (1400770237,), (1400770241,), (1400770246,), (1400770250,), (1400770266,), (1400770269,), (1400770272,), (1400770275,), (1400770279,), (1400770283,), (1400770300,), (1400770302,), (1400770304,), (1400770307,), (1400770310,), (1400770312,), (1400770319,), (1400770320,), (1400770321,), (1400770324,), (1400770343,), (1400770347,), (1400770351,), (1400770353,), (1400770366,), (1400770369,), (1400770372,), (1400770375,), (1400770378,), (1400770381,), (1400770407,), (1400770409,), (1400770411,), (1400770431,), (1400770433,), (1400770436,), (1400770440,), (1400770444,), (1400770469,), (1400770472,), (1400770474,), (1400770476,), (1400770479,), (1400770500,), (1400770503,), (1400770507,), (1400770512,), (1400770524,), (1400770549,), (1400770553,), (1400770555,), (1400770557,), (1400770559,), (1400770667,), (1400770660,), (1400770661,), (1400770665,), (1400770709,), (1400770734,), (1400770737,), (1400770776,), (1400770805,), (1400770807,), (1400770809,), (1400770812,), (1400770815,), (1400770833,), (1400770837,), (1400770840,), (1400770843,), (1400770846,), (1400770864,), (1400770869,), (1400770877,), (1400770880,), (1400770896,), (1400770900,), (1400770902,), (1400770904,), (1400770906,), (1400770908,), (1400770921,), (1400770932,), (1400770938,), (1400770946,), (1400770952,), (1400770968,), (1400770972,), (1400770975,), (1400770977,), (1400770979,), (1400771002,), (1400771009,), (1400771010,), (1400771011,), (1400771014,), (1400771017,), (1400771032,), (1400771036,), (1400771040,), (1400771045,), (1400771049,), (1400771052,), (1400771056,), (1400771057,), (1400771058,), (1400771064,), (1400771090,), (1400771081,), (1400771083,), (1400771084,), (1400771085,), (1400771087,), (1400771099,), (1400771103,), (1400771105,), (1400771107,), (1400771109,), (1400771137,), (1400771139,), (1400771141,), (1400771144,), (1400771146,), (1400771148,), (1400771166,), (1400771168,), (1400771170,), (1400771173,), (1400771176,), (1400771188,), (1400771200,), (1400771209,), (1400771219,), (1400771239,), (1400771243,), (1400771245,), (1400771247,), (1400771249,), (1400771251,), (1400771279,), (1400771281,), (1400771283,), (1400771286,), (1400771290,), (1400771309,), (1400771315,), (1400771318,), (1400771345,), (1400771351,), (1400771352,), (1400771353,), (1400771375,), (1400771378,), (1400771382,), (1400771386,), (1400771391,), (1400771393,), (1400771402,), (1400771403,), (1400771404,), (1400771424,), (1400771428,), (1400771432,), (1400771434,), (1400771435,), (1400771436,), (1400771450,), (1400771454,), (1400771481,), (1400771489,), (1400771493,), (1400771496,), (1400771499,), (1400771502,), (1400771517,), (1400771523,), (1400771527,), (1400771532,), (1400771536,), (1400771540,), (1400771563,), (1400771566,), (1400771569,), (1400771577,), (1400771582,), (1400771584,), (1400771585,), (1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,), (1400772093,), (1400772095,), (1400772098,), (1400772101,), (1400772105,), (1400772110,), (1400772154,), (1400772140,), (1400772145,), (1400772148,), (1400772151,), (1400772168,), (1400772171,), (1400772174,), (1400772177,), (1400772179,), (1400772180,), (1400772205,), (1400772207,), (1400772209,), (1400772212,), (1400772216,), (1400772238,), (1400772242,), (1400772246,), (1400772250,), (1400772280,), (1400772284,), (1400772288,), (1400772291,), (1400772311,), (1400772314,), (1400772317,), (1400772321,), (1400772324,), (1400772327,), (1400772338,), (1400772340,), (1400772344,), (1400772354,), (1400772357,), (1400772360,), (1400772362,), (1400772363,), (1400772367,), (1400772381,), (1400772385,), (1400772387,), (1400772419,), (1400772425,), (1400772427,), (1400772430,), (1400772434,), (1400772456,), (1400772460,), (1400772465,), (1400772470,), (1400772476,), (1400772510,), (1400772513,), (1400772516,), (1400772519,), (1400772539,), (1400772542,), (1400772545,), (1400772580,), (1400772584,), (1400772586,), (1400772590,), (1400772594,), (1400772613,), (1400772616,), (1400772618,), (1400772620,), (1400772622,), (1400772647,), (1400772650,), (1400772654,), (1400772697,), (1400772700,), (1400772709,), (1400772712,), (1400772685,), (1400772689,), (1400772692,), (1400772695,), (1400772719,), (1400772721,), (1400772723,), (1400772726,), (1400772729,), (1400772758,), (1400772761,), (1400772764,), (1400772768,), (1400772771,), (1400772788,), (1400772790,), (1400772794,), (1400772798,), (1400772820,), (1400772822,), (1400772824,), (1400772826,), (1400772829,), (1400772863,), (1400772866,), (1400772868,), (1400772894,), (1400772941,), (1400772947,), (1400772950,), (1400772968,), (1400772970,), (1400772972,), (1400772996,), (1400773000,), (1400773003,), (1400773007,), (1400773033,), (1400773035,), (1400773036,), (1400773126,), (1400773128,), (1400773151,), (1400773154,), (1400773194,), (1400773195,), (1400773197,), (1400773199,), (1400773208,), (1400773190,), (1400773193,), (1400773217,), (1400773219,), (1400773222,), (1400773226,), (1400773252,), (1400773255,), (1400773258,), (1400773261,), (1400773264,), (1400773268,), (1400773290,), (1400773294,), (1400773297,), (1400773325,), (1400773328,), (1400773330,), (1400773332,), (1400773335,), (1400773352,), (1400773355,), (1400773357,), (1400773360,), (1400773363,), (1400773389,), (1400773390,), (1400773393,), (1400773397,), (1400773417,), (1400773420,), (1400773422,), (1400773425,), (1400773430,), (1400773432,), (1400773455,), (1400773458,), (1400773462,), (1400773466,), (1400773470,), (1400773501,), (1400773503,), (1400773505,), (1400773506,), (1400773507,), (1400773510,), (1400773521,), (1400773524,), (1400773527,), (1400773529,), (1400773531,), (1400773535,), (1400773539,), (1400773543,), (1400773556,), (1400773559,), (1400773564,), (1400773599,), (1400773602,), (1400773605,), (1400773608,), (1400773610,), (1400773699,), (1400773735,), (1400773768,), (1400773802,), (1400773946,), (1400773947,), (1400773979,), (1400773986,), (1400774012,), (1400774020,), (1400774048,), (1400774067,), (1400774413,), (1400774291,), (1400774323,), (1400774359,), (1400774395,), (1400774440,), (1400774539,), (1400774651,), (1400774758,), (1400774804,), (1400775609,), (1400775692,), (1400775803,), (1400776544,), (1400776579,), (1400776613,), (1400776946,), (1400776978,), (1400777011,), (1400778135,), (1400778196,), (1400778250,), (1400778830,), (1400778864,), (1400778906,), (1400779000,), (1400779073,), (1400779536,), (1400780050,), (1400780200,), (1400780300,), (1400780879,), (1400780919,), (1400780984,), (1400781053,), (1400781125,), (1400781528,), (1400781562,), (1400782395,), (1400782704,), (1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24122025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29676059]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142] map_info['map_portfolio_photo'] : {29676059: [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142, 1400784095, 1400784093, 1400784072, 1400784069, 1400784066, 1400784063, 1400784040, 1400784037, 1400784034, 1400784030, 1400784027, 1400784001, 1400783999, 1400783860]} final : True mtd_id 4302 list_pids : [1400784223, 1400784221, 1400784219, 1400784197, 1400784194, 1400784191, 1400784188, 1400784177, 1400784161, 1400784157, 1400784154, 1400784150, 1400784146, 1400784142] Looping around the photos to save general results len do output : 1 /29676059Didn'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, '4266940') ('4302', '29676059', '1400784223', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784221', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784219', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784197', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784194', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784191', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784188', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784177', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784161', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784157', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784154', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784150', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784146', None, None, None, None, None, '4266940') ('4302', None, None, None, None, None, None, None, '4266940') ('4302', '29676059', '1400784142', None, None, None, None, None, '4266940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29676059', 'None', None, None, None, None, '4266940'), ('4302', '29676059', '1400784223', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784221', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784219', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784197', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784194', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784191', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784188', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784177', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784161', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784157', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784154', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784150', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784146', None, None, None, None, None, '4266940'), ('4302', '29676059', '1400784142', None, None, None, None, None, '4266940')] time used for this insertion : 0.016338109970092773 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.528581142425537 time spend to save output : 0.01657891273498535 total time spend for step 5 : 1.5451600551605225 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 (4266940) 2.25user 2.48system 0:10.83elapsed 43%CPU (0avgtext+0avgdata 166052maxresident)k 336inputs+13888outputs (0major+78677minor)pagefaults 0swaps