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 : 3931402 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 (3393913) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3393913) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486150 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3393913'] with mtr_portfolio_ids : ['25486150'] and first list_photo_ids : [] new path : /proc/3931402/ Name: python3 Umask: 0002 State: R (running) Tgid: 3931402 Ngid: 0 Pid: 3931402 PPid: 3931401 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3931402 NSpid: 3931402 NSpgid: 3929716 NSsid: 3929716 VmPeak: 1106864 kB VmSize: 1106864 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99272 kB VmRSS: 99272 kB RssAnon: 59816 kB RssFile: 39456 kB RssShmem: 0 kB VmData: 865616 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3931402', 'Ngid': '0', 'Pid': '3931402', 'PPid': '3931401', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3931402', 'NSpid': '3931402', 'NSpgid': '3929716', 'NSsid': '3929716', 'VmPeak': '1106864 kB', 'VmSize': '1106864 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99272 kB', 'VmRSS': '99272 kB', 'RssAnon': '59816 kB', 'RssFile': '39456 kB', 'RssShmem': '0 kB', 'VmData': '865616 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '85'} ('datou_batch_current', '3931402', '1106864', '0', '1106864', '865616', '99272', b'', 'marlene', '3393913') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25486150) 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 (3393913 ) ) 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 (25486150) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374387088, 'portfolio_id': 25486150}, {'photo_id': 1374387079, 'portfolio_id': 25486150}, {'photo_id': 1374387069, 'portfolio_id': 25486150}, {'photo_id': 1374387068, 'portfolio_id': 25486150}, {'photo_id': 1374387067, 'portfolio_id': 25486150}, {'photo_id': 1374387066, 'portfolio_id': 25486150}, {'photo_id': 1374387017, 'portfolio_id': 25486150}, {'photo_id': 1374387006, 'portfolio_id': 25486150}, {'photo_id': 1374387005, 'portfolio_id': 25486150}, {'photo_id': 1374387004, 'portfolio_id': 25486150}, {'photo_id': 1374387003, 'portfolio_id': 25486150}, {'photo_id': 1374387002, 'portfolio_id': 25486150}, {'photo_id': 1374387001, 'portfolio_id': 25486150}, {'photo_id': 1374386980, 'portfolio_id': 25486150}, {'photo_id': 1374386976, 'portfolio_id': 25486150}, {'photo_id': 1374386973, 'portfolio_id': 25486150}, {'photo_id': 1374386971, 'portfolio_id': 25486150}, {'photo_id': 1374386969, 'portfolio_id': 25486150}, {'photo_id': 1374386967, 'portfolio_id': 25486150}, {'photo_id': 1374386932, 'portfolio_id': 25486150}, {'photo_id': 1374386930, 'portfolio_id': 25486150}, {'photo_id': 1374386929, 'portfolio_id': 25486150}, {'photo_id': 1374386928, 'portfolio_id': 25486150}, {'photo_id': 1374386926, 'portfolio_id': 25486150}, {'photo_id': 1374386924, 'portfolio_id': 25486150}, {'photo_id': 1374386899, 'portfolio_id': 25486150}, {'photo_id': 1374386896, 'portfolio_id': 25486150}, {'photo_id': 1374386895, 'portfolio_id': 25486150}, {'photo_id': 1374386889, 'portfolio_id': 25486150}, {'photo_id': 1374386888, 'portfolio_id': 25486150}, {'photo_id': 1374386886, 'portfolio_id': 25486150}, {'photo_id': 1374386876, 'portfolio_id': 25486150}, {'photo_id': 1374386875, 'portfolio_id': 25486150}, {'photo_id': 1374386874, 'portfolio_id': 25486150}, {'photo_id': 1374386873, 'portfolio_id': 25486150}, {'photo_id': 1374386872, 'portfolio_id': 25486150}, {'photo_id': 1374386870, 'portfolio_id': 25486150}, {'photo_id': 1374386854, 'portfolio_id': 25486150}, {'photo_id': 1374386851, 'portfolio_id': 25486150}, {'photo_id': 1374386849, 'portfolio_id': 25486150}, {'photo_id': 1374386847, 'portfolio_id': 25486150}, {'photo_id': 1374386846, 'portfolio_id': 25486150}, {'photo_id': 1374386845, 'portfolio_id': 25486150}, {'photo_id': 1374386663, 'portfolio_id': 25486150}, {'photo_id': 1374386640, 'portfolio_id': 25486150}, {'photo_id': 1374386619, 'portfolio_id': 25486150}, {'photo_id': 1374386600, 'portfolio_id': 25486150}, {'photo_id': 1374386599, 'portfolio_id': 25486150}, {'photo_id': 1374386597, 'portfolio_id': 25486150}] map_portfolio_id_photo_id: {25486150: [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017, 1374387006, 1374387005, 1374387004, 1374387003, 1374387002, 1374387001, 1374386980, 1374386976, 1374386973, 1374386971, 1374386969, 1374386967, 1374386932, 1374386930, 1374386929, 1374386928, 1374386926, 1374386924, 1374386899, 1374386896, 1374386895, 1374386889, 1374386888, 1374386886, 1374386876, 1374386875, 1374386874, 1374386873, 1374386872, 1374386870, 1374386854, 1374386851, 1374386849, 1374386847, 1374386846, 1374386845, 1374386663, 1374386640, 1374386619, 1374386600, 1374386599, 1374386597]} ##### 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.014415740966796875 #### 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 Jul 30 04:10:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25486150) 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 : 25486150 get user id for portfolio 25486150 get sub ptf for main ptf 25486150, type 3726 and hashtags ['metal', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'environnement', 'papier', 'flou', 'plastique', 'autre_refus', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft'] 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`=25486150 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_gris','Carton_brun','environnement','papier','flou','plastique','autre_refus','cartonnette','Teint_Dans_La_Masse','kraft')) 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`=25486150 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_gris','Carton_brun','environnement','papier','flou','plastique','autre_refus','cartonnette','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25486150, 'sub_port_id': 25486169, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186223, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'cartonnette': {'main_port_id': 25486150, 'sub_port_id': 25486170, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186224, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'plastique': {'main_port_id': 25486150, 'sub_port_id': 25486171, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186225, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'kraft': {'main_port_id': 25486150, 'sub_port_id': 25486172, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186226, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'metal': {'main_port_id': 25486150, 'sub_port_id': 25486173, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186227, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'environnement': {'main_port_id': 25486150, 'sub_port_id': 25486174, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186228, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'Carton_brun': {'main_port_id': 25486150, 'sub_port_id': 25486175, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186229, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'mal_croppe': {'main_port_id': 25486150, 'sub_port_id': 25486176, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186230, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'autre_refus': {'main_port_id': 25486150, 'sub_port_id': 25486177, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186231, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 25486150, 'sub_port_id': 25486178, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186232, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'papier': {'main_port_id': 25486150, 'sub_port_id': 25486179, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186233, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}, 'flou': {'main_port_id': 25486150, 'sub_port_id': 25486180, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186234, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486169 , 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=25486150 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 (25486169) result : ((1374387041,), (1374387042,), (1374387043,), (1374387044,), (1374387046,), (1374387047,), (1374387090,), (1374387091,), (1374387092,), (1374387093,), (1374387094,), (1374387095,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486170 , 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=25486150 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 (25486170) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486171 , 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=25486150 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 (25486171) result : ((1374387048,), (1374387049,), (1374387050,), (1374387051,), (1374387096,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486172 , 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=25486150 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 (25486172) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486173 , 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=25486150 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 (25486173) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486174 , 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=25486150 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 (25486174) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486175 , 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=25486150 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 (25486175) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486176 , 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=25486150 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 (25486176) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486177 , 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=25486150 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 (25486177) result : ((1374387032,), (1374387033,), (1374387034,), (1374387036,), (1374387037,), (1374387038,), (1374387080,), (1374387081,), (1374387082,), (1374387083,), (1374387084,), (1374387085,), (1374387086,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486178 , 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=25486150 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 (25486178) result : ((1374387020,), (1374387021,), (1374387022,), (1374387023,), (1374387024,), (1374387025,), (1374387026,), (1374387028,), (1374387029,), (1374387030,), (1374387070,), (1374387071,), (1374387072,), (1374387073,), (1374387074,), (1374387075,), (1374387076,), (1374387078,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486179 , 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=25486150 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 (25486179) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25486180 , 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=25486150 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 (25486180) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25486150) result : ((1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) 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 (1374386600) and cspi.crop_hashtag_id = chi.id; 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`=25486150 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_gris','Carton_brun','environnement','papier','flou','plastique','autre_refus','cartonnette','Teint_Dans_La_Masse','kraft')) 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`=25486150 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_gris','Carton_brun','environnement','papier','flou','plastique','autre_refus','cartonnette','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25486150, 'sub_port_id': 25486182, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186235, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'cartonnette': {'main_port_id': 25486150, 'sub_port_id': 25486183, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186236, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'plastique': {'main_port_id': 25486150, 'sub_port_id': 25486184, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186237, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'kraft': {'main_port_id': 25486150, 'sub_port_id': 25486185, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186238, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'metal': {'main_port_id': 25486150, 'sub_port_id': 25486186, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186239, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'environnement': {'main_port_id': 25486150, 'sub_port_id': 25486187, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186240, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'Carton_brun': {'main_port_id': 25486150, 'sub_port_id': 25486188, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186241, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'mal_croppe': {'main_port_id': 25486150, 'sub_port_id': 25486189, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186242, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'autre_refus': {'main_port_id': 25486150, 'sub_port_id': 25486190, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186243, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25486150, 'sub_port_id': 25486191, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186244, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'papier': {'main_port_id': 25486150, 'sub_port_id': 25486192, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186245, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}, 'flou': {'main_port_id': 25486150, 'sub_port_id': 25486193, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17186246, 'last_updated_at': datetime.datetime(2025, 7, 30, 4, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 4, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 4, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486175 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486189,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486176 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486190,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486177 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486191,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486178 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486192,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486179 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25486193,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25486180 lien utilise dans velours : https://www.fotonower.com/velours/25486182,25486183,25486184,25486185,25486186,25486187,25486188,25486189,25486190,25486191,25486192,25486193?tags=Carton_gris,cartonnette,plastique,kraft,metal,environnement,Carton_brun,mal_croppe,autre_refus,Teint_Dans_La_Masse,papier,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25486150]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017] map_info['map_portfolio_photo'] : {25486150: [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017, 1374387006, 1374387005, 1374387004, 1374387003, 1374387002, 1374387001, 1374386980, 1374386976, 1374386973, 1374386971, 1374386969, 1374386967, 1374386932, 1374386930, 1374386929, 1374386928, 1374386926, 1374386924, 1374386899, 1374386896, 1374386895, 1374386889, 1374386888, 1374386886, 1374386876, 1374386875, 1374386874, 1374386873, 1374386872, 1374386870, 1374386854, 1374386851, 1374386849, 1374386847, 1374386846, 1374386845, 1374386663, 1374386640, 1374386619, 1374386600, 1374386599, 1374386597]} final : False mtd_id 4302 list_pids : [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017] Looping around the photos to save general results len do output : 1 /25486150. 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, '3393913') ('4302', '25486150', '1374387088', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387079', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387069', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387068', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387067', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387066', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387017', None, None, None, None, None, '3393913') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '25486150', "{'Carton_gris': 25486169, 'cartonnette': 25486170, 'plastique': 25486171, 'kraft': 25486172, 'metal': 25486173, 'environnement': 25486174, 'Carton_brun': 25486175, 'mal_croppe': 25486176, 'autre_refus': 25486177, 'Teint_Dans_La_Masse': 25486178, 'papier': 25486179, 'flou': 25486180}", None, None, None, None, '3393913'), ('4302', '25486150', '1374387088', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387079', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387069', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387068', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387067', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387066', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387017', None, None, None, None, None, '3393913')] time used for this insertion : 0.05574846267700195 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1893391609191895 time spend to save output : 0.056052207946777344 total time spend for step 1 : 1.2453913688659668 step2:final Wed Jul 30 04:11: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 ! 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 (25486150) 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 25486150 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374386663,1374386640,1374386619,1374386600,1374386599,1374386597,1374386854,1374386851,1374386849,1374386847,1374386846,1374386845,1374386876,1374386875,1374386874,1374386873,1374386872,1374386870,1374386899,1374386896,1374386895,1374386889,1374386888,1374386886,1374386932,1374386930,1374386929,1374386928,1374386926,1374386924,1374386980,1374386976,1374386973,1374386971,1374386969,1374386967,1374387006,1374387005,1374387004,1374387003,1374387002,1374387001,1374387017,1374387088,1374387079,1374387069,1374387068,1374387067,1374387066); 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([25486150]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',)} new output for save of step final : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',)} [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017] map_info['map_portfolio_photo'] : {25486150: [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017, 1374387006, 1374387005, 1374387004, 1374387003, 1374387002, 1374387001, 1374386980, 1374386976, 1374386973, 1374386971, 1374386969, 1374386967, 1374386932, 1374386930, 1374386929, 1374386928, 1374386926, 1374386924, 1374386899, 1374386896, 1374386895, 1374386889, 1374386888, 1374386886, 1374386876, 1374386875, 1374386874, 1374386873, 1374386872, 1374386870, 1374386854, 1374386851, 1374386849, 1374386847, 1374386846, 1374386845, 1374386663, 1374386640, 1374386619, 1374386600, 1374386599, 1374386597]} final : False mtd_id 4302 list_pids : [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017] Looping around the photos to save general results len do output : 7 /1374387088.Didn't retrieve data . /1374387079.Didn't retrieve data . /1374387069.Didn't retrieve data . /1374387068.Didn't retrieve data . /1374387067.Didn't retrieve data . /1374387066.Didn't retrieve data . /1374387017.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, '3393913') ('4302', '25486150', '1374387088', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387079', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387069', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387068', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387067', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387066', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387017', None, None, None, None, None, '3393913') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25486150', '1374387088', '0.10644976914976689', None, None, None, None, '3393913'), ('4302', '25486150', '1374387079', '0.10644976914976689', None, None, None, None, '3393913'), ('4302', '25486150', '1374387069', '0.10644976914976689', None, None, None, None, '3393913'), ('4302', '25486150', '1374387068', '0.10644976914976689', None, None, None, None, '3393913'), ('4302', '25486150', '1374387067', '0.10644976914976689', None, None, None, None, '3393913'), ('4302', '25486150', '1374387066', '0.10644976914976689', None, None, None, None, '3393913'), ('4302', '25486150', '1374387017', '0.10644976914976689', None, None, None, None, '3393913')] time used for this insertion : 0.07372164726257324 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09702706336975098 time spend to save output : 0.0741415023803711 total time spend for step 2 : 0.17116856575012207 step3:velours_tree Wed Jul 30 04:11: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 complete output_args for input 0 : {25486150: [{'Carton_gris': 25486169, 'cartonnette': 25486170, 'plastique': 25486171, 'kraft': 25486172, 'metal': 25486173, 'environnement': 25486174, 'Carton_brun': 25486175, 'mal_croppe': 25486176, 'autre_refus': 25486177, 'Teint_Dans_La_Masse': 25486178, 'papier': 25486179, 'flou': 25486180}]} input_args_next_step : {25486150: ()} output_args : {25486150: [{'Carton_gris': 25486169, 'cartonnette': 25486170, 'plastique': 25486171, 'kraft': 25486172, 'metal': 25486173, 'environnement': 25486174, 'Carton_brun': 25486175, 'mal_croppe': 25486176, 'autre_refus': 25486177, 'Teint_Dans_La_Masse': 25486178, 'papier': 25486179, 'flou': 25486180}]} args : 25486150 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 25486169, 'cartonnette': 25486170, 'plastique': 25486171, 'kraft': 25486172, 'metal': 25486173, 'environnement': 25486174, 'Carton_brun': 25486175, 'mal_croppe': 25486176, 'autre_refus': 25486177, 'Teint_Dans_La_Masse': 25486178, 'papier': 25486179, 'flou': 25486180},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25486150) 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([25486150]) 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.29926466941833496 time spend to save output : 5.269050598144531e-05 total time spend for step 3 : 0.2993173599243164 step4:send_mail_cod Wed Jul 30 04:11: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 : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',)} input_args_next_step : {1374387088: ()} output_args : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',)} args : 1374387088 depend.output_id : 0 input_args_next_step : {1374387088: ('0.10644976914976689',), 1374387079: ()} output_args : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',)} args : 1374387079 depend.output_id : 0 input_args_next_step : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ()} output_args : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',)} args : 1374387069 depend.output_id : 0 input_args_next_step : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ()} output_args : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',)} args : 1374387068 depend.output_id : 0 input_args_next_step : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ()} output_args : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',)} args : 1374387067 depend.output_id : 0 input_args_next_step : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ()} output_args : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',)} args : 1374387066 depend.output_id : 0 input_args_next_step : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ()} output_args : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',)} args : 1374387017 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 : {25486150: [{'Carton_gris': 25486169, 'cartonnette': 25486170, 'plastique': 25486171, 'kraft': 25486172, 'metal': 25486173, 'environnement': 25486174, 'Carton_brun': 25486175, 'mal_croppe': 25486176, 'autre_refus': 25486177, 'Teint_Dans_La_Masse': 25486178, 'papier': 25486179, 'flou': 25486180}]} input_args_next_step : {1374387088: ('0.10644976914976689',), 1374387079: ('0.10644976914976689',), 1374387069: ('0.10644976914976689',), 1374387068: ('0.10644976914976689',), 1374387067: ('0.10644976914976689',), 1374387066: ('0.10644976914976689',), 1374387017: ('0.10644976914976689',), 25486150: ()} output_args : {25486150: [{'Carton_gris': 25486169, 'cartonnette': 25486170, 'plastique': 25486171, 'kraft': 25486172, 'metal': 25486173, 'environnement': 25486174, 'Carton_brun': 25486175, 'mal_croppe': 25486176, 'autre_refus': 25486177, 'Teint_Dans_La_Masse': 25486178, 'papier': 25486179, 'flou': 25486180}]} args : 25486150 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 :8, first value : ('0.10644976914976689',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25486150) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1374387088,1374387079,1374387069,1374387068,1374387067,1374387066,1374387017) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374387017 begin to download photo : 1374387067 begin to download photo : 1374387069 begin to download photo : 1374387088 download finish for photo 1374387067 begin to download photo : 1374387068 download finish for photo 1374387017 begin to download photo : 1374387066 download finish for photo 1374387088 download finish for photo 1374387069 begin to download photo : 1374387079 download finish for photo 1374387068 download finish for photo 1374387066 download finish for photo 1374387079 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette254861701753841461/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P25486150_30-07-2025_04_11_01.pdf 25486170 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486170 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254861701753841461 25486171 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374387048: '1753841305_1782660_1374386899_9c6e6d5fefe84f5df30ab82660568322_rle_crop_3897920062_0.png', 1374387049: '1753841305_1782660_1374386896_da901d795ca00f0cfeddae8ddc59b52b_rle_crop_3897920078_0.png', 1374387050: '1753841305_1782660_1374386895_b599f0590be93a6d0ee9fbd4f8d46e8d_rle_crop_3897920091_0.png', 1374387051: '1753841305_1782660_1374386886_017492e067c56d671e96b2fea762ab9b_rle_crop_3897920143_0.png', 1374387096: '1753841365_1784562_1374386928_0fcfb8e531416d6ecd379f95e6936fe6_rle_crop_3897920417_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/3969b7def25a3b8be0cc8239a4d9a70f_66192642.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/55f23fed208c0f55b1983f5e1aee514f_6697545.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/a184ed94874442484c3bc244613d8137_70111831.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/62e24b312f17a9184c37358ba54a2901_89266197.png change filename to text .imagette254861711753841461/ imagette254861711753841461/1753841305_1782660_1374386899_9c6e6d5fefe84f5df30ab82660568322_rle_crop_3897920062_0.png.png imagette254861711753841461/1753841305_1782660_1374386896_da901d795ca00f0cfeddae8ddc59b52b_rle_crop_3897920078_0.png.png imagette254861711753841461/1753841305_1782660_1374386886_017492e067c56d671e96b2fea762ab9b_rle_crop_3897920143_0.png.png imagette254861711753841461/1753841365_1784562_1374386928_0fcfb8e531416d6ecd379f95e6936fe6_rle_crop_3897920417_0.png.png imagette254861711753841461/1753841305_1782660_1374386895_b599f0590be93a6d0ee9fbd4f8d46e8d_rle_crop_3897920091_0.png.png imagette254861721753841462/ imagette254861731753841462/ imagette254861761753841462/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/399a17e7123606d36eafe795367c61e6_88533138.png imagette254861711753841461 25486172 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254861721753841462 25486173 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254861731753841462 25486176 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254861761753841462 25486177 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486177 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374387032: '1753841305_1782660_1374386899_9c6e6d5fefe84f5df30ab82660568322_rle_crop_3897920064_0.png', 1374387033: '1753841305_1782660_1374386896_da901d795ca00f0cfeddae8ddc59b52b_rle_crop_3897920077_0.png', 1374387034: '1753841305_1782660_1374386895_b599f0590be93a6d0ee9fbd4f8d46e8d_rle_crop_3897920093_0.png', 1374387036: '1753841305_1782660_1374386889_fce570be494d99c3e94be4c66bfc2854_rle_crop_3897920112_0.png', 1374387037: '1753841305_1782660_1374386889_fce570be494d99c3e94be4c66bfc2854_rle_crop_3897920108_0.png', 1374387038: '1753841305_1782660_1374386888_2d31a7a153eae6a925b17466a34f6f86_rle_crop_3897920127_0.png', 1374387080: '1753841365_1784562_1374386930_e595486e3618101932b68a0775adc548_rle_crop_3897920382_0.png', 1374387081: '1753841365_1784562_1374386929_7f090070f20085e896e228ad5c9e2e5a_rle_crop_3897920398_0.png', 1374387082: '1753841365_1784562_1374386928_0fcfb8e531416d6ecd379f95e6936fe6_rle_crop_3897920412_0.png', 1374387083: '1753841365_1784562_1374386926_4d22541553d6783f64ca559487d7aeb1_rle_crop_3897920432_0.png', 1374387084: '1753841365_1784562_1374386926_4d22541553d6783f64ca559487d7aeb1_rle_crop_3897920429_0.png', 1374387085: '1753841365_1784562_1374386924_d5e6743132e9e8f64bef50e307aeebda_rle_crop_3897920445_0.png', 1374387086: '1753841365_1784562_1374386924_d5e6743132e9e8f64bef50e307aeebda_rle_crop_3897920447_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/78b73d432bc066dae341cbb4dc92f354_17470159.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/3b1b81725180eb338d422fca54084767_2694548.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/af94a6cab020a7f948469ce113deb1e7_7894987.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/9aa1f27bcd42c3d64c171494088a2a17_83086162.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/48524a70d5ca087cab5d7ba527f536e7_70326653.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/8ab410c6088151aae75c841e30d92cff_18054953.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/cbc07207da0cc736ede7ac7ed9ed7c9c_15819863.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/730664fb93ad9012615e5d4e000a88f2_51319448.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/53c6db96a88dbd96386fc4be988ecb83_12645997.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/e5195212a56f13527afd2c6f1ec5d8df_47699376.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/2aaa7d9af46e0ca6385589a2ae23f6ca_16851244.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/bc4f532b1e95348628ca3a7dec1b3e2a_63319408.png change filename to text .imagette254861771753841462/ imagette254861771753841462/1753841365_1784562_1374386924_d5e6743132e9e8f64bef50e307aeebda_rle_crop_3897920445_0.png.png imagette254861771753841462/1753841305_1782660_1374386899_9c6e6d5fefe84f5df30ab82660568322_rle_crop_3897920064_0.png.png imagette254861771753841462/1753841305_1782660_1374386888_2d31a7a153eae6a925b17466a34f6f86_rle_crop_3897920127_0.png.png imagette254861771753841462/1753841305_1782660_1374386889_fce570be494d99c3e94be4c66bfc2854_rle_crop_3897920108_0.png.png imagette254861771753841462/1753841365_1784562_1374386930_e595486e3618101932b68a0775adc548_rle_crop_3897920382_0.png.png imagette254861771753841462/1753841305_1782660_1374386889_fce570be494d99c3e94be4c66bfc2854_rle_crop_3897920112_0.png.png imagette254861771753841462/1753841305_1782660_1374386896_da901d795ca00f0cfeddae8ddc59b52b_rle_crop_3897920077_0.png.png imagette254861771753841462/1753841365_1784562_1374386926_4d22541553d6783f64ca559487d7aeb1_rle_crop_3897920432_0.png.png imagette254861771753841462/1753841305_1782660_1374386895_b599f0590be93a6d0ee9fbd4f8d46e8d_rle_crop_3897920093_0.png.png imagette254861771753841462/1753841365_1784562_1374386928_0fcfb8e531416d6ecd379f95e6936fe6_rle_crop_3897920412_0.png.png imagette254861771753841462/1753841365_1784562_1374386924_d5e6743132e9e8f64bef50e307aeebda_rle_crop_3897920447_0.png.png imagette254861771753841462/1753841365_1784562_1374386926_4d22541553d6783f64ca559487d7aeb1_rle_crop_3897920429_0.png.png imagette254861771753841462/1753841365_1784562_1374386929_7f090070f20085e896e228ad5c9e2e5a_rle_crop_3897920398_0.png.png imagette254861801753841463/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/32fbe52b9c8e6a6a0ca0ad0bce46250f_57968963.png imagette254861771753841462 25486180 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486180 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254861801753841463 25486169 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486169 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374387041: '1753841305_1782660_1374386899_9c6e6d5fefe84f5df30ab82660568322_rle_crop_3897920065_0.png', 1374387042: '1753841305_1782660_1374386896_da901d795ca00f0cfeddae8ddc59b52b_rle_crop_3897920076_0.png', 1374387043: '1753841305_1782660_1374386895_b599f0590be93a6d0ee9fbd4f8d46e8d_rle_crop_3897920096_0.png', 1374387044: '1753841305_1782660_1374386889_fce570be494d99c3e94be4c66bfc2854_rle_crop_3897920113_0.png', 1374387046: '1753841305_1782660_1374386888_2d31a7a153eae6a925b17466a34f6f86_rle_crop_3897920129_0.png', 1374387047: '1753841305_1782660_1374386886_017492e067c56d671e96b2fea762ab9b_rle_crop_3897920144_0.png', 1374387090: '1753841365_1784562_1374386932_6d35dacb093db1f2e9ecadc1401e4d13_rle_crop_3897920370_0.png', 1374387091: '1753841365_1784562_1374386930_e595486e3618101932b68a0775adc548_rle_crop_3897920383_0.png', 1374387092: '1753841365_1784562_1374386929_7f090070f20085e896e228ad5c9e2e5a_rle_crop_3897920399_0.png', 1374387093: '1753841365_1784562_1374386928_0fcfb8e531416d6ecd379f95e6936fe6_rle_crop_3897920413_0.png', 1374387094: '1753841365_1784562_1374386926_4d22541553d6783f64ca559487d7aeb1_rle_crop_3897920434_0.png', 1374387095: '1753841365_1784562_1374386924_d5e6743132e9e8f64bef50e307aeebda_rle_crop_3897920448_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/5ee588379c73245d7a06f216b77a50c1_27499644.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/e0f063ed2c5a6dbb971f94697c8d29e1_78588551.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/1f721116b5a5a985c01daaa2ef648e38_45446241.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/58d5fa4ab8e2dd031b716dff4e46e85f_27553784.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/6a9862ddc7f74f4f8915b580abf08b38_70310705.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/118ce8a3337ecba6a6fc49c6499f4b61_22882680.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/a5668f58a8091e49e6108314b58d2928_61677174.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/e790280371c4be1f661e19f2d9036924_85433568.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/88507c7f9c9fedefbe05c7ae316ec157_31894694.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/a407dcb39a919a25f952dd88a0bbdbf6_89548816.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/b3b4de6ec9a027e2990edddf4de24b88_13837811.png change filename to text .imagette254861691753841463/ imagette254861691753841463/1753841305_1782660_1374386896_da901d795ca00f0cfeddae8ddc59b52b_rle_crop_3897920076_0.png.png imagette254861691753841463/1753841305_1782660_1374386895_b599f0590be93a6d0ee9fbd4f8d46e8d_rle_crop_3897920096_0.png.png imagette254861691753841463/1753841365_1784562_1374386929_7f090070f20085e896e228ad5c9e2e5a_rle_crop_3897920399_0.png.png imagette254861691753841463/1753841365_1784562_1374386932_6d35dacb093db1f2e9ecadc1401e4d13_rle_crop_3897920370_0.png.png imagette254861691753841463/1753841365_1784562_1374386928_0fcfb8e531416d6ecd379f95e6936fe6_rle_crop_3897920413_0.png.png imagette254861691753841463/1753841305_1782660_1374386899_9c6e6d5fefe84f5df30ab82660568322_rle_crop_3897920065_0.png.png imagette254861691753841463/1753841305_1782660_1374386889_fce570be494d99c3e94be4c66bfc2854_rle_crop_3897920113_0.png.png imagette254861691753841463/1753841365_1784562_1374386930_e595486e3618101932b68a0775adc548_rle_crop_3897920383_0.png.png imagette254861691753841463/1753841365_1784562_1374386926_4d22541553d6783f64ca559487d7aeb1_rle_crop_3897920434_0.png.png imagette254861691753841463/1753841365_1784562_1374386924_d5e6743132e9e8f64bef50e307aeebda_rle_crop_3897920448_0.png.png imagette254861691753841463/1753841305_1782660_1374386886_017492e067c56d671e96b2fea762ab9b_rle_crop_3897920144_0.png.png imagette254861691753841463/1753841305_1782660_1374386888_2d31a7a153eae6a925b17466a34f6f86_rle_crop_3897920129_0.png.png imagette254861751753841464/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/0216753d3dc5e5f0d9f6f096ec48233a_83766080.png imagette254861691753841463 25486175 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486175 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254861751753841464 25486178 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486178 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374387030: '1753841305_1782660_1374386886_017492e067c56d671e96b2fea762ab9b_rle_crop_3897920153_0.png', 1374387078: '1753841365_1784562_1374386924_d5e6743132e9e8f64bef50e307aeebda_rle_crop_3897920455_0.png', 1374387076: '1753841365_1784562_1374386924_d5e6743132e9e8f64bef50e307aeebda_rle_crop_3897920451_0.png', 1374387075: '1753841365_1784562_1374386926_4d22541553d6783f64ca559487d7aeb1_rle_crop_3897920439_0.png', 1374387074: '1753841365_1784562_1374386928_0fcfb8e531416d6ecd379f95e6936fe6_rle_crop_3897920423_0.png', 1374387073: '1753841365_1784562_1374386929_7f090070f20085e896e228ad5c9e2e5a_rle_crop_3897920406_0.png', 1374387072: '1753841365_1784562_1374386929_7f090070f20085e896e228ad5c9e2e5a_rle_crop_3897920403_0.png', 1374387071: '1753841365_1784562_1374386930_e595486e3618101932b68a0775adc548_rle_crop_3897920389_0.png', 1374387070: '1753841365_1784562_1374386932_6d35dacb093db1f2e9ecadc1401e4d13_rle_crop_3897920372_0.png', 1374387020: '1753841305_1782660_1374386899_9c6e6d5fefe84f5df30ab82660568322_rle_crop_3897920072_0.png', 1374387029: '1753841305_1782660_1374386886_017492e067c56d671e96b2fea762ab9b_rle_crop_3897920152_0.png', 1374387028: '1753841305_1782660_1374386888_2d31a7a153eae6a925b17466a34f6f86_rle_crop_3897920136_0.png', 1374387026: '1753841305_1782660_1374386888_2d31a7a153eae6a925b17466a34f6f86_rle_crop_3897920133_0.png', 1374387025: '1753841305_1782660_1374386889_fce570be494d99c3e94be4c66bfc2854_rle_crop_3897920114_0.png', 1374387024: '1753841305_1782660_1374386895_b599f0590be93a6d0ee9fbd4f8d46e8d_rle_crop_3897920101_0.png', 1374387023: '1753841305_1782660_1374386895_b599f0590be93a6d0ee9fbd4f8d46e8d_rle_crop_3897920100_0.png', 1374387022: '1753841305_1782660_1374386896_da901d795ca00f0cfeddae8ddc59b52b_rle_crop_3897920086_0.png', 1374387021: '1753841305_1782660_1374386896_da901d795ca00f0cfeddae8ddc59b52b_rle_crop_3897920083_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/4cb1e6e63888161214607050e40ea544_38456891.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/e8362a040381841036097f254adb429f_31624541.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/dc3072f0cc062b7faeda4d0190cfa0de_17953239.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/8ad5e88b46596e632036f4189b82fe8e_61377353.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/46e12565b7ade255f9c91b8f27da1bae_66821584.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/1ba161510f20aa7b86c7fb8795a10e9f_83139754.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/955984c1610193011353bd4bf1cdabda_48450085.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/89ad7ef27b3c04ce946351bcc540dde7_60314702.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/0b2b1f26cf1071bf3be9f627730450aa_63196471.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/712408498cb9593242eeb05bcd06bf5c_50684792.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/1d1d97826808e9e5b4f03ecd2f4ebcd4_75555661.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/227410f8fc487f0a3712c863c73302a9_18894845.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/5c4d54396d565d4b3ec342ef85427fd9_24117763.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/021cf4111bdff9aacb06d0a328c1f698_97695512.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/06e662267e705f0ec1de2d64f951edaf_17315247.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/ffd238def086dec4020307ee8fc6241d_20490415.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/0d9ba62497728ba49ca6338e4eef9b8a_41102466.png change filename to text .imagette254861781753841464/ imagette254861781753841464/1753841305_1782660_1374386896_da901d795ca00f0cfeddae8ddc59b52b_rle_crop_3897920083_0.png.png imagette254861781753841464/1753841365_1784562_1374386926_4d22541553d6783f64ca559487d7aeb1_rle_crop_3897920439_0.png.png imagette254861781753841464/1753841305_1782660_1374386888_2d31a7a153eae6a925b17466a34f6f86_rle_crop_3897920133_0.png.png imagette254861781753841464/1753841365_1784562_1374386924_d5e6743132e9e8f64bef50e307aeebda_rle_crop_3897920455_0.png.png imagette254861781753841464/1753841365_1784562_1374386930_e595486e3618101932b68a0775adc548_rle_crop_3897920389_0.png.png imagette254861781753841464/1753841305_1782660_1374386899_9c6e6d5fefe84f5df30ab82660568322_rle_crop_3897920072_0.png.png imagette254861781753841464/1753841365_1784562_1374386929_7f090070f20085e896e228ad5c9e2e5a_rle_crop_3897920406_0.png.png imagette254861781753841464/1753841305_1782660_1374386896_da901d795ca00f0cfeddae8ddc59b52b_rle_crop_3897920086_0.png.png imagette254861781753841464/1753841305_1782660_1374386895_b599f0590be93a6d0ee9fbd4f8d46e8d_rle_crop_3897920101_0.png.png imagette254861781753841464/1753841365_1784562_1374386929_7f090070f20085e896e228ad5c9e2e5a_rle_crop_3897920403_0.png.png imagette254861781753841464/1753841365_1784562_1374386932_6d35dacb093db1f2e9ecadc1401e4d13_rle_crop_3897920372_0.png.png imagette254861781753841464/1753841305_1782660_1374386889_fce570be494d99c3e94be4c66bfc2854_rle_crop_3897920114_0.png.png imagette254861781753841464/1753841305_1782660_1374386886_017492e067c56d671e96b2fea762ab9b_rle_crop_3897920152_0.png.png imagette254861781753841464/1753841305_1782660_1374386886_017492e067c56d671e96b2fea762ab9b_rle_crop_3897920153_0.png.png imagette254861781753841464/1753841305_1782660_1374386888_2d31a7a153eae6a925b17466a34f6f86_rle_crop_3897920136_0.png.png imagette254861781753841464/1753841305_1782660_1374386895_b599f0590be93a6d0ee9fbd4f8d46e8d_rle_crop_3897920100_0.png.png imagette254861781753841464/1753841365_1784562_1374386928_0fcfb8e531416d6ecd379f95e6936fe6_rle_crop_3897920423_0.png.png imagette254861781753841464/1753841365_1784562_1374386924_d5e6743132e9e8f64bef50e307aeebda_rle_crop_3897920451_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/d149cd5a5d13b0a2ac9ed0ab71da27a7_27968394.png imagette254861781753841464 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25486150 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25486182,25486183,25486184,25486185,25486186,25486187,25486188,25486189,25486190,25486191,25486192,25486193?tags=Carton_gris,cartonnette,plastique,kraft,metal,environnement,Carton_brun,mal_croppe,autre_refus,Teint_Dans_La_Masse,papier,flou your option no_mail is active, we will not send the real mail to your client args[1374387088] : ('0.10644976914976689',) no score found for photo 1374387088 We are sending mail with results at report@fotonower.com args[1374387079] : ('0.10644976914976689',) no score found for photo 1374387079 We are sending mail with results at report@fotonower.com args[1374387069] : ('0.10644976914976689',) no score found for photo 1374387069 We are sending mail with results at report@fotonower.com args[1374387068] : ('0.10644976914976689',) no score found for photo 1374387068 We are sending mail with results at report@fotonower.com args[1374387067] : ('0.10644976914976689',) no score found for photo 1374387067 We are sending mail with results at report@fotonower.com args[1374387066] : ('0.10644976914976689',) no score found for photo 1374387066 We are sending mail with results at report@fotonower.com args[1374387017] : ('0.10644976914976689',) no score found for photo 1374387017 We are sending mail with results at report@fotonower.com refus_total : 0.10644976914976689 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486150 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_P25486150_30-07-2025_04_11_01.pdf results_Auto_P25486150_30-07-2025_04_11_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486150_30-07-2025_04_11_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','25486150','results_Auto_P25486150_30-07-2025_04_11_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486150_30-07-2025_04_11_01.pdf','pdf','','0.26','0.10644976914976689') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25486150]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017] map_info['map_portfolio_photo'] : {25486150: [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017, 1374387006, 1374387005, 1374387004, 1374387003, 1374387002, 1374387001, 1374386980, 1374386976, 1374386973, 1374386971, 1374386969, 1374386967, 1374386932, 1374386930, 1374386929, 1374386928, 1374386926, 1374386924, 1374386899, 1374386896, 1374386895, 1374386889, 1374386888, 1374386886, 1374386876, 1374386875, 1374386874, 1374386873, 1374386872, 1374386870, 1374386854, 1374386851, 1374386849, 1374386847, 1374386846, 1374386845, 1374386663, 1374386640, 1374386619, 1374386600, 1374386599, 1374386597]} final : False mtd_id 4302 list_pids : [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017] 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, '3393913') ('4302', '25486150', '1374387088', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387079', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387069', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387068', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387067', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387066', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387017', None, None, None, None, None, '3393913') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '25486150', '1374387088', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387079', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387069', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387068', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387067', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387066', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387017', None, None, None, None, None, '3393913')] time used for this insertion : 0.09356999397277832 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.608102321624756 time spend to save output : 0.09379935264587402 total time spend for step 4 : 4.70190167427063 step5:split_time_score Wed Jul 30 04:11:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25486150'] 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 : [('25486150',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25486150) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374387088: {'path': 'temp/1753841461_3931402_1374387088_8ab6cd126c1a06b238edc7d0588304e0.jpg', 'extension': 'jpg'}, 1374387067: {'path': 'temp/1753841461_3931402_1374387067_699350b1ece5f3419409fa3abbdaf7d7.jpg', 'extension': 'jpg'}, 1374387068: {'path': 'temp/1753841461_3931402_1374387068_e68800a691c10dba0d9da1a58d4af892.jpg', 'extension': 'jpg'}, 1374387017: {'path': 'temp/1753841461_3931402_1374387017_f7925355b6018fce1866b71e230ffb5d.jpg', 'extension': 'jpg'}, 1374387066: {'path': 'temp/1753841461_3931402_1374387066_1e6e5ac76438a4601a20785aa2c5a2cb.jpg', 'extension': 'jpg'}, 1374387069: {'path': 'temp/1753841461_3931402_1374387069_dce75b5cfdf68f2d3b7a61bcb0c3aee6.jpg', 'extension': 'jpg'}, 1374387079: {'path': 'temp/1753841461_3931402_1374387079_05d23358b1d9f236a37bed7fcc255f18.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 = 25486150; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25486150 group by h (('04', 49),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25486150 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 (25486150) 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 (25486150) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30072025 25486150 Nombre de photos uploadées : 49 / 23040 (0%) 30072025 25486150 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 30072025 25486150 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1374386663, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/3a26f43b4384979bb61622ec271a2130.jpg', 'username': None, 'uploaded_at': 1753840923, 'text': 'image_30072025_04_01_03_10154.jpg'}, {'photo_id': 1374386640, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/557406d39c471d503478ef787f2adb2f.jpg', 'username': None, 'uploaded_at': 1753840923, 'text': 'image_30072025_04_01_14_10139.jpg'}, {'photo_id': 1374386619, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/c0b3227ac3da03acac31ff7ea22e1381.jpg', 'username': None, 'uploaded_at': 1753840923, 'text': 'image_30072025_04_01_24_10134.jpg'}, {'photo_id': 1374386600, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/f80084dc293c1c50d857c6bf8e1cde36.jpg', 'username': None, 'uploaded_at': 1753840923, 'text': 'image_30072025_04_01_34_10146.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 3.337860107421875e-06 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013129711151123047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25486150, '2025-07-30' ) 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-07-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2027315,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21369171142578125 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= 2027315 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25479976, 'dashboard_result_id': 13339794, '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_P25479976_30-07-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25480144, 'dashboard_result_id': 13339795, '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_P25480144_30-07-2025_00_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25480540, 'dashboard_result_id': 13339796, '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_P25480540_30-07-2025_00_46_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25480974, 'dashboard_result_id': 13339797, '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_P25480974_30-07-2025_01_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25481445, 'dashboard_result_id': 13339798, '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_P25481445_30-07-2025_01_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25482072, 'dashboard_result_id': 13339799, '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_P25482072_30-07-2025_01_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25482427, 'dashboard_result_id': 13339800, '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_P25482427_30-07-2025_01_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25482774, 'dashboard_result_id': 13339801, '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_P25482774_30-07-2025_02_00_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25483286, 'dashboard_result_id': 13339802, '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_P25483286_30-07-2025_02_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25483646, 'dashboard_result_id': 13339803, '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_P25483646_30-07-2025_02_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25483956, 'dashboard_result_id': 13339804, '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_P25483956_30-07-2025_02_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25484328, 'dashboard_result_id': 13339805, '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_P25484328_30-07-2025_03_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25484572, 'dashboard_result_id': 13339806, '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_P25484572_30-07-2025_03_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25485118, 'dashboard_result_id': 13339807, '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_P25485118_30-07-2025_03_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25485550, 'dashboard_result_id': 13339808, '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_P25485550_30-07-2025_03_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25485885, 'dashboard_result_id': 13339809, '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_P25485885_30-07-2025_04_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2035537, 'mtr_portfolio_id': 25486150, 'dashboard_result_id': 13339810, '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_P25486150_30-07-2025_04_09_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, '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 = 25479976 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': 3392471, 'mtr_portfolio_id': 25479976, 'created_at': datetime.datetime(2025, 7, 30, 0, 17), 'result': '0.03378535365462426', 'result_long': None, 'result_double': None}] Qualite : 0.03378535365462426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25479976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25479976 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_P25479976_30-07-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, 'pht': 3726}}" where mtr_portfolio_id = 25479976 and dashboard_run_id = 2035537 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`=25479976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339794, 0.03378535365462426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, '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 = 25480144 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': 3392510, 'mtr_portfolio_id': 25480144, 'created_at': datetime.datetime(2025, 7, 30, 0, 32, 57), 'result': '0.03724528102387108', 'result_long': None, 'result_double': None}] Qualite : 0.03724528102387108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_00_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480144 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_P25480144_30-07-2025_00_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}" where mtr_portfolio_id = 25480144 and dashboard_run_id = 2035537 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`=25480144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339795, 0.03724528102387108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_00_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, '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 = 25480540 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': 3392611, 'mtr_portfolio_id': 25480540, 'created_at': datetime.datetime(2025, 7, 30, 0, 46, 28), 'result': '0.030373420337424576', 'result_long': None, 'result_double': None}] Qualite : 0.030373420337424576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480540_30-07-2025_00_46_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480540 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_P25480540_30-07-2025_00_46_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, 'pht': 3726}}" where mtr_portfolio_id = 25480540 and dashboard_run_id = 2035537 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`=25480540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339796, 0.030373420337424576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480540_30-07-2025_00_46_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, '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 = 25480974 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': 3392697, 'mtr_portfolio_id': 25480974, 'created_at': datetime.datetime(2025, 7, 30, 1, 2, 58), 'result': '0.033100983742398976', 'result_long': None, 'result_double': None}] Qualite : 0.033100983742398976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480974_30-07-2025_01_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480974 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_P25480974_30-07-2025_01_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, 'pht': 3726}}" where mtr_portfolio_id = 25480974 and dashboard_run_id = 2035537 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`=25480974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339797, 0.033100983742398976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480974_30-07-2025_01_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, '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 = 25481445 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': 3392822, 'mtr_portfolio_id': 25481445, 'created_at': datetime.datetime(2025, 7, 30, 1, 16, 59), 'result': '0.03054757430306374', 'result_long': None, 'result_double': None}] Qualite : 0.03054757430306374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25481445 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25481445_30-07-2025_01_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25481445 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_P25481445_30-07-2025_01_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, 'pht': 3726}}" where mtr_portfolio_id = 25481445 and dashboard_run_id = 2035537 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`=25481445 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339798, 0.03054757430306374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25481445_30-07-2025_01_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, '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 = 25482072 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': 3392974, 'mtr_portfolio_id': 25482072, 'created_at': datetime.datetime(2025, 7, 30, 1, 33, 1), 'result': '0.025735805627455578', 'result_long': None, 'result_double': None}] Qualite : 0.025735805627455578 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482072_30-07-2025_01_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482072 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_P25482072_30-07-2025_01_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, 'pht': 3726}}" where mtr_portfolio_id = 25482072 and dashboard_run_id = 2035537 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`=25482072 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339799, 0.025735805627455578, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482072_30-07-2025_01_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, '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 = 25482427 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': 3393050, 'mtr_portfolio_id': 25482427, 'created_at': datetime.datetime(2025, 7, 30, 1, 46, 58), 'result': '0.027874861101910207', 'result_long': None, 'result_double': None}] Qualite : 0.027874861101910207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482427_30-07-2025_01_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482427 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_P25482427_30-07-2025_01_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, 'pht': 3726}}" where mtr_portfolio_id = 25482427 and dashboard_run_id = 2035537 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`=25482427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339800, 0.027874861101910207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482427_30-07-2025_01_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, '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 = 25482774 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': 3393144, 'mtr_portfolio_id': 25482774, 'created_at': datetime.datetime(2025, 7, 30, 2, 0, 58), 'result': '0.03177120082252785', 'result_long': None, 'result_double': None}] Qualite : 0.03177120082252785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482774_30-07-2025_02_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482774 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_P25482774_30-07-2025_02_00_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, 'pht': 3726}}" where mtr_portfolio_id = 25482774 and dashboard_run_id = 2035537 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`=25482774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339801, 0.03177120082252785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482774_30-07-2025_02_00_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, '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 = 25483286 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': 3393236, 'mtr_portfolio_id': 25483286, 'created_at': datetime.datetime(2025, 7, 30, 2, 16, 59), 'result': '0.051907535762057457', 'result_long': None, 'result_double': None}] Qualite : 0.051907535762057457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483286_30-07-2025_02_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483286 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_P25483286_30-07-2025_02_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, 'pht': 3726}}" where mtr_portfolio_id = 25483286 and dashboard_run_id = 2035537 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`=25483286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339802, 0.051907535762057457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483286_30-07-2025_02_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, '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 = 25483646 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': 3393304, 'mtr_portfolio_id': 25483646, 'created_at': datetime.datetime(2025, 7, 30, 2, 30, 57), 'result': '0.07607978582482756', 'result_long': None, 'result_double': None}] Qualite : 0.07607978582482756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483646_30-07-2025_02_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483646 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_P25483646_30-07-2025_02_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, 'pht': 3726}}" where mtr_portfolio_id = 25483646 and dashboard_run_id = 2035537 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`=25483646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339803, 0.07607978582482756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483646_30-07-2025_02_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, '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 = 25483956 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': 3393382, 'mtr_portfolio_id': 25483956, 'created_at': datetime.datetime(2025, 7, 30, 2, 46, 59), 'result': '0.04544815370372675', 'result_long': None, 'result_double': None}] Qualite : 0.04544815370372675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483956_30-07-2025_02_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483956 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_P25483956_30-07-2025_02_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, 'pht': 3726}}" where mtr_portfolio_id = 25483956 and dashboard_run_id = 2035537 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`=25483956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339804, 0.04544815370372675, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483956_30-07-2025_02_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, '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 = 25484328 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': 3393455, 'mtr_portfolio_id': 25484328, 'created_at': datetime.datetime(2025, 7, 30, 3, 0, 59), 'result': '0.04257586027877764', 'result_long': None, 'result_double': None}] Qualite : 0.04257586027877764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25484328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484328_30-07-2025_03_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25484328 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_P25484328_30-07-2025_03_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, 'pht': 3726}}" where mtr_portfolio_id = 25484328 and dashboard_run_id = 2035537 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`=25484328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339805, 0.04257586027877764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484328_30-07-2025_03_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, '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 = 25484572 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': 3393542, 'mtr_portfolio_id': 25484572, 'created_at': datetime.datetime(2025, 7, 30, 3, 16, 58), 'result': '0.02396775032542387', 'result_long': None, 'result_double': None}] Qualite : 0.02396775032542387 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25484572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484572_30-07-2025_03_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25484572 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_P25484572_30-07-2025_03_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, 'pht': 3726}}" where mtr_portfolio_id = 25484572 and dashboard_run_id = 2035537 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`=25484572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339806, 0.02396775032542387, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484572_30-07-2025_03_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, '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 = 25485118 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': 3393637, 'mtr_portfolio_id': 25485118, 'created_at': datetime.datetime(2025, 7, 30, 3, 32, 57), 'result': '0.05308443801019936', 'result_long': None, 'result_double': None}] Qualite : 0.05308443801019936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485118_30-07-2025_03_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485118 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_P25485118_30-07-2025_03_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, 'pht': 3726}}" where mtr_portfolio_id = 25485118 and dashboard_run_id = 2035539 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`=25485118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339807, 0.05308443801019936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485118_30-07-2025_03_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, '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 = 25485550 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': 3393743, 'mtr_portfolio_id': 25485550, 'created_at': datetime.datetime(2025, 7, 30, 3, 46, 59), 'result': '0.005358286176127518', 'result_long': None, 'result_double': None}] Qualite : 0.005358286176127518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485550_30-07-2025_03_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485550 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_P25485550_30-07-2025_03_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, 'pht': 3726}}" where mtr_portfolio_id = 25485550 and dashboard_run_id = 2035539 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`=25485550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339808, 0.005358286176127518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485550_30-07-2025_03_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, '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 = 25485885 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': 3393824, 'mtr_portfolio_id': 25485885, 'created_at': datetime.datetime(2025, 7, 30, 4, 2, 57), 'result': '0.029136448184044664', 'result_long': None, 'result_double': None}] Qualite : 0.029136448184044664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485885_30-07-2025_04_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485885 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_P25485885_30-07-2025_04_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, 'pht': 3726}}" where mtr_portfolio_id = 25485885 and dashboard_run_id = 2035539 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`=25485885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339809, 0.029136448184044664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485885_30-07-2025_04_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, '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 = 25486150 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': 3393913, 'mtr_portfolio_id': 25486150, 'created_at': datetime.datetime(2025, 7, 30, 4, 11, 1), 'result': '0.10644976914976689', 'result_long': None, 'result_double': None}] Qualite : 0.10644976914976689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25486150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486150_30-07-2025_04_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25486150 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_P25486150_30-07-2025_04_11_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, 'pht': 3726}}" where mtr_portfolio_id = 25486150 and dashboard_run_id = 2035539 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`=25486150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13339810, 0.10644976914976689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486150_30-07-2025_04_11_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, '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 (25479976,25480144,25480540,25480974,25481445,25482072,25482427,25482774,25483286,25483646,25483956,25484328,25484572,25485118,25485550,25485885,25486150) result : ((1374372764,), (1374372795,), (1374372823,), (1374372841,), (1374372865,), (1374373025,), (1374373026,), (1374373027,), (1374373028,), (1374373029,), (1374373031,), (1374373050,), (1374373051,), (1374373052,), (1374373053,), (1374373055,), (1374373057,), (1374373069,), (1374373070,), (1374373071,), (1374373072,), (1374373073,), (1374373075,), (1374373102,), (1374373108,), (1374373109,), (1374373110,), (1374373112,), (1374373114,), (1374373138,), (1374373140,), (1374373142,), (1374373145,), (1374373149,), (1374373151,), (1374373154,), (1374373156,), (1374373157,), (1374373158,), (1374373159,), (1374373162,), (1374373166,), (1374373176,), (1374373177,), (1374373178,), (1374373179,), (1374373181,), (1374373182,), (1374373221,), (1374373240,), (1374373241,), (1374373243,), (1374373245,), (1374373248,), (1374373252,), (1374373332,), (1374373334,), (1374373335,), (1374373350,), (1374373364,), (1374373366,), (1374373391,), (1374373397,), (1374373403,), (1374373404,), (1374373405,), (1374373408,), (1374373417,), (1374373418,), (1374373419,), (1374373420,), (1374373422,), (1374373424,), (1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,), (1374373693,), (1374373694,), (1374373695,), (1374373696,), (1374373698,), (1374373700,), (1374373710,), (1374373718,), (1374373724,), (1374373725,), (1374373727,), (1374373728,), (1374373752,), (1374373753,), (1374373754,), (1374373755,), (1374373757,), (1374373759,), (1374373771,), (1374373781,), (1374373782,), (1374373783,), (1374373785,), (1374373787,), (1374373794,), (1374373795,), (1374373796,), (1374373797,), (1374373798,), (1374373800,), (1374373826,), (1374373828,), (1374373829,), (1374373831,), (1374373834,), (1374373837,), (1374373843,), (1374373844,), (1374373845,), (1374373846,), (1374373848,), (1374373850,), (1374373898,), (1374373910,), (1374373912,), (1374373914,), (1374373915,), (1374373917,), (1374373919,), (1374373928,), (1374373930,), (1374373932,), (1374373933,), (1374373935,), (1374373937,), (1374373944,), (1374373955,), (1374373966,), (1374373967,), (1374373968,), (1374373971,), (1374373984,), (1374373994,), (1374373996,), (1374373997,), (1374373998,), (1374374000,), (1374374010,), (1374374012,), (1374374013,), (1374374014,), (1374374015,), (1374374017,), (1374374039,), (1374374045,), (1374374047,), (1374374048,), (1374374049,), (1374374051,), (1374374061,), (1374374068,), (1374374075,), (1374374077,), (1374374079,), (1374374082,), (1374374104,), (1374374105,), (1374374106,), (1374374108,), (1374374111,), (1374374115,), (1374374123,), (1374374130,), (1374374162,), (1374374169,), (1374374171,), (1374374172,), (1374374174,), (1374374177,), (1374374197,), (1374374222,), (1374374231,), (1374374232,), (1374374234,), (1374374235,), (1374374237,), (1374374249,), (1374374250,), (1374374252,), (1374374253,), (1374374254,), (1374374256,), (1374374283,), (1374374284,), (1374374286,), (1374374288,), (1374374291,), (1374374300,), (1374374320,), (1374374327,), (1374374328,), (1374374329,), (1374374331,), (1374374332,), (1374374356,), (1374374363,), (1374374364,), (1374374365,), (1374374367,), (1374374370,), (1374374378,), (1374374379,), (1374374380,), (1374374381,), (1374374383,), (1374374385,), (1374374400,), (1374374407,), (1374374408,), (1374374409,), (1374374411,), (1374374414,), (1374374469,), (1374374502,), (1374374508,), (1374374511,), (1374374512,), (1374374515,), (1374374518,), (1374374530,), (1374374540,), (1374374546,), (1374374547,), (1374374549,), (1374374551,), (1374374572,), (1374374581,), (1374374582,), (1374374583,), (1374374584,), (1374374586,), (1374374607,), (1374374616,), (1374374618,), (1374374619,), (1374374621,), (1374374624,), (1374374634,), (1374374635,), (1374374636,), (1374374637,), (1374374639,), (1374374642,), (1374374669,), (1374374670,), (1374374671,), (1374374672,), (1374374674,), (1374374676,), (1374374688,), (1374374689,), (1374374699,), (1374374724,), (1374374748,), (1374374775,), (1374375287,), (1374375321,), (1374375366,), (1374375412,), (1374375464,), (1374375515,), (1374376023,), (1374376385,), (1374376395,), (1374376422,), (1374376434,), (1374376435,), (1374376436,), (1374376460,), (1374376464,), (1374376465,), (1374376466,), (1374376468,), (1374376471,), (1374376491,), (1374376492,), (1374376493,), (1374376494,), (1374376496,), (1374376499,), (1374376506,), (1374376507,), (1374376508,), (1374376509,), (1374376511,), (1374376514,), (1374376532,), (1374376533,), (1374376534,), (1374376535,), (1374376537,), (1374376538,), (1374376576,), (1374376582,), (1374376583,), (1374376584,), (1374376586,), (1374376589,), (1374376597,), (1374376604,), (1374376610,), (1374376611,), (1374376613,), (1374376616,), (1374376643,), (1374376661,), (1374376666,), (1374376667,), (1374376668,), (1374376670,), (1374376672,), (1374376727,), (1374376742,), (1374376752,), (1374376757,), (1374376758,), (1374376760,), (1374376763,), (1374376778,), (1374376787,), (1374376788,), (1374376789,), (1374376790,), (1374376793,), (1374376802,), (1374376813,), (1374376819,), (1374376820,), (1374376821,), (1374376824,), (1374376837,), (1374376845,), (1374376856,), (1374376857,), (1374376858,), (1374376860,), (1374376885,), (1374376891,), (1374376892,), (1374376893,), (1374376895,), (1374376898,), (1374376926,), (1374376927,), (1374376928,), (1374376929,), (1374376931,), (1374376933,), (1374376951,), (1374376957,), (1374376958,), (1374376959,), (1374376961,), (1374376964,), (1374376980,), (1374376983,), (1374376984,), (1374376985,), (1374376986,), (1374376988,), (1374377005,), (1374377017,), (1374377018,), (1374377019,), (1374377021,), (1374377023,), (1374377029,), (1374377050,), (1374377058,), (1374377063,), (1374377064,), (1374377065,), (1374377067,), (1374377086,), (1374377092,), (1374377093,), (1374377094,), (1374377095,), (1374377097,), (1374377110,), (1374377120,), (1374377121,), (1374377122,), (1374377123,), (1374377125,), (1374377142,), (1374377148,), (1374377149,), (1374377150,), (1374377151,), (1374377154,), (1374377174,), (1374377175,), (1374377176,), (1374377177,), (1374377179,), (1374377181,), (1374377199,), (1374377207,), (1374377208,), (1374377209,), (1374377211,), (1374377213,), (1374377230,), (1374377235,), (1374377236,), (1374377237,), (1374377239,), (1374377242,), (1374377252,), (1374377253,), (1374377254,), (1374377255,), (1374377257,), (1374377258,), (1374377271,), (1374377272,), (1374377274,), (1374377275,), (1374377277,), (1374377280,), (1374377323,), (1374377331,), (1374377332,), (1374377333,), (1374377337,), (1374377346,), (1374377347,), (1374377359,), (1374377360,), (1374377361,), (1374377362,), (1374377363,), (1374377365,), (1374377378,), (1374377379,), (1374377380,), (1374377381,), (1374377382,), (1374377383,), (1374377403,), (1374377409,), (1374377410,), (1374377411,), (1374377413,), (1374377415,), (1374377425,), (1374377426,), (1374377427,), (1374377428,), (1374377429,), (1374377432,), (1374377453,), (1374377454,), (1374377455,), (1374377456,), (1374377457,), (1374377460,), (1374377483,), (1374377491,), (1374377501,), (1374377507,), (1374377508,), (1374377509,), (1374377511,), (1374377517,), (1374377518,), (1374377527,), (1374377532,), (1374377533,), (1374377535,), (1374377550,), (1374377574,), (1374377581,), (1374377587,), (1374377588,), (1374377589,), (1374377591,), (1374377599,), (1374377600,), (1374377609,), (1374377615,), (1374377616,), (1374377618,), (1374377625,), (1374377632,), (1374377638,), (1374377639,), (1374377641,), (1374377643,), (1374377649,), (1374377650,), (1374377651,), (1374377653,), (1374377655,), (1374377657,), (1374377664,), (1374377665,), (1374377674,), (1374377678,), (1374377680,), (1374377682,), (1374377722,), (1374377724,), (1374377725,), (1374377726,), (1374377728,), (1374377730,), (1374377738,), (1374377745,), (1374377747,), (1374377748,), (1374377749,), (1374377751,), (1374377753,), (1374377768,), (1374377774,), (1374377775,), (1374377776,), (1374377777,), (1374377778,), (1374377797,), (1374377827,), (1374377833,), (1374377834,), (1374377835,), (1374377837,), (1374377839,), (1374377848,), (1374377870,), (1374377871,), (1374377872,), (1374377874,), (1374377876,), (1374377878,), (1374377896,), (1374377897,), (1374377898,), (1374377899,), (1374377901,), (1374377903,), (1374377910,), (1374377911,), (1374377912,), (1374377913,), (1374377915,), (1374377917,), (1374377926,), (1374377927,), (1374377944,), (1374377966,), (1374377989,), (1374378012,), (1374378259,), (1374378261,), (1374378262,), (1374378279,), (1374378304,), (1374378327,), (1374379312,), (1374379727,), (1374379757,), (1374379758,), (1374379759,), (1374379761,), (1374379763,), (1374379766,), (1374379776,), (1374379810,), (1374379816,), (1374379819,), (1374379820,), (1374379822,), (1374379824,), (1374379833,), (1374379940,), (1374379961,), (1374379988,), (1374380011,), (1374380039,), (1374380063,), (1374380231,), (1374380233,), (1374380234,), (1374380235,), (1374380237,), (1374380239,), (1374380253,), (1374380261,), (1374380265,), (1374380266,), (1374380268,), (1374380271,), (1374380283,), (1374380284,), (1374380285,), (1374380286,), (1374380287,), (1374380289,), (1374380306,), (1374380315,), (1374380318,), (1374380319,), (1374380321,), (1374380323,), (1374380336,), (1374380350,), (1374380357,), (1374380363,), (1374380372,), (1374380376,), (1374380377,), (1374380381,), (1374380382,), (1374380383,), (1374380384,), (1374380385,), (1374380387,), (1374380404,), (1374380409,), (1374380410,), (1374380417,), (1374380419,), (1374380422,), (1374380434,), (1374380435,), (1374380436,), (1374380438,), (1374380440,), (1374380442,), (1374380452,), (1374380459,), (1374380465,), (1374380467,), (1374380469,), (1374380472,), (1374380506,), (1374380525,), (1374380534,), (1374380539,), (1374380540,), (1374380542,), (1374380545,), (1374380559,), (1374380560,), (1374380561,), (1374380562,), (1374380564,), (1374380567,), (1374380581,), (1374380582,), (1374380583,), (1374380584,), (1374380586,), (1374380589,), (1374380601,), (1374380622,), (1374380623,), (1374380624,), (1374380625,), (1374380627,), (1374380630,), (1374380649,), (1374380686,), (1374380687,), (1374380688,), (1374380689,), (1374380691,), (1374380694,), (1374380705,), (1374380706,), (1374380707,), (1374380708,), (1374380709,), (1374380711,), (1374380727,), (1374380728,), (1374380734,), (1374380735,), (1374380737,), (1374380740,), (1374380743,), (1374380744,), (1374380745,), (1374380746,), (1374380747,), (1374380749,), (1374380766,), (1374380769,), (1374380770,), (1374380771,), (1374380773,), (1374380776,), (1374380786,), (1374380792,), (1374380799,), (1374380800,), (1374380802,), (1374380803,), (1374380811,), (1374380819,), (1374380823,), (1374380824,), (1374380826,), (1374380830,), (1374380845,), (1374380877,), (1374380886,), (1374380891,), (1374380895,), (1374380896,), (1374380898,), (1374380910,), (1374380915,), (1374380916,), (1374380917,), (1374380918,), (1374380920,), (1374380933,), (1374380934,), (1374380935,), (1374380936,), (1374380938,), (1374380940,), (1374380950,), (1374380951,), (1374380952,), (1374380953,), (1374380955,), (1374380957,), (1374380972,), (1374380974,), (1374380975,), (1374380976,), (1374380978,), (1374380981,), (1374381008,), (1374381009,), (1374381010,), (1374381011,), (1374381013,), (1374381014,), (1374381029,), (1374381030,), (1374381031,), (1374381032,), (1374381034,), (1374381036,), (1374381052,), (1374381055,), (1374381056,), (1374381057,), (1374381058,), (1374381060,), (1374381070,), (1374381071,), (1374381072,), (1374381073,), (1374381075,), (1374381077,), (1374381086,), (1374381106,), (1374381107,), (1374381108,), (1374381109,), (1374381110,), (1374381111,), (1374381116,), (1374381124,), (1374381133,), (1374381136,), (1374381138,), (1374381141,), (1374381146,), (1374381154,), (1374381163,), (1374381164,), (1374381165,), (1374381167,), (1374381180,), (1374381181,), (1374381182,), (1374381184,), (1374381186,), (1374381188,), (1374381210,), (1374381216,), (1374381217,), (1374381218,), (1374381219,), (1374381221,), (1374381251,), (1374381258,), (1374381261,), (1374381262,), (1374381263,), (1374381264,), (1374381275,), (1374381276,), (1374381278,), (1374381280,), (1374381282,), (1374381285,), (1374381292,), (1374381293,), (1374381295,), (1374381297,), (1374381299,), (1374381301,), (1374381309,), (1374381319,), (1374381329,), (1374381337,), (1374381338,), (1374381339,), (1374381359,), (1374381393,), (1374381402,), (1374381404,), (1374381405,), (1374381406,), (1374381408,), (1374381424,), (1374381426,), (1374381428,), (1374381429,), (1374381430,), (1374381431,), (1374381450,), (1374381458,), (1374381460,), (1374381461,), (1374381462,), (1374381463,), (1374381478,), (1374381484,), (1374381486,), (1374381487,), (1374381488,), (1374381489,), (1374381502,), (1374381504,), (1374381505,), (1374381506,), (1374381507,), (1374381508,), (1374381546,), (1374381547,), (1374381548,), (1374381549,), (1374381550,), (1374381551,), (1374381558,), (1374381559,), (1374381560,), (1374381561,), (1374381563,), (1374381565,), (1374382034,), (1374382106,), (1374382175,), (1374382245,), (1374382325,), (1374382397,), (1374382995,), (1374382997,), (1374383000,), (1374383039,), (1374383086,), (1374383143,), (1374383518,), (1374383532,), (1374383553,), (1374383554,), (1374383555,), (1374383556,), (1374383557,), (1374383558,), (1374383571,), (1374383572,), (1374383573,), (1374383574,), (1374383575,), (1374383579,), (1374383600,), (1374383601,), (1374383602,), (1374383603,), (1374383604,), (1374383606,), (1374383635,), (1374383637,), (1374383639,), (1374383641,), (1374383644,), (1374383647,), (1374383663,), (1374383666,), (1374383668,), (1374383670,), (1374383672,), (1374383674,), (1374383692,), (1374383708,), (1374383710,), (1374383711,), (1374383712,), (1374383714,), (1374383717,), (1374383737,), (1374383756,), (1374383757,), (1374383758,), (1374383759,), (1374383760,), (1374383762,), (1374383777,), (1374383778,), (1374383779,), (1374383780,), (1374383782,), (1374383785,), (1374383798,), (1374383799,), (1374383800,), (1374383801,), (1374383802,), (1374383804,), (1374383820,), (1374383821,), (1374383823,), (1374383824,), (1374383825,), (1374383828,), (1374383838,), (1374383839,), (1374383840,), (1374383841,), (1374383843,), (1374383844,), (1374383856,), (1374383857,), (1374383858,), (1374383859,), (1374383861,), (1374383863,), (1374383877,), (1374383879,), (1374383880,), (1374383881,), (1374383883,), (1374383885,), (1374383891,), (1374383902,), (1374383911,), (1374383919,), (1374383920,), (1374383922,), (1374383924,), (1374383946,), (1374383980,), (1374383992,), (1374383997,), (1374383998,), (1374384000,), (1374384002,), (1374384017,), (1374384027,), (1374384032,), (1374384038,), (1374384039,), (1374384041,), (1374384053,), (1374384054,), (1374384055,), (1374384056,), (1374384057,), (1374384060,), (1374384076,), (1374384077,), (1374384078,), (1374384079,), (1374384081,), (1374384082,), (1374384103,), (1374384104,), (1374384105,), (1374384106,), (1374384108,), (1374384111,), (1374384142,), (1374384163,), (1374384170,), (1374384175,), (1374384176,), (1374384178,), (1374384180,), (1374384199,), (1374384207,), (1374384214,), (1374384215,), (1374384217,), (1374384219,), (1374384238,), (1374384248,), (1374384254,), (1374384255,), (1374384258,), (1374384261,), (1374384287,), (1374384309,), (1374384319,), (1374384325,), (1374384326,), (1374384327,), (1374384329,), (1374384341,), (1374384342,), (1374384343,), (1374384344,), (1374384345,), (1374384348,), (1374384363,), (1374384364,), (1374384365,), (1374384366,), (1374384368,), (1374384372,), (1374384379,), (1374384407,), (1374384409,), (1374384419,), (1374384422,), (1374384424,), (1374384425,), (1374384455,), (1374384456,), (1374384457,), (1374384458,), (1374384460,), (1374384462,), (1374384480,), (1374384483,), (1374384484,), (1374384485,), (1374384487,), (1374384490,), (1374384498,), (1374384505,), (1374384506,), (1374384507,), (1374384509,), (1374384511,), (1374384521,), (1374384527,), (1374384528,), (1374384529,), (1374384530,), (1374384532,), (1374384554,), (1374384555,), (1374384556,), (1374384557,), (1374384558,), (1374384560,), (1374384578,), (1374384585,), (1374384593,), (1374384597,), (1374384601,), (1374384605,), (1374384609,), (1374384612,), (1374384619,), (1374384620,), (1374384621,), (1374384624,), (1374384627,), (1374384641,), (1374384652,), (1374384653,), (1374384654,), (1374384655,), (1374384656,), (1374384659,), (1374384668,), (1374384669,), (1374384670,), (1374384671,), (1374384672,), (1374384674,), (1374384689,), (1374384690,), (1374384691,), (1374384692,), (1374384694,), (1374384696,), (1374384715,), (1374384717,), (1374384718,), (1374384719,), (1374384721,), (1374384723,), (1374384731,), (1374384732,), (1374384733,), (1374384734,), (1374384736,), (1374384738,), (1374384753,), (1374384794,), (1374384795,), (1374384796,), (1374384797,), (1374384799,), (1374384802,), (1374384809,), (1374384814,), (1374384815,), (1374384816,), (1374384817,), (1374384819,), (1374384822,), (1374384831,), (1374384849,), (1374384851,), (1374384855,), (1374384856,), (1374384857,), (1374384861,), (1374384878,), (1374384893,), (1374384894,), (1374384895,), (1374384896,), (1374384898,), (1374384900,), (1374385440,), (1374385481,), (1374385527,), (1374385561,), (1374385584,), (1374385607,), (1374386116,), (1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30072025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25486150]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017] map_info['map_portfolio_photo'] : {25486150: [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017, 1374387006, 1374387005, 1374387004, 1374387003, 1374387002, 1374387001, 1374386980, 1374386976, 1374386973, 1374386971, 1374386969, 1374386967, 1374386932, 1374386930, 1374386929, 1374386928, 1374386926, 1374386924, 1374386899, 1374386896, 1374386895, 1374386889, 1374386888, 1374386886, 1374386876, 1374386875, 1374386874, 1374386873, 1374386872, 1374386870, 1374386854, 1374386851, 1374386849, 1374386847, 1374386846, 1374386845, 1374386663, 1374386640, 1374386619, 1374386600, 1374386599, 1374386597]} final : True mtd_id 4302 list_pids : [1374387088, 1374387079, 1374387069, 1374387068, 1374387067, 1374387066, 1374387017] Looping around the photos to save general results len do output : 1 /25486150Didn'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, '3393913') ('4302', '25486150', '1374387088', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387079', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387069', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387068', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387067', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387066', None, None, None, None, None, '3393913') ('4302', None, None, None, None, None, None, None, '3393913') ('4302', '25486150', '1374387017', None, None, None, None, None, '3393913') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '25486150', 'None', None, None, None, None, '3393913'), ('4302', '25486150', '1374387088', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387079', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387069', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387068', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387067', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387066', None, None, None, None, None, '3393913'), ('4302', '25486150', '1374387017', None, None, None, None, None, '3393913')] time used for this insertion : 0.0431668758392334 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7045741081237793 time spend to save output : 0.04335618019104004 total time spend for step 5 : 1.7479302883148193 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 (3393913) 2.01user 2.32system 0:12.25elapsed 35%CPU (0avgtext+0avgdata 159864maxresident)k 0inputs+14952outputs (0major+64028minor)pagefaults 0swaps