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 : 977471 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 (3429305) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3429305) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599370 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3429305'] with mtr_portfolio_ids : ['25599370'] and first list_photo_ids : [] new path : /proc/977471/ Name: python3 Umask: 0002 State: R (running) Tgid: 977471 Ngid: 0 Pid: 977471 PPid: 977470 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 977471 NSpid: 977471 NSpgid: 977208 NSsid: 977208 VmPeak: 1106860 kB VmSize: 1106860 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98928 kB VmRSS: 98928 kB RssAnon: 59820 kB RssFile: 39108 kB RssShmem: 0 kB VmData: 865612 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 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: 39 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '977471', 'Ngid': '0', 'Pid': '977471', 'PPid': '977470', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '977471', 'NSpid': '977471', 'NSpgid': '977208', 'NSsid': '977208', 'VmPeak': '1106860 kB', 'VmSize': '1106860 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98928 kB', 'VmRSS': '98928 kB', 'RssAnon': '59820 kB', 'RssFile': '39108 kB', 'RssShmem': '0 kB', 'VmData': '865612 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 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': '39', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '977471', '1106860', '0', '1106860', '865612', '98928', b'', 'marlene', '3429305') 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 (25599370) 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 (3429305 ) ) 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 (25599370) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374857402, 'portfolio_id': 25599370}, {'photo_id': 1374857384, 'portfolio_id': 25599370}, {'photo_id': 1374857361, 'portfolio_id': 25599370}, {'photo_id': 1374857357, 'portfolio_id': 25599370}, {'photo_id': 1374857355, 'portfolio_id': 25599370}, {'photo_id': 1374857354, 'portfolio_id': 25599370}, {'photo_id': 1374857353, 'portfolio_id': 25599370}, {'photo_id': 1374857348, 'portfolio_id': 25599370}, {'photo_id': 1374857346, 'portfolio_id': 25599370}, {'photo_id': 1374857344, 'portfolio_id': 25599370}, {'photo_id': 1374857342, 'portfolio_id': 25599370}, {'photo_id': 1374857340, 'portfolio_id': 25599370}, {'photo_id': 1374857326, 'portfolio_id': 25599370}, {'photo_id': 1374856471, 'portfolio_id': 25599370}, {'photo_id': 1374856470, 'portfolio_id': 25599370}, {'photo_id': 1374856469, 'portfolio_id': 25599370}, {'photo_id': 1374856458, 'portfolio_id': 25599370}, {'photo_id': 1374856456, 'portfolio_id': 25599370}, {'photo_id': 1374856455, 'portfolio_id': 25599370}, {'photo_id': 1374856453, 'portfolio_id': 25599370}, {'photo_id': 1374856452, 'portfolio_id': 25599370}, {'photo_id': 1374856451, 'portfolio_id': 25599370}, {'photo_id': 1374856434, 'portfolio_id': 25599370}, {'photo_id': 1374856432, 'portfolio_id': 25599370}, {'photo_id': 1374856428, 'portfolio_id': 25599370}] map_portfolio_id_photo_id: {25599370: [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428]} ##### 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.017639875411987305 #### 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 Sun Aug 3 05:37:29 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 (25599370) 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 : 25599370 get user id for portfolio 25599370 get sub ptf for main ptf 25599370, type 3726 and hashtags ['metal', 'papier', 'Teint_Dans_La_Masse', 'plastique', 'flou', 'autre_refus', 'environnement', 'kraft', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'cartonnette'] 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`=25599370 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Teint_Dans_La_Masse','plastique','flou','autre_refus','environnement','kraft','mal_croppe','Carton_brun','Carton_gris','cartonnette')) 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`=25599370 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Teint_Dans_La_Masse','plastique','flou','autre_refus','environnement','kraft','mal_croppe','Carton_brun','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25599370, 'sub_port_id': 25599379, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260775, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'autre_refus': {'main_port_id': 25599370, 'sub_port_id': 25599380, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260776, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'Carton_gris': {'main_port_id': 25599370, 'sub_port_id': 25599381, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260777, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'cartonnette': {'main_port_id': 25599370, 'sub_port_id': 25599382, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260778, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'kraft': {'main_port_id': 25599370, 'sub_port_id': 25599383, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260779, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'mal_croppe': {'main_port_id': 25599370, 'sub_port_id': 25599384, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260780, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'environnement': {'main_port_id': 25599370, 'sub_port_id': 25599385, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260781, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'flou': {'main_port_id': 25599370, 'sub_port_id': 25599386, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260782, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'Carton_brun': {'main_port_id': 25599370, 'sub_port_id': 25599387, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260783, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25599370, 'sub_port_id': 25599388, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260784, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'metal': {'main_port_id': 25599370, 'sub_port_id': 25599389, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260785, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}, 'plastique': {'main_port_id': 25599370, 'sub_port_id': 25599390, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260786, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599379 , 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=25599370 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 (25599379) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599380 , 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=25599370 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 (25599380) result : ((1374856754,), (1374857802,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599381 , 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=25599370 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 (25599381) result : ((1374856761,), (1374857810,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599382 , 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=25599370 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 (25599382) result : ((1374857395,), (1374857816,), (1374857886,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599383 , 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=25599370 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 (25599383) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599384 , 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=25599370 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 (25599384) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599385 , 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=25599370 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 (25599385) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599386 , 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=25599370 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 (25599386) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599387 , 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=25599370 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 (25599387) result : ((1374856773,), (1374856775,), (1374857818,), (1374857819,), (1374857820,), (1374857822,), (1374857823,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599388 , 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=25599370 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 (25599388) result : ((1374856569,), (1374856571,), (1374856737,), (1374856738,), (1374856739,), (1374856740,), (1374856741,), (1374856742,), (1374856743,), (1374856744,), (1374856745,), (1374856746,), (1374856747,), (1374856748,), (1374856749,), (1374857394,), (1374857791,), (1374857793,), (1374857795,), (1374857843,), (1374857885,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599389 , 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=25599370 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 (25599389) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25599390 , 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=25599370 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 (25599390) result : ((1374856782,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25599370) result : ((1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25599370 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Teint_Dans_La_Masse','plastique','flou','autre_refus','environnement','kraft','mal_croppe','Carton_brun','Carton_gris','cartonnette')) 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`=25599370 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Teint_Dans_La_Masse','plastique','flou','autre_refus','environnement','kraft','mal_croppe','Carton_brun','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25599370, 'sub_port_id': 25599392, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260787, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'autre_refus': {'main_port_id': 25599370, 'sub_port_id': 25599393, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260788, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'Carton_gris': {'main_port_id': 25599370, 'sub_port_id': 25599394, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260789, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'cartonnette': {'main_port_id': 25599370, 'sub_port_id': 25599395, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260790, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'kraft': {'main_port_id': 25599370, 'sub_port_id': 25599396, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260791, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'mal_croppe': {'main_port_id': 25599370, 'sub_port_id': 25599397, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260792, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'environnement': {'main_port_id': 25599370, 'sub_port_id': 25599398, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260793, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'flou': {'main_port_id': 25599370, 'sub_port_id': 25599399, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260794, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'Carton_brun': {'main_port_id': 25599370, 'sub_port_id': 25599400, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260795, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 25599370, 'sub_port_id': 25599401, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260796, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'metal': {'main_port_id': 25599370, 'sub_port_id': 25599402, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260797, 'last_updated_at': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 3, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}, 'plastique': {'main_port_id': 25599370, 'sub_port_id': 25599403, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17260798, 'last_updated_at': datetime.datetime(2025, 8, 2, 5, 50, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 2, 5, 50, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 2, 3, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599392,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599379 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599393,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599380 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599394,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599381 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599395,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599382 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599396,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599383 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599397,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599384 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599398,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599385 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599399,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599386 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599400,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599387 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599388 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25599403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25599390 lien utilise dans velours : https://www.fotonower.com/velours/25599392,25599393,25599394,25599395,25599396,25599397,25599398,25599399,25599400,25599401,25599402,25599403?tags=papier,autre_refus,Carton_gris,cartonnette,kraft,mal_croppe,environnement,flou,Carton_brun,Teint_Dans_La_Masse,metal,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25599370]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428] map_info['map_portfolio_photo'] : {25599370: [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428]} final : False mtd_id 4302 list_pids : [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428] Looping around the photos to save general results len do output : 1 /25599370. 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, '3429305') ('4302', '25599370', '1374857402', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857384', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857361', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857357', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857355', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857354', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857353', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857348', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857346', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857344', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857342', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857340', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857326', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856471', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856470', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856469', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856458', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856456', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856455', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856453', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856452', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856451', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856434', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856432', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856428', None, None, None, None, None, '3429305') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '25599370', "{'papier': 25599379, 'autre_refus': 25599380, 'Carton_gris': 25599381, 'cartonnette': 25599382, 'kraft': 25599383, 'mal_croppe': 25599384, 'environnement': 25599385, 'flou': 25599386, 'Carton_brun': 25599387, 'Teint_Dans_La_Masse': 25599388, 'metal': 25599389, 'plastique': 25599390}", None, None, None, None, '3429305'), ('4302', '25599370', '1374857402', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857384', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857361', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857357', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857355', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857354', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857353', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857348', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857346', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857344', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857342', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857340', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857326', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856471', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856470', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856469', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856458', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856456', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856455', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856453', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856452', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856451', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856434', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856432', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856428', None, None, None, None, None, '3429305')] time used for this insertion : 0.15299248695373535 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5289216041564941 time spend to save output : 0.15337586402893066 total time spend for step 1 : 1.6822974681854248 step2:final Sun Aug 3 05:37:30 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 (25599370) 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 25599370 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374856434,1374856432,1374856428,1374856458,1374856456,1374856455,1374856453,1374856452,1374856451,1374856471,1374856470,1374856469,1374857326,1374857348,1374857346,1374857344,1374857342,1374857340,1374857384,1374857361,1374857357,1374857355,1374857354,1374857353,1374857402); 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([25599370]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} new output for save of step final : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428] map_info['map_portfolio_photo'] : {25599370: [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428]} final : False mtd_id 4302 list_pids : [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428] Looping around the photos to save general results len do output : 25 /1374857402.Didn't retrieve data . /1374857384.Didn't retrieve data . /1374857361.Didn't retrieve data . /1374857357.Didn't retrieve data . /1374857355.Didn't retrieve data . /1374857354.Didn't retrieve data . /1374857353.Didn't retrieve data . /1374857348.Didn't retrieve data . /1374857346.Didn't retrieve data . /1374857344.Didn't retrieve data . /1374857342.Didn't retrieve data . /1374857340.Didn't retrieve data . /1374857326.Didn't retrieve data . /1374856471.Didn't retrieve data . /1374856470.Didn't retrieve data . /1374856469.Didn't retrieve data . /1374856458.Didn't retrieve data . /1374856456.Didn't retrieve data . /1374856455.Didn't retrieve data . /1374856453.Didn't retrieve data . /1374856452.Didn't retrieve data . /1374856451.Didn't retrieve data . /1374856434.Didn't retrieve data . /1374856432.Didn't retrieve data . /1374856428.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, '3429305') ('4302', '25599370', '1374857402', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857384', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857361', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857357', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857355', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857354', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857353', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857348', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857346', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857344', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857342', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857340', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857326', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856471', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856470', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856469', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856458', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856456', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856455', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856453', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856452', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856451', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856434', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856432', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856428', None, None, None, None, None, '3429305') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 75 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', '25599370', '1374857402', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857384', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857361', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857357', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857355', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857354', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857353', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857348', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857346', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857344', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857342', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857340', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374857326', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856471', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856470', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856469', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856458', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856456', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856455', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856453', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856452', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856451', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856434', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856432', '0.05355225837376743', None, None, None, None, '3429305'), ('4302', '25599370', '1374856428', '0.05355225837376743', None, None, None, None, '3429305')] time used for this insertion : 0.021708965301513672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0627894401550293 time spend to save output : 0.02275705337524414 total time spend for step 2 : 0.08554649353027344 step3:velours_tree Sun Aug 3 05:37:31 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 : {25599370: [{'papier': 25599379, 'autre_refus': 25599380, 'Carton_gris': 25599381, 'cartonnette': 25599382, 'kraft': 25599383, 'mal_croppe': 25599384, 'environnement': 25599385, 'flou': 25599386, 'Carton_brun': 25599387, 'Teint_Dans_La_Masse': 25599388, 'metal': 25599389, 'plastique': 25599390}]} input_args_next_step : {25599370: ()} output_args : {25599370: [{'papier': 25599379, 'autre_refus': 25599380, 'Carton_gris': 25599381, 'cartonnette': 25599382, 'kraft': 25599383, 'mal_croppe': 25599384, 'environnement': 25599385, 'flou': 25599386, 'Carton_brun': 25599387, 'Teint_Dans_La_Masse': 25599388, 'metal': 25599389, 'plastique': 25599390}]} args : 25599370 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 : ({'papier': 25599379, 'autre_refus': 25599380, 'Carton_gris': 25599381, 'cartonnette': 25599382, 'kraft': 25599383, 'mal_croppe': 25599384, 'environnement': 25599385, 'flou': 25599386, 'Carton_brun': 25599387, 'Teint_Dans_La_Masse': 25599388, 'metal': 25599389, 'plastique': 25599390},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25599370) 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([25599370]) 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.3094146251678467 time spend to save output : 6.0558319091796875e-05 total time spend for step 3 : 0.3094751834869385 step4:send_mail_cod Sun Aug 3 05:37:31 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 : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} input_args_next_step : {1374857402: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857402 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857384 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857361 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857357 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857355 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857354 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857353 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857348 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857346 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857344 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857342 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857340 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374857326 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856471 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856470 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856469 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856458 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856456 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856455 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856453 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856452 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856451 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856434 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856432 depend.output_id : 0 input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ()} output_args : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',)} args : 1374856428 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 : {25599370: [{'papier': 25599379, 'autre_refus': 25599380, 'Carton_gris': 25599381, 'cartonnette': 25599382, 'kraft': 25599383, 'mal_croppe': 25599384, 'environnement': 25599385, 'flou': 25599386, 'Carton_brun': 25599387, 'Teint_Dans_La_Masse': 25599388, 'metal': 25599389, 'plastique': 25599390}]} input_args_next_step : {1374857402: ('0.05355225837376743',), 1374857384: ('0.05355225837376743',), 1374857361: ('0.05355225837376743',), 1374857357: ('0.05355225837376743',), 1374857355: ('0.05355225837376743',), 1374857354: ('0.05355225837376743',), 1374857353: ('0.05355225837376743',), 1374857348: ('0.05355225837376743',), 1374857346: ('0.05355225837376743',), 1374857344: ('0.05355225837376743',), 1374857342: ('0.05355225837376743',), 1374857340: ('0.05355225837376743',), 1374857326: ('0.05355225837376743',), 1374856471: ('0.05355225837376743',), 1374856470: ('0.05355225837376743',), 1374856469: ('0.05355225837376743',), 1374856458: ('0.05355225837376743',), 1374856456: ('0.05355225837376743',), 1374856455: ('0.05355225837376743',), 1374856453: ('0.05355225837376743',), 1374856452: ('0.05355225837376743',), 1374856451: ('0.05355225837376743',), 1374856434: ('0.05355225837376743',), 1374856432: ('0.05355225837376743',), 1374856428: ('0.05355225837376743',), 25599370: ()} output_args : {25599370: [{'papier': 25599379, 'autre_refus': 25599380, 'Carton_gris': 25599381, 'cartonnette': 25599382, 'kraft': 25599383, 'mal_croppe': 25599384, 'environnement': 25599385, 'flou': 25599386, 'Carton_brun': 25599387, 'Teint_Dans_La_Masse': 25599388, 'metal': 25599389, 'plastique': 25599390}]} args : 25599370 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 :26, first value : ('0.05355225837376743',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25599370) 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 (1374857402,1374857384,1374857361,1374857357,1374857355,1374857354,1374857353,1374857348,1374857346,1374857344,1374857342,1374857340,1374857326,1374856471,1374856470,1374856469,1374856458,1374856456,1374856455,1374856453,1374856452,1374856451,1374856434,1374856432,1374856428) Found this number of photos: 25 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374856428 begin to download photo : 1374856455 begin to download photo : 1374857326 begin to download photo : 1374857353 begin to download photo : 1374857402 download finish for photo 1374856428 begin to download photo : 1374856432 download finish for photo 1374857402 download finish for photo 1374857326 begin to download photo : 1374857340 download finish for photo 1374856455 begin to download photo : 1374856456 download finish for photo 1374857353 begin to download photo : 1374857354 download finish for photo 1374856432 begin to download photo : 1374856434 download finish for photo 1374856456 begin to download photo : 1374856458 download finish for photo 1374857340 begin to download photo : 1374857342 download finish for photo 1374857354 begin to download photo : 1374857355 download finish for photo 1374856458 begin to download photo : 1374856469 download finish for photo 1374856434 begin to download photo : 1374856451 download finish for photo 1374857342 begin to download photo : 1374857344 download finish for photo 1374857355 begin to download photo : 1374857357 download finish for photo 1374856469 begin to download photo : 1374856470 download finish for photo 1374856451 begin to download photo : 1374856452 download finish for photo 1374857344 begin to download photo : 1374857346 download finish for photo 1374857357 begin to download photo : 1374857361 download finish for photo 1374856452 begin to download photo : 1374856453 download finish for photo 1374856470 begin to download photo : 1374856471 download finish for photo 1374857346 begin to download photo : 1374857348 download finish for photo 1374857361 begin to download photo : 1374857384 download finish for photo 1374856453 download finish for photo 1374856471 download finish for photo 1374857348 download finish for photo 1374857384 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 25 ; length of list_pids : 25 ; length of list_args : 25 results_Auto_P25599370_03-08-2025_05_37_32.pdf 25599380 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=25599380 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374856754: '1754096907_776797_1374856456_04415810a025d5914dbdee8e8422209c_rle_crop_3901098913_0.png', 1374857802: '1754097504_791910_1374857361_3a9f86c13ac470450b73f9ed2fd3570a_rle_crop_3901102125_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/1db067980de8118c811c2560c64908d4_76977911.png change filename to text .imagette255993801754192252/ imagette255993801754192252/1754097504_791910_1374857361_3a9f86c13ac470450b73f9ed2fd3570a_rle_crop_3901102125_0.png.png imagette255993801754192252/1754096907_776797_1374856456_04415810a025d5914dbdee8e8422209c_rle_crop_3901098913_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/ec59a95f884ecc54989f029755c647b8_9028315.png imagette255993801754192252 25599382 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=25599382 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374857395: '1754097326_788542_1374857326_70856a3028808b62c6caefb767795c1e_rle_crop_3901100008_0.png', 1374857816: '1754097504_791910_1374857354_b374afda85b2e13d0e8d446cfd45a5ee_rle_crop_3901102160_0.png', 1374857886: '1754097684_797586_1374857348_7a60c7e38107ff4047714733f503c6a4_rle_crop_3901102265_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/fbb78e97f978c6e305767e91466c8628_15580983.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/b3350a907ea4ef8d0d8ce1e93eb1edc3_61479461.png change filename to text .imagette255993821754192252/ imagette255993821754192252/1754097684_797586_1374857348_7a60c7e38107ff4047714733f503c6a4_rle_crop_3901102265_0.png.png imagette255993821754192252/1754097504_791910_1374857354_b374afda85b2e13d0e8d446cfd45a5ee_rle_crop_3901102160_0.png.png imagette255993821754192252/1754097326_788542_1374857326_70856a3028808b62c6caefb767795c1e_rle_crop_3901100008_0.png.png imagette255993831754192252/ imagette255993841754192252/ imagette255993861754192252/ imagette255993891754192252/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/fbb78e97f978c6e305767e91466c8628_51363955.png imagette255993821754192252 25599383 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=25599383 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255993831754192252 25599384 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=25599384 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255993841754192252 25599386 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=25599386 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255993861754192252 25599389 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=25599389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255993891754192252 25599390 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=25599390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374856782: '1754096907_776797_1374856451_c59178969696e05351df3c1b57b181ab_rle_crop_3901098986_0.png'} change filename to text .imagette255993901754192252/ imagette255993901754192252/1754096907_776797_1374856451_c59178969696e05351df3c1b57b181ab_rle_crop_3901098986_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/71568666ec3e579e1b57182dc2657fd1_57175669.png imagette255993901754192252 25599381 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=25599381 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374856761: '1754096907_776797_1374856471_f28b94122535c5f8618b9a916b62f327_rle_crop_3901098902_0.png', 1374857810: '1754097504_791910_1374857402_4a9d3b88f6593243d1f1952ff1b4309e_rle_crop_3901102113_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/e78d303f7a529f553992e8cc32da042a_63524578.png change filename to text .imagette255993811754192252/ imagette255993811754192252/1754096907_776797_1374856471_f28b94122535c5f8618b9a916b62f327_rle_crop_3901098902_0.png.png imagette255993811754192252/1754097504_791910_1374857402_4a9d3b88f6593243d1f1952ff1b4309e_rle_crop_3901102113_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/a8cb5352448837014bbcadc1218e2e40_13919005.png imagette255993811754192252 25599387 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=25599387 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374856773: '1754096907_776797_1374856471_f28b94122535c5f8618b9a916b62f327_rle_crop_3901098901_0.png', 1374856775: '1754096907_776797_1374856455_06a93ffbbd1d7025460f4b5c49133171_rle_crop_3901098936_0.png', 1374857818: '1754097504_791910_1374857361_3a9f86c13ac470450b73f9ed2fd3570a_rle_crop_3901102128_0.png', 1374857819: '1754097504_791910_1374857355_c863bb963245de374c477b16fe1248e6_rle_crop_3901102146_0.png', 1374857820: '1754097504_791910_1374857354_b374afda85b2e13d0e8d446cfd45a5ee_rle_crop_3901102162_0.png', 1374857822: '1754097504_791910_1374857353_f8d420f4a40041b3866bbe13e4e5b866_rle_crop_3901102186_0.png', 1374857823: '1754097504_791910_1374857353_f8d420f4a40041b3866bbe13e4e5b866_rle_crop_3901102183_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/b83c578706b9cd9891262bba5a661d71_76425587.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/a434ccd45354897461c2b4f46834b5b9_58212080.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/21c1014a9bce31f6d5d97b3c8885466f_70040109.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/c5ff766323307f6c7ad021bdd94c6e7c_18425298.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/d245fdb11012d79a297bf6045c7949cb_18143790.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/7af6b1c11c8932293744cae9d79d64af_93353094.png change filename to text .imagette255993871754192253/ imagette255993871754192253/1754096907_776797_1374856455_06a93ffbbd1d7025460f4b5c49133171_rle_crop_3901098936_0.png.png imagette255993871754192253/1754096907_776797_1374856471_f28b94122535c5f8618b9a916b62f327_rle_crop_3901098901_0.png.png imagette255993871754192253/1754097504_791910_1374857361_3a9f86c13ac470450b73f9ed2fd3570a_rle_crop_3901102128_0.png.png imagette255993871754192253/1754097504_791910_1374857354_b374afda85b2e13d0e8d446cfd45a5ee_rle_crop_3901102162_0.png.png imagette255993871754192253/1754097504_791910_1374857353_f8d420f4a40041b3866bbe13e4e5b866_rle_crop_3901102186_0.png.png imagette255993871754192253/1754097504_791910_1374857353_f8d420f4a40041b3866bbe13e4e5b866_rle_crop_3901102183_0.png.png imagette255993871754192253/1754097504_791910_1374857355_c863bb963245de374c477b16fe1248e6_rle_crop_3901102146_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/228bde4c3a24d4e48d8d3cd2b459e422_64093078.png imagette255993871754192253 25599388 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=25599388 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374856745: '1754096907_776797_1374856453_39492a841dff13563d46ab42d25f241d_rle_crop_3901098964_0.png', 1374857885: '1754097684_797586_1374857348_7a60c7e38107ff4047714733f503c6a4_rle_crop_3901102267_0.png', 1374857843: '1754097566_793344_1374857384_76381ebfb825b4d99b27b96f0d51f7a8_rle_crop_3901102227_0.png', 1374857795: '1754097504_791910_1374857355_c863bb963245de374c477b16fe1248e6_rle_crop_3901102149_0.png', 1374857793: '1754097504_791910_1374857355_c863bb963245de374c477b16fe1248e6_rle_crop_3901102152_0.png', 1374857791: '1754097504_791910_1374857357_7a4ecfbc023d96a19b723bd6c910515e_rle_crop_3901102136_0.png', 1374857394: '1754097326_788542_1374857326_70856a3028808b62c6caefb767795c1e_rle_crop_3901100010_0.png', 1374856749: '1754096907_776797_1374856451_c59178969696e05351df3c1b57b181ab_rle_crop_3901098991_0.png', 1374856748: '1754096907_776797_1374856452_af2538701e0704827bff578c1529c32a_rle_crop_3901098973_0.png', 1374856747: '1754096907_776797_1374856452_af2538701e0704827bff578c1529c32a_rle_crop_3901098974_0.png', 1374856746: '1754096907_776797_1374856452_af2538701e0704827bff578c1529c32a_rle_crop_3901098972_0.png', 1374856569: '1754096846_772959_1374856470_6c3575a6cb0c1e27d9770cb9acf40c23_rle_crop_3901098554_0.png', 1374856744: '1754096907_776797_1374856453_39492a841dff13563d46ab42d25f241d_rle_crop_3901098956_0.png', 1374856743: '1754096907_776797_1374856453_39492a841dff13563d46ab42d25f241d_rle_crop_3901098963_0.png', 1374856742: '1754096907_776797_1374856455_06a93ffbbd1d7025460f4b5c49133171_rle_crop_3901098939_0.png', 1374856741: '1754096907_776797_1374856455_06a93ffbbd1d7025460f4b5c49133171_rle_crop_3901098941_0.png', 1374856740: '1754096907_776797_1374856455_06a93ffbbd1d7025460f4b5c49133171_rle_crop_3901098944_0.png', 1374856739: '1754096907_776797_1374856455_06a93ffbbd1d7025460f4b5c49133171_rle_crop_3901098937_0.png', 1374856738: '1754096907_776797_1374856456_04415810a025d5914dbdee8e8422209c_rle_crop_3901098929_0.png', 1374856737: '1754096907_776797_1374856471_f28b94122535c5f8618b9a916b62f327_rle_crop_3901098907_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/49471abf057f421c76b65c9269ec9dc1_14870889.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/6eca84e14660b37ee32e3bf3a6d94717_94972089.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/a122346c95192924c6bce2d327116ae2_76624960.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/e4a08f1d77f5410f366f5ec1ac9ad86b_29334546.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/0f511985e20b1ddb5a5a703120b43d0e_89654526.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/92a5f9ac4ecc421ae82651f0b084b83c_47955492.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/6eca84e14660b37ee32e3bf3a6d94717_75355410.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/f2200bb06f1fc64ac142bb09f2ceff8c_10150712.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/5584a52d73fb397998aa738ff4ffaed3_68267858.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/3805bcccb296ac56aca259eed7e10980_99085670.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/76debd6453f9809c10a5a72da60064f7_63661782.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/8381ed3aa2e113025196e65d1a664019_32358820.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/d17a2682c613eee8b472a53cfdcb921d_13687780.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/a51a6acc42aa7979c06630f1d519503c_64992744.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/d6ff633ce30ec5e98645c21860d49f2d_9686546.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/9565ff0b9b4b1abbfbd37f16aa568b1a_65638497.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/71d1c0a35d741067ce5b0039909e2562_34594626.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/ec56e2df9926995b0d44004707fd7dfb_14441201.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/fc22f8c4d333994c18901692612671a9_28362426.png change filename to text .imagette255993881754192254/ imagette255993881754192254/1754097504_791910_1374857355_c863bb963245de374c477b16fe1248e6_rle_crop_3901102149_0.png.png imagette255993881754192254/1754096907_776797_1374856453_39492a841dff13563d46ab42d25f241d_rle_crop_3901098964_0.png.png imagette255993881754192254/1754097504_791910_1374857357_7a4ecfbc023d96a19b723bd6c910515e_rle_crop_3901102136_0.png.png imagette255993881754192254/1754096907_776797_1374856455_06a93ffbbd1d7025460f4b5c49133171_rle_crop_3901098941_0.png.png imagette255993881754192254/1754096907_776797_1374856471_f28b94122535c5f8618b9a916b62f327_rle_crop_3901098907_0.png.png imagette255993881754192254/1754097684_797586_1374857348_7a60c7e38107ff4047714733f503c6a4_rle_crop_3901102267_0.png.png imagette255993881754192254/1754096907_776797_1374856451_c59178969696e05351df3c1b57b181ab_rle_crop_3901098991_0.png.png imagette255993881754192254/1754097326_788542_1374857326_70856a3028808b62c6caefb767795c1e_rle_crop_3901100010_0.png.png imagette255993881754192254/1754096907_776797_1374856452_af2538701e0704827bff578c1529c32a_rle_crop_3901098972_0.png.png imagette255993881754192254/1754096846_772959_1374856470_6c3575a6cb0c1e27d9770cb9acf40c23_rle_crop_3901098554_0.png.png imagette255993881754192254/1754096907_776797_1374856453_39492a841dff13563d46ab42d25f241d_rle_crop_3901098963_0.png.png imagette255993881754192254/1754096907_776797_1374856456_04415810a025d5914dbdee8e8422209c_rle_crop_3901098929_0.png.png imagette255993881754192254/1754096907_776797_1374856455_06a93ffbbd1d7025460f4b5c49133171_rle_crop_3901098939_0.png.png imagette255993881754192254/1754096907_776797_1374856452_af2538701e0704827bff578c1529c32a_rle_crop_3901098973_0.png.png imagette255993881754192254/1754096907_776797_1374856453_39492a841dff13563d46ab42d25f241d_rle_crop_3901098956_0.png.png imagette255993881754192254/1754097504_791910_1374857355_c863bb963245de374c477b16fe1248e6_rle_crop_3901102152_0.png.png imagette255993881754192254/1754096907_776797_1374856455_06a93ffbbd1d7025460f4b5c49133171_rle_crop_3901098937_0.png.png imagette255993881754192254/1754096907_776797_1374856452_af2538701e0704827bff578c1529c32a_rle_crop_3901098974_0.png.png imagette255993881754192254/1754097566_793344_1374857384_76381ebfb825b4d99b27b96f0d51f7a8_rle_crop_3901102227_0.png.png imagette255993881754192254/1754096907_776797_1374856455_06a93ffbbd1d7025460f4b5c49133171_rle_crop_3901098944_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/d8c695310506895df68cc2909cd13cf5_42950808.png imagette255993881754192254 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25599370 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25599392,25599393,25599394,25599395,25599396,25599397,25599398,25599399,25599400,25599401,25599402,25599403?tags=papier,autre_refus,Carton_gris,cartonnette,kraft,mal_croppe,environnement,flou,Carton_brun,Teint_Dans_La_Masse,metal,plastique your option no_mail is active, we will not send the real mail to your client args[1374857402] : ('0.05355225837376743',) no score found for photo 1374857402 We are sending mail with results at report@fotonower.com args[1374857384] : ('0.05355225837376743',) no score found for photo 1374857384 We are sending mail with results at report@fotonower.com args[1374857361] : ('0.05355225837376743',) no score found for photo 1374857361 We are sending mail with results at report@fotonower.com args[1374857357] : ('0.05355225837376743',) no score found for photo 1374857357 We are sending mail with results at report@fotonower.com args[1374857355] : ('0.05355225837376743',) no score found for photo 1374857355 We are sending mail with results at report@fotonower.com args[1374857354] : ('0.05355225837376743',) no score found for photo 1374857354 We are sending mail with results at report@fotonower.com args[1374857353] : ('0.05355225837376743',) no score found for photo 1374857353 We are sending mail with results at report@fotonower.com args[1374857348] : ('0.05355225837376743',) no score found for photo 1374857348 We are sending mail with results at report@fotonower.com args[1374857346] : ('0.05355225837376743',) no score found for photo 1374857346 We are sending mail with results at report@fotonower.com args[1374857344] : ('0.05355225837376743',) no score found for photo 1374857344 We are sending mail with results at report@fotonower.com args[1374857342] : ('0.05355225837376743',) no score found for photo 1374857342 We are sending mail with results at report@fotonower.com args[1374857340] : ('0.05355225837376743',) no score found for photo 1374857340 We are sending mail with results at report@fotonower.com args[1374857326] : ('0.05355225837376743',) no score found for photo 1374857326 We are sending mail with results at report@fotonower.com args[1374856471] : ('0.05355225837376743',) no score found for photo 1374856471 We are sending mail with results at report@fotonower.com args[1374856470] : ('0.05355225837376743',) no score found for photo 1374856470 We are sending mail with results at report@fotonower.com args[1374856469] : ('0.05355225837376743',) no score found for photo 1374856469 We are sending mail with results at report@fotonower.com args[1374856458] : ('0.05355225837376743',) no score found for photo 1374856458 We are sending mail with results at report@fotonower.com args[1374856456] : ('0.05355225837376743',) no score found for photo 1374856456 We are sending mail with results at report@fotonower.com args[1374856455] : ('0.05355225837376743',) no score found for photo 1374856455 We are sending mail with results at report@fotonower.com args[1374856453] : ('0.05355225837376743',) no score found for photo 1374856453 We are sending mail with results at report@fotonower.com args[1374856452] : ('0.05355225837376743',) no score found for photo 1374856452 We are sending mail with results at report@fotonower.com args[1374856451] : ('0.05355225837376743',) no score found for photo 1374856451 We are sending mail with results at report@fotonower.com args[1374856434] : ('0.05355225837376743',) no score found for photo 1374856434 We are sending mail with results at report@fotonower.com args[1374856432] : ('0.05355225837376743',) no score found for photo 1374856432 We are sending mail with results at report@fotonower.com args[1374856428] : ('0.05355225837376743',) no score found for photo 1374856428 We are sending mail with results at report@fotonower.com refus_total : 0.05355225837376743 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=25599370 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_P25599370_03-08-2025_05_37_32.pdf results_Auto_P25599370_03-08-2025_05_37_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25599370_03-08-2025_05_37_32.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','25599370','results_Auto_P25599370_03-08-2025_05_37_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25599370_03-08-2025_05_37_32.pdf','pdf','','0.25','0.05355225837376743') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25599370]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428] map_info['map_portfolio_photo'] : {25599370: [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428]} final : False mtd_id 4302 list_pids : [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428] 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, '3429305') ('4302', '25599370', '1374857402', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857384', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857361', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857357', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857355', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857354', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857353', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857348', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857346', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857344', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857342', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857340', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857326', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856471', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856470', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856469', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856458', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856456', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856455', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856453', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856452', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856451', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856434', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856432', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856428', None, None, None, None, None, '3429305') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25599370', '1374857402', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857384', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857361', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857357', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857355', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857354', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857353', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857348', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857346', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857344', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857342', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857340', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857326', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856471', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856470', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856469', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856458', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856456', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856455', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856453', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856452', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856451', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856434', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856432', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856428', None, None, None, None, None, '3429305')] time used for this insertion : 0.020767927169799805 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.57791805267334 time spend to save output : 0.021147727966308594 total time spend for step 4 : 6.599065780639648 step5:split_time_score Sun Aug 3 05:37:37 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 : ['25599370'] 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 : [('25599370',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25599370) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374857402: {'path': 'temp/1754192251_977471_1374857402_4a9d3b88f6593243d1f1952ff1b4309e.jpg', 'extension': 'jpg'}, 1374856428: {'path': 'temp/1754192251_977471_1374856428_80abd8ca8bec093dfd0d9c65524edd7f.jpg', 'extension': 'jpg'}, 1374856432: {'path': 'temp/1754192251_977471_1374856432_6649e0510dde40d17dd679133a829f04.jpg', 'extension': 'jpg'}, 1374856434: {'path': 'temp/1754192251_977471_1374856434_0793a47bb7f71e8fef97dfc7a4ffd0c8.jpg', 'extension': 'jpg'}, 1374856451: {'path': 'temp/1754192251_977471_1374856451_c59178969696e05351df3c1b57b181ab.jpg', 'extension': 'jpg'}, 1374856452: {'path': 'temp/1754192251_977471_1374856452_af2538701e0704827bff578c1529c32a.jpg', 'extension': 'jpg'}, 1374856453: {'path': 'temp/1754192251_977471_1374856453_39492a841dff13563d46ab42d25f241d.jpg', 'extension': 'jpg'}, 1374856455: {'path': 'temp/1754192251_977471_1374856455_06a93ffbbd1d7025460f4b5c49133171.jpg', 'extension': 'jpg'}, 1374856456: {'path': 'temp/1754192251_977471_1374856456_04415810a025d5914dbdee8e8422209c.jpg', 'extension': 'jpg'}, 1374856458: {'path': 'temp/1754192251_977471_1374856458_8e2c1c1b105a5cf3e6038b45cd0750c8.jpg', 'extension': 'jpg'}, 1374856469: {'path': 'temp/1754192251_977471_1374856469_8ea176089e5d2459d0d6e962b82f972a.jpg', 'extension': 'jpg'}, 1374856470: {'path': 'temp/1754192251_977471_1374856470_6c3575a6cb0c1e27d9770cb9acf40c23.jpg', 'extension': 'jpg'}, 1374856471: {'path': 'temp/1754192251_977471_1374856471_f28b94122535c5f8618b9a916b62f327.jpg', 'extension': 'jpg'}, 1374857326: {'path': 'temp/1754192251_977471_1374857326_70856a3028808b62c6caefb767795c1e.jpg', 'extension': 'jpg'}, 1374857340: {'path': 'temp/1754192251_977471_1374857340_57d83bdf3a18a45c1fbaf5a748b3deb2.jpg', 'extension': 'jpg'}, 1374857342: {'path': 'temp/1754192251_977471_1374857342_745671ea62d6da4475c57b83f37fb1f8.jpg', 'extension': 'jpg'}, 1374857344: {'path': 'temp/1754192251_977471_1374857344_542a168ee63ff5b7dffacfa424d5ef84.jpg', 'extension': 'jpg'}, 1374857346: {'path': 'temp/1754192251_977471_1374857346_a3fd1f3f09c51a2ec15fae2b5bb041dd.jpg', 'extension': 'jpg'}, 1374857348: {'path': 'temp/1754192251_977471_1374857348_7a60c7e38107ff4047714733f503c6a4.jpg', 'extension': 'jpg'}, 1374857353: {'path': 'temp/1754192251_977471_1374857353_f8d420f4a40041b3866bbe13e4e5b866.jpg', 'extension': 'jpg'}, 1374857354: {'path': 'temp/1754192251_977471_1374857354_b374afda85b2e13d0e8d446cfd45a5ee.jpg', 'extension': 'jpg'}, 1374857355: {'path': 'temp/1754192251_977471_1374857355_c863bb963245de374c477b16fe1248e6.jpg', 'extension': 'jpg'}, 1374857357: {'path': 'temp/1754192251_977471_1374857357_7a4ecfbc023d96a19b723bd6c910515e.jpg', 'extension': 'jpg'}, 1374857361: {'path': 'temp/1754192251_977471_1374857361_3a9f86c13ac470450b73f9ed2fd3570a.jpg', 'extension': 'jpg'}, 1374857384: {'path': 'temp/1754192251_977471_1374857384_76381ebfb825b4d99b27b96f0d51f7a8.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 = 25599370; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25599370 group by h (('03', 25),) 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=25599370 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 (25599370) 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 (25599370) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02082025 25599370 Nombre de photos uploadées : 25 / 23040 (0%) 02082025 25599370 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 02082025 25599370 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1374856434, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/0793a47bb7f71e8fef97dfc7a4ffd0c8.jpg', 'username': None, 'uploaded_at': 1754096467, 'text': 'image_02082025_03_00_04_10155.jpg'}, {'photo_id': 1374856432, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/6649e0510dde40d17dd679133a829f04.jpg', 'username': None, 'uploaded_at': 1754096467, 'text': 'image_02082025_03_00_25_10135.jpg'}, {'photo_id': 1374856428, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/80abd8ca8bec093dfd0d9c65524edd7f.jpg', 'username': None, 'uploaded_at': 1754096467, 'text': 'image_02082025_03_00_44_10135.jpg'}, {'photo_id': 1374856458, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/2/8e2c1c1b105a5cf3e6038b45cd0750c8.jpg', 'username': None, 'uploaded_at': 1754096532, 'text': 'image_02082025_03_00_54_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012404918670654297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25599370, '2025-08-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-02' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2049729,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23501324653625488 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= 2049729 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25595390, 'dashboard_result_id': 13525192, '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_P25595390_03-08-2025_05_34_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595409, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25595654, 'dashboard_result_id': 13525193, '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_P25595654_03-08-2025_05_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595670, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25596080, 'dashboard_result_id': 13525194, '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_P25596080_03-08-2025_05_35_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596112, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25596465, 'dashboard_result_id': 13525195, '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_P25596465_03-08-2025_05_35_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596482, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25597427, 'dashboard_result_id': 13525196, '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_P25597427_03-08-2025_05_35_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25597436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597447, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25597738, 'dashboard_result_id': 13525197, '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_P25597738_03-08-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25597756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597757, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25597981, 'dashboard_result_id': 13525198, '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_P25597981_03-08-2025_05_36_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598013, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25598358, 'dashboard_result_id': 13525199, '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_P25598358_03-08-2025_05_36_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598402, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25598678, 'dashboard_result_id': 13525200, '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_P25598678_03-08-2025_05_37_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598696, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25598953, 'dashboard_result_id': 13525201, '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_P25598953_02-08-2025_05_50_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25598999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25599000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25599001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25599002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25599003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25599004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25599005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25599006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25599007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25599008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25599009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25599010, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25599370, 'dashboard_result_id': 13525202, '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_P25599370_02-08-2025_05_50_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25599379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25599380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25599381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25599382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25599383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25599384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25599385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25599386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25599387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25599388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25599389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25599390, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25599795, 'dashboard_result_id': 13525203, '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_P25599795_02-08-2025_05_51_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25599796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25599797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25599798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25599799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25599800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25599801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25599802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25599803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25599804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25599805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25599806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25599807, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25600182, 'dashboard_result_id': 13525204, '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_P25600182_02-08-2025_05_51_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25600191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25600192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25600193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25600194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25600195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25600196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25600197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25600198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25600199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25600200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25600201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25600202, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25600623, 'dashboard_result_id': 13525205, '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_P25600623_02-08-2025_05_51_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25600629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25600630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25600631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25600632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25600633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25600634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25600635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25600636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25600637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25600638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25600639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25600640, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25601116, 'dashboard_result_id': 13525206, '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_P25601116_02-08-2025_05_52_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25601127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25601128, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25601129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25601130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25601131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25601132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25601133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25601134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25601135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25601136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25601137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25601138, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25601647, 'dashboard_result_id': 13525207, '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_P25601647_02-08-2025_05_52_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25601701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25601702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25601703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25601705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25601706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25601707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25601709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25601710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25601711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25601713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25601714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25601715, 'pht': 3726}}"}, {'dashboat_entry_day': 2049729, 'dashboard_run_id': 2061779, 'mtr_portfolio_id': 25602214, 'dashboard_result_id': 13525208, '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_P25602214_02-08-2025_05_53_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25602233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25602234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25602235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25602236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25602237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25602238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25602239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25602240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25602241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25602242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25602243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25602244, '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 = 25595390 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': 3429295, 'mtr_portfolio_id': 25595390, 'created_at': datetime.datetime(2025, 8, 3, 5, 34, 31), 'result': '0.049613210936855605', 'result_long': None, 'result_double': None}] Qualite : 0.049613210936855605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25595390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595390_03-08-2025_05_34_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25595390 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_P25595390_03-08-2025_05_34_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595409, 'pht': 3726}}" where mtr_portfolio_id = 25595390 and dashboard_run_id = 2061779 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`=25595390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525192, 0.049613210936855605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595390_03-08-2025_05_34_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595409, '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 = 25595654 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': 3429296, 'mtr_portfolio_id': 25595654, 'created_at': datetime.datetime(2025, 8, 3, 5, 34, 57), 'result': '0.05820282270822888', 'result_long': None, 'result_double': None}] Qualite : 0.05820282270822888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25595654 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595654_03-08-2025_05_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25595654 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_P25595654_03-08-2025_05_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595670, 'pht': 3726}}" where mtr_portfolio_id = 25595654 and dashboard_run_id = 2061779 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`=25595654 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525193, 0.05820282270822888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25595654_03-08-2025_05_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25595659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25595660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25595661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25595662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25595663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25595664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25595665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25595666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25595667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25595668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25595669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25595670, '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 = 25596080 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': 3429297, 'mtr_portfolio_id': 25596080, 'created_at': datetime.datetime(2025, 8, 3, 5, 35, 28), 'result': '0.04484997792604361', 'result_long': None, 'result_double': None}] Qualite : 0.04484997792604361 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25596080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25596080_03-08-2025_05_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25596080 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_P25596080_03-08-2025_05_35_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596112, 'pht': 3726}}" where mtr_portfolio_id = 25596080 and dashboard_run_id = 2061779 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`=25596080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525194, 0.04484997792604361, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25596080_03-08-2025_05_35_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596103, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596112, '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 = 25596465 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': 3429298, 'mtr_portfolio_id': 25596465, 'created_at': datetime.datetime(2025, 8, 3, 5, 35, 29), 'result': '0.024629556190002705', 'result_long': None, 'result_double': None}] Qualite : 0.024629556190002705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25596465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25596465_03-08-2025_05_35_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25596465 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_P25596465_03-08-2025_05_35_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596482, 'pht': 3726}}" where mtr_portfolio_id = 25596465 and dashboard_run_id = 2061779 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`=25596465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525195, 0.024629556190002705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25596465_03-08-2025_05_35_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25596471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25596472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25596473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25596474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25596475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25596476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25596477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25596478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25596479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25596480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25596481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25596482, '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 = 25597427 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': 3429299, 'mtr_portfolio_id': 25597427, 'created_at': datetime.datetime(2025, 8, 3, 5, 35, 38), 'result': '0.06058828598540654', 'result_long': None, 'result_double': None}] Qualite : 0.06058828598540654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25597427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597427_03-08-2025_05_35_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25597427 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_P25597427_03-08-2025_05_35_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25597436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597447, 'pht': 3726}}" where mtr_portfolio_id = 25597427 and dashboard_run_id = 2061779 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`=25597427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525196, 0.06058828598540654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597427_03-08-2025_05_35_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25597436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597447, '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 = 25597738 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': 3429300, 'mtr_portfolio_id': 25597738, 'created_at': datetime.datetime(2025, 8, 3, 5, 35, 58), 'result': '0.05868000319607446', 'result_long': None, 'result_double': None}] Qualite : 0.05868000319607446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25597738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597738_03-08-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25597738 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_P25597738_03-08-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25597756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597757, 'pht': 3726}}" where mtr_portfolio_id = 25597738 and dashboard_run_id = 2061779 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`=25597738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525197, 0.05868000319607446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597738_03-08-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25597746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25597747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25597748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25597749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25597750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25597751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25597752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25597753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25597754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25597755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25597756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25597757, '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 = 25597981 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': 3429301, 'mtr_portfolio_id': 25597981, 'created_at': datetime.datetime(2025, 8, 3, 5, 36, 34), 'result': '0.05289806792718663', 'result_long': None, 'result_double': None}] Qualite : 0.05289806792718663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25597981 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597981_03-08-2025_05_36_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25597981 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_P25597981_03-08-2025_05_36_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598013, 'pht': 3726}}" where mtr_portfolio_id = 25597981 and dashboard_run_id = 2061779 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`=25597981 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525198, 0.05289806792718663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25597981_03-08-2025_05_36_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598013, '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 = 25598358 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': 3429302, 'mtr_portfolio_id': 25598358, 'created_at': datetime.datetime(2025, 8, 3, 5, 36, 30), 'result': '0.04887431412492456', 'result_long': None, 'result_double': None}] Qualite : 0.04887431412492456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25598358 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25598358_03-08-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25598358 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_P25598358_03-08-2025_05_36_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598402, 'pht': 3726}}" where mtr_portfolio_id = 25598358 and dashboard_run_id = 2061779 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`=25598358 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525199, 0.04887431412492456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25598358_03-08-2025_05_36_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598402, '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 = 25598678 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': 3429303, 'mtr_portfolio_id': 25598678, 'created_at': datetime.datetime(2025, 8, 3, 5, 37, 4), 'result': '0.04229777288520932', 'result_long': None, 'result_double': None}] Qualite : 0.04229777288520932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25598678 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25598678_03-08-2025_05_37_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25598678 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_P25598678_03-08-2025_05_37_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598696, 'pht': 3726}}" where mtr_portfolio_id = 25598678 and dashboard_run_id = 2061779 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`=25598678 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525200, 0.04229777288520932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25598678_03-08-2025_05_37_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25598685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25598686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25598687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25598688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25598689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25598690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25598691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25598692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25598693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25598694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25598695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25598696, '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 = 25598953 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': 3429304, 'mtr_portfolio_id': 25598953, 'created_at': datetime.datetime(2025, 8, 3, 5, 37, 29), 'result': '0.04042187162164262', 'result_long': None, 'result_double': None}] Qualite : 0.04042187162164262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25598953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25598953_03-08-2025_05_37_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25598953 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_P25598953_03-08-2025_05_37_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25598999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25599000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25599001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25599002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25599003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25599004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25599005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25599006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25599007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25599008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25599009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25599010, 'pht': 3726}}" where mtr_portfolio_id = 25598953 and dashboard_run_id = 2061779 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`=25598953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525201, 0.04042187162164262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25598953_03-08-2025_05_37_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25598999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25599000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25599001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25599002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25599003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25599004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25599005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25599006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25599007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25599008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25599009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25599010, '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 = 25599370 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': 3429305, 'mtr_portfolio_id': 25599370, 'created_at': datetime.datetime(2025, 8, 3, 5, 37, 31), 'result': '0.05355225837376743', 'result_long': None, 'result_double': None}] Qualite : 0.05355225837376743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25599370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25599370_03-08-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25599370 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_P25599370_03-08-2025_05_37_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25599379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25599380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25599381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25599382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25599383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25599384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25599385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25599386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25599387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25599388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25599389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25599390, 'pht': 3726}}" where mtr_portfolio_id = 25599370 and dashboard_run_id = 2061779 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`=25599370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525202, 0.05355225837376743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25599370_03-08-2025_05_37_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25599379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25599380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25599381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25599382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25599383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25599384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25599385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25599386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25599387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25599388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25599389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25599390, '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 = 25599795 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': 3426779, 'mtr_portfolio_id': 25599795, 'created_at': datetime.datetime(2025, 8, 2, 5, 51, 4), 'result': '0.04188683190131255', 'result_long': None, 'result_double': None}] Qualite : 0.04188683190131255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25599795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25599795_02-08-2025_05_51_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25599795 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_P25599795_02-08-2025_05_51_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25599796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25599797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25599798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25599799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25599800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25599801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25599802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25599803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25599804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25599805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25599806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25599807, 'pht': 3726}}" where mtr_portfolio_id = 25599795 and dashboard_run_id = 2061779 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`=25599795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525203, 0.04188683190131255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25599795_02-08-2025_05_51_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25599796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25599797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25599798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25599799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25599800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25599801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25599802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25599803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25599804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25599805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25599806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25599807, '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 = 25600182 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': 3426780, 'mtr_portfolio_id': 25600182, 'created_at': datetime.datetime(2025, 8, 2, 5, 51, 29), 'result': '0.04022819809435998', 'result_long': None, 'result_double': None}] Qualite : 0.04022819809435998 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25600182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25600182_02-08-2025_05_51_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25600182 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_P25600182_02-08-2025_05_51_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25600191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25600192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25600193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25600194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25600195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25600196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25600197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25600198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25600199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25600200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25600201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25600202, 'pht': 3726}}" where mtr_portfolio_id = 25600182 and dashboard_run_id = 2061779 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`=25600182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525204, 0.04022819809435998, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25600182_02-08-2025_05_51_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25600191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25600192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25600193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25600194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25600195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25600196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25600197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25600198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25600199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25600200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25600201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25600202, '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 = 25600623 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': 3426781, 'mtr_portfolio_id': 25600623, 'created_at': datetime.datetime(2025, 8, 2, 5, 51, 29), 'result': '0.06057164555896706', 'result_long': None, 'result_double': None}] Qualite : 0.06057164555896706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25600623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25600623_02-08-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25600623 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_P25600623_02-08-2025_05_51_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25600629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25600630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25600631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25600632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25600633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25600634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25600635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25600636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25600637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25600638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25600639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25600640, 'pht': 3726}}" where mtr_portfolio_id = 25600623 and dashboard_run_id = 2061779 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`=25600623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525205, 0.06057164555896706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25600623_02-08-2025_05_51_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25600629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25600630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25600631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25600632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25600633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25600634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25600635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25600636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25600637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25600638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25600639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25600640, '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 = 25601116 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': 3426782, 'mtr_portfolio_id': 25601116, 'created_at': datetime.datetime(2025, 8, 2, 5, 52), 'result': '0.04711564496288318', 'result_long': None, 'result_double': None}] Qualite : 0.04711564496288318 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25601116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25601116_02-08-2025_05_52_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25601116 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_P25601116_02-08-2025_05_52_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25601127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25601128, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25601129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25601130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25601131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25601132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25601133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25601134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25601135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25601136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25601137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25601138, 'pht': 3726}}" where mtr_portfolio_id = 25601116 and dashboard_run_id = 2061779 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`=25601116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525206, 0.04711564496288318, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25601116_02-08-2025_05_52_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25601127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25601128, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25601129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25601130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25601131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25601132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25601133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25601134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25601135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25601136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25601137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25601138, '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 = 25601647 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': 3426783, 'mtr_portfolio_id': 25601647, 'created_at': datetime.datetime(2025, 8, 2, 5, 52, 29), 'result': '0.04089070567521049', 'result_long': None, 'result_double': None}] Qualite : 0.04089070567521049 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25601647 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25601647_02-08-2025_05_52_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25601647 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_P25601647_02-08-2025_05_52_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25601701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25601702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25601703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25601705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25601706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25601707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25601709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25601710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25601711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25601713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25601714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25601715, 'pht': 3726}}" where mtr_portfolio_id = 25601647 and dashboard_run_id = 2061779 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`=25601647 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525207, 0.04089070567521049, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25601647_02-08-2025_05_52_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25601701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25601702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25601703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25601705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25601706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25601707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25601709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25601710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25601711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25601713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25601714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25601715, '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 = 25602214 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': 3426784, 'mtr_portfolio_id': 25602214, 'created_at': datetime.datetime(2025, 8, 2, 5, 53), 'result': '0.06817020911933579', 'result_long': None, 'result_double': None}] Qualite : 0.06817020911933579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25602214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25602214_02-08-2025_05_53_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25602214 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_P25602214_02-08-2025_05_53_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25602233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25602234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25602235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25602236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25602237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25602238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25602239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25602240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25602241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25602242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25602243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25602244, 'pht': 3726}}" where mtr_portfolio_id = 25602214 and dashboard_run_id = 2061779 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`=25602214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13525208, 0.06817020911933579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25602214_02-08-2025_05_53_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25602233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25602234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25602235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25602236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25602237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25602238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25602239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25602240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25602241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25602242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25602243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25602244, '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 (25595390,25595654,25596080,25596465,25597427,25597738,25597981,25598358,25598678,25598953,25599370,25599795,25600182,25600623,25601116,25601647,25602214) result : ((1374836743,), (1374836744,), (1374836745,), (1374836750,), (1374836751,), (1374836752,), (1374836754,), (1374836756,), (1374836764,), (1374836765,), (1374836766,), (1374836767,), (1374836774,), (1374836775,), (1374836776,), (1374836777,), (1374836778,), (1374836781,), (1374836782,), (1374836783,), (1374836784,), (1374836786,), (1374836787,), (1374836795,), (1374836796,), (1374836798,), (1374836812,), (1374836813,), (1374836814,), (1374836816,), (1374836817,), (1374836820,), (1374836832,), (1374836833,), (1374836834,), (1374836835,), (1374836855,), (1374836906,), (1374836907,), (1374836908,), (1374836909,), (1374837060,), (1374837061,), (1374837075,), (1374837099,), (1374837110,), (1374837114,), (1374837159,), (1374837160,), (1374837164,), (1374837184,), (1374837209,), (1374837234,), (1374837303,), (1374837304,), (1374837305,), (1374837307,), (1374837318,), (1374837319,), (1374837320,), (1374837322,), (1374837324,), (1374837334,), (1374837335,), (1374837336,), (1374837337,), (1374837338,), (1374837340,), (1374837348,), (1374837350,), (1374837351,), (1374837352,), (1374837370,), (1374837368,), (1374837369,), (1374837388,), (1374837389,), (1374837390,), (1374837391,), (1374837394,), (1374837414,), (1374837416,), (1374837441,), (1374837463,), (1374837484,), (1374837751,), (1374837778,), (1374837802,), (1374837827,), (1374838017,), (1374838019,), (1374838020,), (1374838028,), (1374838034,), (1374838035,), (1374838036,), (1374838037,), (1374838040,), (1374838041,), (1374838042,), (1374838044,), (1374838248,), (1374838277,), (1374838300,), (1374838323,), (1374838971,), (1374839003,), (1374839030,), (1374839053,), (1374839099,), (1374839206,), (1374839247,), (1374839280,), (1374839302,), (1374839327,), (1374839502,), (1374839537,), (1374839588,), (1374839629,), (1374840397,), (1374840475,), (1374840536,), (1374840588,), (1374840631,), (1374840681,), (1374841103,), (1374841125,), (1374841148,), (1374841170,), (1374841183,), (1374841284,), (1374841327,), (1374841373,), (1374841418,), (1374841806,), (1374841807,), (1374841839,), (1374841889,), (1374841901,), (1374841907,), (1374841920,), (1374841922,), (1374841923,), (1374841924,), (1374841928,), (1374841929,), (1374841954,), (1374841952,), (1374841953,), (1374841984,), (1374841985,), (1374841986,), (1374841987,), (1374841989,), (1374841991,), (1374841995,), (1374841996,), (1374841997,), (1374842000,), (1374842003,), (1374842005,), (1374842015,), (1374842017,), (1374842019,), (1374842021,), (1374842022,), (1374842025,), (1374842028,), (1374842031,), (1374842034,), (1374842037,), (1374842038,), (1374842039,), (1374842040,), (1374842076,), (1374842099,), (1374842125,), (1374842434,), (1374842457,), (1374842683,), (1374842710,), (1374842735,), (1374842761,), (1374842942,), (1374842948,), (1374842949,), (1374842966,), (1374842967,), (1374842969,), (1374842970,), (1374842971,), (1374843009,), (1374843010,), (1374843011,), (1374843012,), (1374843014,), (1374843019,), (1374843027,), (1374843029,), (1374843031,), (1374843032,), (1374843040,), (1374843050,), (1374843051,), (1374843054,), (1374843063,), (1374843064,), (1374843065,), (1374843066,), (1374843083,), (1374843084,), (1374843085,), (1374843087,), (1374843089,), (1374843091,), (1374843099,), (1374843100,), (1374843101,), (1374843127,), (1374843122,), (1374843123,), (1374843124,), (1374843125,), (1374843137,), (1374843138,), (1374843139,), (1374843140,), (1374843142,), (1374843242,), (1374843269,), (1374843293,), (1374843502,), (1374843521,), (1374843532,), (1374843541,), (1374843542,), (1374843543,), (1374843559,), (1374843560,), (1374843561,), (1374843582,), (1374843583,), (1374843585,), (1374843586,), (1374843589,), (1374843603,), (1374843604,), (1374843605,), (1374843623,), (1374843625,), (1374843627,), (1374843629,), (1374843630,), (1374843634,), (1374843635,), (1374843636,), (1374843637,), (1374843641,), (1374843642,), (1374843643,), (1374843644,), (1374843646,), (1374843655,), (1374843656,), (1374843687,), (1374843688,), (1374843689,), (1374843690,), (1374843693,), (1374843714,), (1374843947,), (1374843948,), (1374843949,), (1374843956,), (1374843977,), (1374844001,), (1374844636,), (1374844675,), (1374844724,), (1374845663,), (1374846659,), (1374846661,), (1374846663,), (1374846687,), (1374846688,), (1374846689,), (1374846690,), (1374846692,), (1374846693,), (1374846704,), (1374846705,), (1374846706,), (1374846738,), (1374846741,), (1374846744,), (1374846747,), (1374846749,), (1374846760,), (1374846762,), (1374846763,), (1374846764,), (1374846766,), (1374846767,), (1374846786,), (1374846788,), (1374846789,), (1374846791,), (1374846794,), (1374846807,), (1374846808,), (1374846810,), (1374846829,), (1374846833,), (1374846838,), (1374846843,), (1374846845,), (1374846846,), (1374846859,), (1374846860,), (1374846861,), (1374846863,), (1374846973,), (1374846975,), (1374847008,), (1374847000,), (1374847001,), (1374847003,), (1374847006,), (1374847023,), (1374847025,), (1374847027,), (1374847049,), (1374847052,), (1374847053,), (1374847565,), (1374847856,), (1374847857,), (1374847858,), (1374847860,), (1374847887,), (1374847889,), (1374847896,), (1374847899,), (1374847986,), (1374848390,), (1374848411,), (1374848451,), (1374849254,), (1374849257,), (1374849282,), (1374849285,), (1374849290,), (1374849291,), (1374849292,), (1374849316,), (1374849306,), (1374849308,), (1374849309,), (1374849310,), (1374849439,), (1374849463,), (1374849487,), (1374849511,), (1374849534,), (1374849561,), (1374849778,), (1374849780,), (1374849782,), (1374849784,), (1374849787,), (1374849955,), (1374849977,), (1374849993,), (1374850002,), (1374850010,), (1374850013,), (1374850019,), (1374850021,), (1374850023,), (1374850025,), (1374850026,), (1374850057,), (1374850059,), (1374850061,), (1374850063,), (1374850068,), (1374850080,), (1374850082,), (1374850083,), (1374850084,), (1374850086,), (1374850106,), (1374850107,), (1374850108,), (1374850126,), (1374850127,), (1374850128,), (1374850130,), (1374850131,), (1374850134,), (1374850147,), (1374850150,), (1374850152,), (1374850154,), (1374850156,), (1374850159,), (1374850173,), (1374850175,), (1374850176,), (1374850179,), (1374850181,), (1374850197,), (1374850198,), (1374850199,), (1374850201,), (1374850204,), (1374850207,), (1374850219,), (1374850221,), (1374850224,), (1374850228,), (1374850231,), (1374850234,), (1374850249,), (1374850251,), (1374850270,), (1374850273,), (1374850274,), (1374850275,), (1374850315,), (1374850307,), (1374850312,), (1374850313,), (1374850333,), (1374850340,), (1374850350,), (1374850365,), (1374850369,), (1374850373,), (1374850383,), (1374850411,), (1374850412,), (1374850413,), (1374850414,), (1374850441,), (1374850442,), (1374850444,), (1374850447,), (1374850450,), (1374850454,), (1374850467,), (1374850469,), (1374850471,), (1374850473,), (1374850474,), (1374850492,), (1374850495,), (1374850501,), (1374850506,), (1374850510,), (1374850524,), (1374850525,), (1374850526,), (1374850588,), (1374850590,), (1374850591,), (1374850592,), (1374850610,), (1374850611,), (1374850612,), (1374850613,), (1374850642,), (1374850643,), (1374850644,), (1374850646,), (1374850662,), (1374850665,), (1374850666,), (1374850668,), (1374850694,), (1374850696,), (1374850724,), (1374850714,), (1374850715,), (1374850718,), (1374850721,), (1374850751,), (1374850753,), (1374850755,), (1374850758,), (1374850760,), (1374850775,), (1374850777,), (1374850797,), (1374850822,), (1374850848,), (1374851225,), (1374851402,), (1374851447,), (1374851470,), (1374851500,), (1374851523,), (1374852166,), (1374852200,), (1374852227,), (1374852262,), (1374852312,), (1374852359,), (1374852511,), (1374852561,), (1374852594,), (1374852622,), (1374852666,), (1374852759,), (1374852783,), (1374852791,), (1374852799,), (1374852801,), (1374852825,), (1374852849,), (1374852872,), (1374852896,), (1374853097,), (1374853121,), (1374853148,), (1374853196,), (1374853240,), (1374853527,), (1374853552,), (1374853578,), (1374853603,), (1374853626,), (1374853914,), (1374853946,), (1374853949,), (1374853950,), (1374853953,), (1374853955,), (1374853993,), (1374854017,), (1374854042,), (1374854065,), (1374854090,), (1374854115,), (1374854297,), (1374854322,), (1374854406,), (1374854407,), (1374854408,), (1374854409,), (1374854410,), (1374854433,), (1374854434,), (1374854436,), (1374854438,), (1374854440,), (1374854442,), (1374854446,), (1374854447,), (1374854448,), (1374854452,), (1374854455,), (1374854456,), (1374854466,), (1374854486,), (1374854478,), (1374854482,), (1374854483,), (1374854484,), (1374854492,), (1374854494,), (1374854497,), (1374854501,), (1374854503,), (1374854508,), (1374854511,), (1374854514,), (1374854517,), (1374854552,), (1374854579,), (1374854602,), (1374854626,), (1374854652,), (1374854905,), (1374854906,), (1374854907,), (1374854908,), (1374854910,), (1374854911,), (1374854921,), (1374854923,), (1374854975,), (1374854999,), (1374855021,), (1374855047,), (1374855256,), (1374855307,), (1374855308,), (1374855310,), (1374855377,), (1374855378,), (1374855379,), (1374855380,), (1374855381,), (1374855393,), (1374855395,), (1374855397,), (1374855399,), (1374855400,), (1374855405,), (1374855407,), (1374855409,), (1374855411,), (1374855413,), (1374855415,), (1374855419,), (1374855422,), (1374855423,), (1374855424,), (1374855455,), (1374855487,), (1374855530,), (1374855582,), (1374855623,), (1374855670,), (1374856181,), (1374856183,), (1374856213,), (1374856260,), (1374856289,), (1374856406,), (1374856410,), (1374856413,), (1374856417,), (1374856418,), (1374856419,), (1374856421,), (1374856424,), (1374856436,), (1374856428,), (1374856432,), (1374856434,), (1374856451,), (1374856452,), (1374856453,), (1374856455,), (1374856456,), (1374856458,), (1374856469,), (1374856470,), (1374856471,), (1374857326,), (1374857340,), (1374857342,), (1374857344,), (1374857346,), (1374857348,), (1374857353,), (1374857354,), (1374857355,), (1374857357,), (1374857361,), (1374857384,), (1374857402,), (1374857401,), (1374857421,), (1374857423,), (1374857425,), (1374857426,), (1374857428,), (1374857581,), (1374857605,), (1374857627,), (1374857653,), (1374857821,), (1374857825,), (1374857826,), (1374857827,), (1374857829,), (1374857844,), (1374857845,), (1374857846,), (1374857848,), (1374857864,), (1374857866,), (1374857869,), (1374857896,), (1374857897,), (1374857898,), (1374857899,), (1374857902,), (1374857919,), (1374857920,), (1374857921,), (1374857922,), (1374857924,), (1374857926,), (1374857949,), (1374857950,), (1374857967,), (1374857988,), (1374857990,), (1374857992,), (1374857993,), (1374857995,), (1374858010,), (1374858011,), (1374858012,), (1374858014,), (1374858016,), (1374858031,), (1374858034,), (1374858036,), (1374858044,), (1374858070,), (1374858071,), (1374858072,), (1374858073,), (1374858093,), (1374858101,), (1374858105,), (1374858106,), (1374858107,), (1374858160,), (1374858146,), (1374858148,), (1374858149,), (1374858152,), (1374858156,), (1374858179,), (1374858182,), (1374858184,), (1374858186,), (1374858201,), (1374858203,), (1374858204,), (1374858206,), (1374858235,), (1374858237,), (1374858238,), (1374858239,), (1374858242,), (1374858244,), (1374858246,), (1374858248,), (1374858250,), (1374858251,), (1374858272,), (1374858274,), (1374858275,), (1374858277,), (1374858301,), (1374858303,), (1374858304,), (1374858385,), (1374858386,), (1374858387,), (1374858390,), (1374858394,), (1374858397,), (1374858408,), (1374858410,), (1374858412,), (1374858414,), (1374858416,), (1374858441,), (1374858448,), (1374858451,), (1374858453,), (1374858490,), (1374858492,), (1374858494,), (1374858495,), (1374858498,), (1374858511,), (1374858512,), (1374858513,), (1374858515,), (1374858517,), (1374858519,), (1374858561,), (1374858570,), (1374858573,), (1374858578,), (1374858604,), (1374858663,), (1374858696,), (1374858697,), (1374858699,), (1374858700,), (1374858738,), (1374858739,), (1374858740,), (1374858742,), (1374858745,), (1374858748,), (1374858762,), (1374858760,), (1374858790,), (1374858792,), (1374858795,), (1374858796,), (1374858817,), (1374858827,), (1374858855,), (1374858856,), (1374858857,), (1374858859,), (1374858862,), (1374858871,), (1374858873,), (1374858875,), (1374858877,), (1374858905,), (1374858907,), (1374858908,), (1374858909,), (1374858940,), (1374858942,), (1374858945,), (1374858949,), (1374858952,), (1374858955,), (1374858960,), (1374858967,), (1374858969,), (1374858971,), (1374858973,), (1374858976,), (1374858978,), (1374858993,), (1374858995,), (1374858996,), (1374858997,), (1374859010,), (1374859012,), (1374859013,), (1374859035,), (1374859037,), (1374859039,), (1374859061,), (1374859064,), (1374859065,), (1374859069,), (1374859071,), (1374859122,), (1374859123,), (1374859187,), (1374859189,), (1374859191,), (1374859498,), (1374859543,), (1374859584,), (1374859625,), (1374859667,), (1374859814,), (1374859815,), (1374859857,), (1374859862,), (1374859910,), (1374859911,), (1374859957,), (1374859962,), (1374860038,), (1374860436,), (1374860462,), (1374860464,), (1374860466,), (1374860542,), (1374860545,), (1374860567,), (1374860866,), (1374860869,), (1374860872,), (1374860874,), (1374860882,), (1374860885,), (1374860888,), (1374860891,), (1374860895,), (1374860915,), (1374860919,), (1374860958,), (1374860960,), (1374860962,), (1374860995,), (1374860997,), (1374860999,), (1374861002,), (1374861115,), (1374861140,), (1374861161,), (1374861186,), (1374861210,), (1374861231,), (1374861349,), (1374861350,), (1374861363,), (1374861443,), (1374861445,), (1374861483,), (1374861485,), (1374861486,), (1374861487,), (1374861488,), (1374861508,), (1374861509,), (1374861510,), (1374861511,), (1374861518,), (1374861781,), (1374861870,), (1374861895,), (1374861919,), (1374861956,), (1374862082,), (1374862110,), (1374862332,), (1374862324,), (1374862330,), (1374862331,), (1374862359,), (1374862362,), (1374862365,), (1374862368,), (1374862412,), (1374862436,), (1374862439,), (1374862481,), (1374862483,), (1374862486,), (1374862542,), (1374862545,), (1374862548,), (1374862550,), (1374862556,), (1374862559,), (1374862562,), (1374862564,), (1374862567,), (1374862571,), (1374862590,), (1374862594,), (1374862596,), (1374862599,), (1374862603,), (1374862624,), (1374862625,), (1374862627,), (1374862628,), (1374862650,), (1374862652,), (1374862653,), (1374862655,), (1374862657,), (1374862659,), (1374862675,), (1374862678,), (1374862680,), (1374862682,), (1374862684,), (1374862686,), (1374862704,), (1374862707,), (1374862708,), (1374862709,), (1374862711,), (1374862739,), (1374862741,), (1374862742,), (1374862743,), (1374862783,), (1374862784,), (1374862786,), (1374862788,), (1374862790,), (1374862808,), (1374862811,), (1374862815,), (1374862817,), (1374862845,), (1374862848,), (1374862851,), (1374862878,), (1374862876,), (1374862903,), (1374862905,), (1374862907,), (1374862910,), (1374862939,), (1374862940,), (1374862941,), (1374862943,), (1374862947,), (1374862971,), (1374862972,), (1374862973,), (1374862976,), (1374863002,), (1374863003,), (1374863004,), (1374863006,), (1374863009,), (1374863034,), (1374863035,), (1374863036,), (1374863038,), (1374863041,), (1374863044,), (1374863062,), (1374863063,), (1374863064,), (1374863066,), (1374863069,), (1374863093,), (1374863094,), (1374863095,), (1374863097,), (1374863128,), (1374863129,), (1374863130,), (1374863131,), (1374863133,), (1374863136,), (1374863157,), (1374863158,), (1374863159,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02082025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25599370]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428] map_info['map_portfolio_photo'] : {25599370: [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428]} final : True mtd_id 4302 list_pids : [1374857402, 1374857384, 1374857361, 1374857357, 1374857355, 1374857354, 1374857353, 1374857348, 1374857346, 1374857344, 1374857342, 1374857340, 1374857326, 1374856471, 1374856470, 1374856469, 1374856458, 1374856456, 1374856455, 1374856453, 1374856452, 1374856451, 1374856434, 1374856432, 1374856428] Looping around the photos to save general results len do output : 1 /25599370Didn'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, '3429305') ('4302', '25599370', '1374857402', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857384', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857361', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857357', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857355', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857354', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857353', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857348', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857346', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857344', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857342', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857340', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374857326', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856471', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856470', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856469', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856458', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856456', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856455', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856453', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856452', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856451', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856434', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856432', None, None, None, None, None, '3429305') ('4302', None, None, None, None, None, None, None, '3429305') ('4302', '25599370', '1374856428', None, None, None, None, None, '3429305') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '25599370', 'None', None, None, None, None, '3429305'), ('4302', '25599370', '1374857402', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857384', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857361', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857357', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857355', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857354', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857353', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857348', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857346', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857344', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857342', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857340', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374857326', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856471', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856470', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856469', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856458', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856456', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856455', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856453', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856452', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856451', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856434', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856432', None, None, None, None, None, '3429305'), ('4302', '25599370', '1374856428', None, None, None, None, None, '3429305')] time used for this insertion : 0.6131551265716553 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.203898906707764 time spend to save output : 0.6134676933288574 total time spend for step 5 : 7.817366600036621 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 (3429305) 2.44user 2.12system 0:20.07elapsed 22%CPU (0avgtext+0avgdata 167276maxresident)k 712inputs+15168outputs (19major+75905minor)pagefaults 0swaps