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 : 2903109 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 (3549227) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3549227) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013291 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3549227'] with mtr_portfolio_ids : ['26013291'] and first list_photo_ids : [] new path : /proc/2903109/ Name: python3 Umask: 0002 State: R (running) Tgid: 2903109 Ngid: 0 Pid: 2903109 PPid: 2903108 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2903109 NSpid: 2903109 NSpgid: 2902838 NSsid: 2902838 VmPeak: 1107248 kB VmSize: 1107248 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 101016 kB VmRSS: 101016 kB RssAnon: 60160 kB RssFile: 40856 kB RssShmem: 0 kB VmData: 866000 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 628 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: 53 nonvoluntary_ctxt_switches: 108 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2903109', 'Ngid': '0', 'Pid': '2903109', 'PPid': '2903108', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2903109', 'NSpid': '2903109', 'NSpgid': '2902838', 'NSsid': '2902838', 'VmPeak': '1107248 kB', 'VmSize': '1107248 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '101016 kB', 'VmRSS': '101016 kB', 'RssAnon': '60160 kB', 'RssFile': '40856 kB', 'RssShmem': '0 kB', 'VmData': '866000 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '628 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': '53', 'nonvoluntary_ctxt_switches': '108'} ('datou_batch_current', '2903109', '1107248', '0', '1107248', '866000', '101016', b'', 'marlene', '3549227') 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 (26013291) 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 (3549227 ) ) 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 (26013291) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1377214993, 'portfolio_id': 26013291}, {'photo_id': 1377211431, 'portfolio_id': 26013291}, {'photo_id': 1377211210, 'portfolio_id': 26013291}, {'photo_id': 1377211208, 'portfolio_id': 26013291}, {'photo_id': 1377211206, 'portfolio_id': 26013291}, {'photo_id': 1377211203, 'portfolio_id': 26013291}, {'photo_id': 1377211200, 'portfolio_id': 26013291}, {'photo_id': 1377211197, 'portfolio_id': 26013291}, {'photo_id': 1377211192, 'portfolio_id': 26013291}, {'photo_id': 1377211190, 'portfolio_id': 26013291}, {'photo_id': 1377211189, 'portfolio_id': 26013291}, {'photo_id': 1377211188, 'portfolio_id': 26013291}, {'photo_id': 1377211187, 'portfolio_id': 26013291}, {'photo_id': 1377211169, 'portfolio_id': 26013291}, {'photo_id': 1377211167, 'portfolio_id': 26013291}, {'photo_id': 1377211162, 'portfolio_id': 26013291}, {'photo_id': 1377211161, 'portfolio_id': 26013291}, {'photo_id': 1377211160, 'portfolio_id': 26013291}, {'photo_id': 1377211158, 'portfolio_id': 26013291}, {'photo_id': 1377211153, 'portfolio_id': 26013291}, {'photo_id': 1377211149, 'portfolio_id': 26013291}, {'photo_id': 1377211132, 'portfolio_id': 26013291}, {'photo_id': 1377211129, 'portfolio_id': 26013291}, {'photo_id': 1377211122, 'portfolio_id': 26013291}, {'photo_id': 1377211118, 'portfolio_id': 26013291}] map_portfolio_id_photo_id: {26013291: [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118]} ##### 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.01998162269592285 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Sat Aug 16 05:38: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 (26013291) 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 : 26013291 get user id for portfolio 26013291 get sub ptf for main ptf 26013291, type 3726 and hashtags ['cartonnette', 'flou', 'autre_refus', 'Carton_brun', 'Carton_gris', 'Teint_Dans_La_Masse', 'plastique', 'metal', 'mal_croppe', 'papier', 'environnement', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26013291 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','Carton_brun','Carton_gris','Teint_Dans_La_Masse','plastique','metal','mal_croppe','papier','environnement','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26013291 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','Carton_brun','Carton_gris','Teint_Dans_La_Masse','plastique','metal','mal_croppe','papier','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 26013291, 'sub_port_id': 26013309, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521087, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'plastique': {'main_port_id': 26013291, 'sub_port_id': 26013310, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521088, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 26013291, 'sub_port_id': 26013311, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521089, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'environnement': {'main_port_id': 26013291, 'sub_port_id': 26013312, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521090, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'flou': {'main_port_id': 26013291, 'sub_port_id': 26013313, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521091, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'cartonnette': {'main_port_id': 26013291, 'sub_port_id': 26013314, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521092, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'Carton_brun': {'main_port_id': 26013291, 'sub_port_id': 26013315, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521093, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'papier': {'main_port_id': 26013291, 'sub_port_id': 26013316, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521094, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'kraft': {'main_port_id': 26013291, 'sub_port_id': 26013317, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521095, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'autre_refus': {'main_port_id': 26013291, 'sub_port_id': 26013318, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521096, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'Carton_gris': {'main_port_id': 26013291, 'sub_port_id': 26013319, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521097, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}, 'mal_croppe': {'main_port_id': 26013291, 'sub_port_id': 26013320, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521098, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013309 , 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=26013291 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 (26013309) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013310 , 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=26013291 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 (26013310) result : ((1377211330,), (1377211331,), (1377211348,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013311 , 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=26013291 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 (26013311) result : ((1377211286,), (1377211287,), (1377211289,), (1377211290,), (1377211310,), (1377211311,), (1377211312,), (1377211313,), (1377211314,), (1377212067,), (1377215281,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013312 , 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=26013291 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 (26013312) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013313 , 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=26013291 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 (26013313) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013314 , 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=26013291 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 (26013314) result : ((1377211292,), (1377211321,), (1377211344,), (1377211345,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013315 , 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=26013291 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 (26013315) result : ((1377211322,), (1377211323,), (1377211324,), (1377211325,), (1377211326,), (1377211327,), (1377211328,), (1377211346,), (1377212107,), (1377212110,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013316 , 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=26013291 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 (26013316) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013317 , 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=26013291 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 (26013317) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013318 , 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=26013291 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 (26013318) result : ((1377211315,), (1377211340,), (1377211341,), (1377211342,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013319 , 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=26013291 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 (26013319) result : ((1377211291,), (1377211316,), (1377211317,), (1377211318,), (1377211319,), (1377211343,), (1377212084,), (1377212087,), (1377212090,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26013320 , 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=26013291 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 (26013320) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26013291) result : ((1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,)) 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 (1377211200) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26013291 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','Carton_brun','Carton_gris','Teint_Dans_La_Masse','plastique','metal','mal_croppe','papier','environnement','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26013291 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','Carton_brun','Carton_gris','Teint_Dans_La_Masse','plastique','metal','mal_croppe','papier','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 26013291, 'sub_port_id': 26013323, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521099, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'plastique': {'main_port_id': 26013291, 'sub_port_id': 26013324, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521100, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 26013291, 'sub_port_id': 26013325, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521101, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'environnement': {'main_port_id': 26013291, 'sub_port_id': 26013326, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521102, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'flou': {'main_port_id': 26013291, 'sub_port_id': 26013327, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521103, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'cartonnette': {'main_port_id': 26013291, 'sub_port_id': 26013328, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521104, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'Carton_brun': {'main_port_id': 26013291, 'sub_port_id': 26013329, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521105, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'papier': {'main_port_id': 26013291, 'sub_port_id': 26013330, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521106, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'kraft': {'main_port_id': 26013291, 'sub_port_id': 26013331, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521107, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'autre_refus': {'main_port_id': 26013291, 'sub_port_id': 26013332, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521108, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'Carton_gris': {'main_port_id': 26013291, 'sub_port_id': 26013333, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521109, 'last_updated_at': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 2, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}, 'mal_croppe': {'main_port_id': 26013291, 'sub_port_id': 26013334, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17521110, 'last_updated_at': datetime.datetime(2025, 8, 15, 6, 6, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 15, 6, 6, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 15, 2, 49, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013309 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013327,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013328,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013314 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013329,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013315 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013316 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013317 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013318 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013319 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26013334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26013320 lien utilise dans velours : https://www.fotonower.com/velours/26013323,26013324,26013325,26013326,26013327,26013328,26013329,26013330,26013331,26013332,26013333,26013334?tags=metal,plastique,Teint_Dans_La_Masse,environnement,flou,cartonnette,Carton_brun,papier,kraft,autre_refus,Carton_gris,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26013291]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118] map_info['map_portfolio_photo'] : {26013291: [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118]} final : False mtd_id 4302 list_pids : [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118] Looping around the photos to save general results len do output : 1 /26013291. 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, '3549227') ('4302', '26013291', '1377214993', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211431', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211210', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211208', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211206', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211203', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211200', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211197', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211192', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211190', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211189', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211188', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211187', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211169', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211167', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211162', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211161', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211160', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211158', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211153', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211149', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211132', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211129', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211122', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211118', None, None, None, None, None, '3549227') 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, '26013291', "{'metal': 26013309, 'plastique': 26013310, 'Teint_Dans_La_Masse': 26013311, 'environnement': 26013312, 'flou': 26013313, 'cartonnette': 26013314, 'Carton_brun': 26013315, 'papier': 26013316, 'kraft': 26013317, 'autre_refus': 26013318, 'Carton_gris': 26013319, 'mal_croppe': 26013320}", None, None, None, None, '3549227'), ('4302', '26013291', '1377214993', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211431', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211210', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211208', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211206', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211203', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211200', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211197', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211192', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211190', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211189', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211188', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211187', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211169', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211167', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211162', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211161', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211160', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211158', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211153', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211149', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211132', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211129', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211122', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211118', None, None, None, None, None, '3549227')] time used for this insertion : 0.020746707916259766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43152642250061035 time spend to save output : 0.021075963973999023 total time spend for step 1 : 0.4526023864746094 step2:final Sat Aug 16 05:38: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 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 (26013291) 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 26013291 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1377211132,1377211169,1377211129,1377211167,1377211122,1377211162,1377211161,1377211118,1377211160,1377211158,1377211153,1377211149,1377211192,1377211190,1377211189,1377211188,1377211187,1377211210,1377211208,1377211206,1377211203,1377211200,1377211197,1377214993,1377211431); 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([26013291]) Inside saveOutput : final : False verbose : True original output for save of step final : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} new output for save of step final : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118] map_info['map_portfolio_photo'] : {26013291: [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118]} final : False mtd_id 4302 list_pids : [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118] Looping around the photos to save general results len do output : 25 /1377214993.Didn't retrieve data . /1377211431.Didn't retrieve data . /1377211210.Didn't retrieve data . /1377211208.Didn't retrieve data . /1377211206.Didn't retrieve data . /1377211203.Didn't retrieve data . /1377211200.Didn't retrieve data . /1377211197.Didn't retrieve data . /1377211192.Didn't retrieve data . /1377211190.Didn't retrieve data . /1377211189.Didn't retrieve data . /1377211188.Didn't retrieve data . /1377211187.Didn't retrieve data . /1377211169.Didn't retrieve data . /1377211167.Didn't retrieve data . /1377211162.Didn't retrieve data . /1377211161.Didn't retrieve data . /1377211160.Didn't retrieve data . /1377211158.Didn't retrieve data . /1377211153.Didn't retrieve data . /1377211149.Didn't retrieve data . /1377211132.Didn't retrieve data . /1377211129.Didn't retrieve data . /1377211122.Didn't retrieve data . /1377211118.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, '3549227') ('4302', '26013291', '1377214993', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211431', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211210', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211208', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211206', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211203', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211200', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211197', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211192', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211190', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211189', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211188', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211187', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211169', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211167', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211162', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211161', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211160', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211158', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211153', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211149', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211132', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211129', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211122', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211118', None, None, None, None, None, '3549227') 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', '26013291', '1377214993', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211431', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211210', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211208', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211206', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211203', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211200', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211197', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211192', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211190', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211189', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211188', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211187', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211169', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211167', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211162', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211161', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211160', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211158', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211153', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211149', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211132', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211129', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211122', '0.039870167648543724', None, None, None, None, '3549227'), ('4302', '26013291', '1377211118', '0.039870167648543724', None, None, None, None, '3549227')] time used for this insertion : 0.019042491912841797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.060163021087646484 time spend to save output : 0.020024776458740234 total time spend for step 2 : 0.08018779754638672 step3:velours_tree Sat Aug 16 05:38: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 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 : {26013291: [{'metal': 26013309, 'plastique': 26013310, 'Teint_Dans_La_Masse': 26013311, 'environnement': 26013312, 'flou': 26013313, 'cartonnette': 26013314, 'Carton_brun': 26013315, 'papier': 26013316, 'kraft': 26013317, 'autre_refus': 26013318, 'Carton_gris': 26013319, 'mal_croppe': 26013320}]} input_args_next_step : {26013291: ()} output_args : {26013291: [{'metal': 26013309, 'plastique': 26013310, 'Teint_Dans_La_Masse': 26013311, 'environnement': 26013312, 'flou': 26013313, 'cartonnette': 26013314, 'Carton_brun': 26013315, 'papier': 26013316, 'kraft': 26013317, 'autre_refus': 26013318, 'Carton_gris': 26013319, 'mal_croppe': 26013320}]} args : 26013291 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 : ({'metal': 26013309, 'plastique': 26013310, 'Teint_Dans_La_Masse': 26013311, 'environnement': 26013312, 'flou': 26013313, 'cartonnette': 26013314, 'Carton_brun': 26013315, 'papier': 26013316, 'kraft': 26013317, 'autre_refus': 26013318, 'Carton_gris': 26013319, 'mal_croppe': 26013320},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26013291) 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([26013291]) 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.2767937183380127 time spend to save output : 5.4836273193359375e-05 total time spend for step 3 : 0.27684855461120605 step4:send_mail_cod Sat Aug 16 05:38: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 ! complete output_args for input 2 : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} input_args_next_step : {1377214993: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377214993 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211431 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211210 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211208 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211206 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211203 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211200 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211197 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211192 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211190 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211189 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211188 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211187 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211169 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211167 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211162 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211161 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211160 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211158 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211153 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211149 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211132 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211129 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211122 depend.output_id : 0 input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ()} output_args : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',)} args : 1377211118 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 : {26013291: [{'metal': 26013309, 'plastique': 26013310, 'Teint_Dans_La_Masse': 26013311, 'environnement': 26013312, 'flou': 26013313, 'cartonnette': 26013314, 'Carton_brun': 26013315, 'papier': 26013316, 'kraft': 26013317, 'autre_refus': 26013318, 'Carton_gris': 26013319, 'mal_croppe': 26013320}]} input_args_next_step : {1377214993: ('0.039870167648543724',), 1377211431: ('0.039870167648543724',), 1377211210: ('0.039870167648543724',), 1377211208: ('0.039870167648543724',), 1377211206: ('0.039870167648543724',), 1377211203: ('0.039870167648543724',), 1377211200: ('0.039870167648543724',), 1377211197: ('0.039870167648543724',), 1377211192: ('0.039870167648543724',), 1377211190: ('0.039870167648543724',), 1377211189: ('0.039870167648543724',), 1377211188: ('0.039870167648543724',), 1377211187: ('0.039870167648543724',), 1377211169: ('0.039870167648543724',), 1377211167: ('0.039870167648543724',), 1377211162: ('0.039870167648543724',), 1377211161: ('0.039870167648543724',), 1377211160: ('0.039870167648543724',), 1377211158: ('0.039870167648543724',), 1377211153: ('0.039870167648543724',), 1377211149: ('0.039870167648543724',), 1377211132: ('0.039870167648543724',), 1377211129: ('0.039870167648543724',), 1377211122: ('0.039870167648543724',), 1377211118: ('0.039870167648543724',), 26013291: ()} output_args : {26013291: [{'metal': 26013309, 'plastique': 26013310, 'Teint_Dans_La_Masse': 26013311, 'environnement': 26013312, 'flou': 26013313, 'cartonnette': 26013314, 'Carton_brun': 26013315, 'papier': 26013316, 'kraft': 26013317, 'autre_refus': 26013318, 'Carton_gris': 26013319, 'mal_croppe': 26013320}]} args : 26013291 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.039870167648543724',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26013291) 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 (1377214993,1377211431,1377211210,1377211208,1377211206,1377211203,1377211200,1377211197,1377211192,1377211190,1377211189,1377211188,1377211187,1377211169,1377211167,1377211162,1377211161,1377211160,1377211158,1377211153,1377211149,1377211132,1377211129,1377211122,1377211118) Found this number of photos: 25 ##### Call download_photos : nb_thread : 5 begin to download photo : 1377211118 begin to download photo : 1377211158 begin to download photo : 1377211187 begin to download photo : 1377211200 begin to download photo : 1377214993 download finish for photo 1377211158 begin to download photo : 1377211160 download finish for photo 1377211118 begin to download photo : 1377211122 download finish for photo 1377211187 begin to download photo : 1377211188 download finish for photo 1377214993 download finish for photo 1377211160 begin to download photo : 1377211161 download finish for photo 1377211188 begin to download photo : 1377211189 download finish for photo 1377211122 begin to download photo : 1377211129 download finish for photo 1377211161 begin to download photo : 1377211162 download finish for photo 1377211189 begin to download photo : 1377211190 download finish for photo 1377211162 begin to download photo : 1377211167 download finish for photo 1377211129 begin to download photo : 1377211132 download finish for photo 1377211190 begin to download photo : 1377211192 download finish for photo 1377211167 begin to download photo : 1377211169 download finish for photo 1377211132 begin to download photo : 1377211149 download finish for photo 1377211192 begin to download photo : 1377211197 download finish for photo 1377211169 download finish for photo 1377211149 begin to download photo : 1377211153 download finish for photo 1377211197 download finish for photo 1377211153 download finish for photo 1377211200 begin to download photo : 1377211203 download finish for photo 1377211203 begin to download photo : 1377211206 download finish for photo 1377211206 begin to download photo : 1377211208 download finish for photo 1377211208 begin to download photo : 1377211210 download finish for photo 1377211210 begin to download photo : 1377211431 download finish for photo 1377211431 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette260133091755315513/ length of list_filenames : 25 ; length of list_pids : 25 ; length of list_args : 25 results_Auto_P26013291_16-08-2025_05_38_33.pdf 26013309 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=26013309 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette260133091755315513 26013310 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=26013310 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1377211330: '1755219205_2616903_1377211162_aafc2a450cae15139f4a7697c208aa4f_rle_crop_3916181253_0.png', 1377211331: '1755219205_2616903_1377211122_0e1fab5369de35c61f013b0dcd3f674f_rle_crop_3916181328_0.png', 1377211348: '1755219265_2618102_1377211203_6af3576be6b71d7550be79539ba6fc7f_rle_crop_3916181527_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/95a82f9c078df4116667ba655487b1b3_71528264.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/95a82f9c078df4116667ba655487b1b3_42335479.png change filename to text .imagette260133101755315513/ imagette260133101755315513/1755219205_2616903_1377211162_aafc2a450cae15139f4a7697c208aa4f_rle_crop_3916181253_0.png.png imagette260133101755315513/1755219205_2616903_1377211122_0e1fab5369de35c61f013b0dcd3f674f_rle_crop_3916181328_0.png.png imagette260133101755315513/1755219265_2618102_1377211203_6af3576be6b71d7550be79539ba6fc7f_rle_crop_3916181527_0.png.png imagette260133131755315513/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/201d8a11ebafe8aca0d41bafbc93ff2e_49047887.png imagette260133101755315513 26013313 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=26013313 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette260133131755315513 26013314 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=26013314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1377211292: '1755219145_2614998_1377211158_d6572341cee457ae9d542b74f65473da_rle_crop_3916180997_0.png', 1377211321: '1755219205_2616903_1377211129_5ad0b0965827bbe42e01d0a9c9848798_rle_crop_3916181310_0.png', 1377211344: '1755219265_2618102_1377211206_107f71b5bf3805ce3adafcbfdb04a8c3_rle_crop_3916181515_0.png', 1377211345: '1755219265_2618102_1377211203_6af3576be6b71d7550be79539ba6fc7f_rle_crop_3916181528_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/9ee26f84fa9b0111fdbbcad1fc01e7b2_52169742.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/9e2e638820adf98cce6e81794c3bb393_74416742.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/6c87456cfe745707b0ea21d7465c8243_42693883.png change filename to text .imagette260133141755315513/ imagette260133141755315513/1755219265_2618102_1377211206_107f71b5bf3805ce3adafcbfdb04a8c3_rle_crop_3916181515_0.png.png imagette260133141755315513/1755219145_2614998_1377211158_d6572341cee457ae9d542b74f65473da_rle_crop_3916180997_0.png.png imagette260133141755315513/1755219265_2618102_1377211203_6af3576be6b71d7550be79539ba6fc7f_rle_crop_3916181528_0.png.png imagette260133141755315513/1755219205_2616903_1377211129_5ad0b0965827bbe42e01d0a9c9848798_rle_crop_3916181310_0.png.png imagette260133171755315514/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/e62381b500d41bf4cea02e7ff1972945_58042088.png imagette260133141755315513 26013317 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=26013317 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette260133171755315514 26013318 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=26013318 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1377211315: '1755219205_2616903_1377211132_3ab99a79c74d70a001e5e9d6f874e3ac_rle_crop_3916181302_0.png', 1377211340: '1755219265_2618102_1377211208_431a1d85b4c7d7097f85668381f9f463_rle_crop_3916181501_0.png', 1377211341: '1755219265_2618102_1377211208_431a1d85b4c7d7097f85668381f9f463_rle_crop_3916181500_0.png', 1377211342: '1755219265_2618102_1377211206_107f71b5bf3805ce3adafcbfdb04a8c3_rle_crop_3916181514_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/eb4775b9e84ecb4fa62c073fdfd808ce_35908847.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/46985a504c07efae353aeaa9db8d136b_12780175.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/a9984ab628203218ae1d97aec0c890f3_50205682.png change filename to text .imagette260133181755315514/ imagette260133181755315514/1755219265_2618102_1377211208_431a1d85b4c7d7097f85668381f9f463_rle_crop_3916181501_0.png.png imagette260133181755315514/1755219205_2616903_1377211132_3ab99a79c74d70a001e5e9d6f874e3ac_rle_crop_3916181302_0.png.png imagette260133181755315514/1755219265_2618102_1377211206_107f71b5bf3805ce3adafcbfdb04a8c3_rle_crop_3916181514_0.png.png imagette260133181755315514/1755219265_2618102_1377211208_431a1d85b4c7d7097f85668381f9f463_rle_crop_3916181500_0.png.png imagette260133201755315514/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/a1cb8a404bb5482c56248c3d65588c15_30448684.png imagette260133181755315514 26013320 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=26013320 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette260133201755315514 26013311 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=26013311 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1377211286: '1755219145_2614998_1377211158_d6572341cee457ae9d542b74f65473da_rle_crop_3916180998_0.png', 1377211287: '1755219145_2614998_1377211153_bfdccf1d7a85793974c86e3cb40c9a2a_rle_crop_3916181012_0.png', 1377211289: '1755219145_2614998_1377211149_eed873edc15e9b96060e1d6c0414ea88_rle_crop_3916181025_0.png', 1377211290: '1755219145_2614998_1377211149_eed873edc15e9b96060e1d6c0414ea88_rle_crop_3916181023_0.png', 1377211310: '1755219205_2616903_1377211161_58b7e7be7bcc6488873fac661150b962_rle_crop_3916181271_0.png', 1377211311: '1755219205_2616903_1377211160_34e6ae20802d7c6b691245845e1e1e45_rle_crop_3916181288_0.png', 1377211312: '1755219205_2616903_1377211129_5ad0b0965827bbe42e01d0a9c9848798_rle_crop_3916181314_0.png', 1377211313: '1755219205_2616903_1377211129_5ad0b0965827bbe42e01d0a9c9848798_rle_crop_3916181319_0.png', 1377211314: '1755219205_2616903_1377211118_84aa99f79ea534aa8185f4d63b77e949_rle_crop_3916181346_0.png', 1377212067: '1755219687_2631347_1377211190_7326d8b1886f7260d38c18b86f5f1e27_rle_crop_3916207902_0.png', 1377215281: '1755220105_2647657_1377214993_0a17fb07d65f8e7a7d3b5359b92dcdbd_rle_crop_3916209364_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/d3c4e753dec08522d7ddbed87c79828f_5411741.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/09f1cfa2c411cc61c294a8416c6c0a0d_67078203.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/b9c21a69d4162a1f02d259db25d8ce4e_66359412.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/4a9ad8962f55412d931cdff06ccb176e_39537528.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/4c1e921d064ea1ba470b7214e0db4f74_45952197.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/01348c96f062d47387b0b9a90ca9a9e4_15062036.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/862f167a30b386dcd28244d96d81d12d_66004542.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/6add0f0424b9cfcdc3105aefb7e2c3ff_19387419.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/4c1e921d064ea1ba470b7214e0db4f74_3073655.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/66b53c30e37e31ef1fe5aa8dbb9f1aec_94853929.png change filename to text .imagette260133111755315514/ imagette260133111755315514/1755219205_2616903_1377211160_34e6ae20802d7c6b691245845e1e1e45_rle_crop_3916181288_0.png.png imagette260133111755315514/1755219145_2614998_1377211149_eed873edc15e9b96060e1d6c0414ea88_rle_crop_3916181025_0.png.png imagette260133111755315514/1755219205_2616903_1377211161_58b7e7be7bcc6488873fac661150b962_rle_crop_3916181271_0.png.png imagette260133111755315514/1755219145_2614998_1377211158_d6572341cee457ae9d542b74f65473da_rle_crop_3916180998_0.png.png imagette260133111755315514/1755219145_2614998_1377211149_eed873edc15e9b96060e1d6c0414ea88_rle_crop_3916181023_0.png.png imagette260133111755315514/1755219205_2616903_1377211129_5ad0b0965827bbe42e01d0a9c9848798_rle_crop_3916181319_0.png.png imagette260133111755315514/1755219205_2616903_1377211129_5ad0b0965827bbe42e01d0a9c9848798_rle_crop_3916181314_0.png.png imagette260133111755315514/1755219687_2631347_1377211190_7326d8b1886f7260d38c18b86f5f1e27_rle_crop_3916207902_0.png.png imagette260133111755315514/1755220105_2647657_1377214993_0a17fb07d65f8e7a7d3b5359b92dcdbd_rle_crop_3916209364_0.png.png imagette260133111755315514/1755219145_2614998_1377211153_bfdccf1d7a85793974c86e3cb40c9a2a_rle_crop_3916181012_0.png.png imagette260133111755315514/1755219205_2616903_1377211118_84aa99f79ea534aa8185f4d63b77e949_rle_crop_3916181346_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/9151d5bdb65220c2835b2cf08315c164_47968711.png imagette260133111755315514 26013315 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=26013315 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1377211322: '1755219205_2616903_1377211162_aafc2a450cae15139f4a7697c208aa4f_rle_crop_3916181259_0.png', 1377211323: '1755219205_2616903_1377211161_58b7e7be7bcc6488873fac661150b962_rle_crop_3916181277_0.png', 1377211324: '1755219205_2616903_1377211161_58b7e7be7bcc6488873fac661150b962_rle_crop_3916181274_0.png', 1377211325: '1755219205_2616903_1377211132_3ab99a79c74d70a001e5e9d6f874e3ac_rle_crop_3916181298_0.png', 1377211326: '1755219205_2616903_1377211122_0e1fab5369de35c61f013b0dcd3f674f_rle_crop_3916181334_0.png', 1377211327: '1755219205_2616903_1377211118_84aa99f79ea534aa8185f4d63b77e949_rle_crop_3916181352_0.png', 1377211328: '1755219205_2616903_1377211118_84aa99f79ea534aa8185f4d63b77e949_rle_crop_3916181349_0.png', 1377211346: '1755219265_2618102_1377211203_6af3576be6b71d7550be79539ba6fc7f_rle_crop_3916181537_0.png', 1377212107: '1755219687_2631347_1377211190_7326d8b1886f7260d38c18b86f5f1e27_rle_crop_3916207903_0.png', 1377212110: '1755219687_2631347_1377211190_7326d8b1886f7260d38c18b86f5f1e27_rle_crop_3916207904_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/d61bc2de73f8a501e72c5edd381d0a51_46509373.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/eb527358ed9fbc5dadfc6d36548951f0_878809.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/211a5120eccbffb823924b5bace0286c_53884002.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/2f4a844e60b61e52d9733fb24fa31eb3_99831569.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/d61bc2de73f8a501e72c5edd381d0a51_85478466.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/eb527358ed9fbc5dadfc6d36548951f0_68786144.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/211a5120eccbffb823924b5bace0286c_91525685.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/dea585881cb60508441ed2803a8298ae_71657325.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/de90959bc0b59ff28f92b07e46aec7bf_37421804.png change filename to text .imagette260133151755315515/ imagette260133151755315515/1755219265_2618102_1377211203_6af3576be6b71d7550be79539ba6fc7f_rle_crop_3916181537_0.png.png imagette260133151755315515/1755219205_2616903_1377211132_3ab99a79c74d70a001e5e9d6f874e3ac_rle_crop_3916181298_0.png.png imagette260133151755315515/1755219687_2631347_1377211190_7326d8b1886f7260d38c18b86f5f1e27_rle_crop_3916207903_0.png.png imagette260133151755315515/1755219205_2616903_1377211161_58b7e7be7bcc6488873fac661150b962_rle_crop_3916181277_0.png.png imagette260133151755315515/1755219687_2631347_1377211190_7326d8b1886f7260d38c18b86f5f1e27_rle_crop_3916207904_0.png.png imagette260133151755315515/1755219205_2616903_1377211161_58b7e7be7bcc6488873fac661150b962_rle_crop_3916181274_0.png.png imagette260133151755315515/1755219205_2616903_1377211162_aafc2a450cae15139f4a7697c208aa4f_rle_crop_3916181259_0.png.png imagette260133151755315515/1755219205_2616903_1377211118_84aa99f79ea534aa8185f4d63b77e949_rle_crop_3916181352_0.png.png imagette260133151755315515/1755219205_2616903_1377211118_84aa99f79ea534aa8185f4d63b77e949_rle_crop_3916181349_0.png.png imagette260133151755315515/1755219205_2616903_1377211122_0e1fab5369de35c61f013b0dcd3f674f_rle_crop_3916181334_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/f8eb1cfcd98670381a553be687f56a57_36666092.png imagette260133151755315515 26013319 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=26013319 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1377211291: '1755219145_2614998_1377211158_d6572341cee457ae9d542b74f65473da_rle_crop_3916180996_0.png', 1377211316: '1755219205_2616903_1377211162_aafc2a450cae15139f4a7697c208aa4f_rle_crop_3916181254_0.png', 1377211317: '1755219205_2616903_1377211161_58b7e7be7bcc6488873fac661150b962_rle_crop_3916181268_0.png', 1377211318: '1755219205_2616903_1377211122_0e1fab5369de35c61f013b0dcd3f674f_rle_crop_3916181329_0.png', 1377211319: '1755219205_2616903_1377211118_84aa99f79ea534aa8185f4d63b77e949_rle_crop_3916181343_0.png', 1377211343: '1755219265_2618102_1377211200_15cc6b989edcdf042a1502e2971bff95_rle_crop_3916181546_0.png', 1377212084: '1755219687_2631347_1377211210_aee2704e4f0fe565c171cca022f1b202_rle_crop_3916207883_0.png', 1377212087: '1755219687_2631347_1377211190_7326d8b1886f7260d38c18b86f5f1e27_rle_crop_3916207894_0.png', 1377212090: '1755219687_2631347_1377211190_7326d8b1886f7260d38c18b86f5f1e27_rle_crop_3916207895_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/a6444a2c509c64767939d5cde4e64666_3739204.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/e52750b57aac0df401b66f91feaeaeb3_88015998.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/130f1e8d53fbbb674a1a2e6178cf0a3f_78363213.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/e52750b57aac0df401b66f91feaeaeb3_14909355.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/130f1e8d53fbbb674a1a2e6178cf0a3f_38593044.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/7e7451dee173bab6de42a54bf95d0d2b_53442177.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/cd4c084c3b1ce11f01b20adb19c98bc1_81371286.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/9b0af638c4b727eace7ac8a489c108ef_36607110.png change filename to text .imagette260133191755315516/ imagette260133191755315516/1755219687_2631347_1377211210_aee2704e4f0fe565c171cca022f1b202_rle_crop_3916207883_0.png.png imagette260133191755315516/1755219145_2614998_1377211158_d6572341cee457ae9d542b74f65473da_rle_crop_3916180996_0.png.png imagette260133191755315516/1755219205_2616903_1377211161_58b7e7be7bcc6488873fac661150b962_rle_crop_3916181268_0.png.png imagette260133191755315516/1755219205_2616903_1377211118_84aa99f79ea534aa8185f4d63b77e949_rle_crop_3916181343_0.png.png imagette260133191755315516/1755219205_2616903_1377211122_0e1fab5369de35c61f013b0dcd3f674f_rle_crop_3916181329_0.png.png imagette260133191755315516/1755219687_2631347_1377211190_7326d8b1886f7260d38c18b86f5f1e27_rle_crop_3916207894_0.png.png imagette260133191755315516/1755219205_2616903_1377211162_aafc2a450cae15139f4a7697c208aa4f_rle_crop_3916181254_0.png.png imagette260133191755315516/1755219265_2618102_1377211200_15cc6b989edcdf042a1502e2971bff95_rle_crop_3916181546_0.png.png imagette260133191755315516/1755219687_2631347_1377211190_7326d8b1886f7260d38c18b86f5f1e27_rle_crop_3916207895_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/ae8d79beb5e7ca49fb49988fb2b43d42_40700430.png imagette260133191755315516 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26013291 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/26013323,26013324,26013325,26013326,26013327,26013328,26013329,26013330,26013331,26013332,26013333,26013334?tags=metal,plastique,Teint_Dans_La_Masse,environnement,flou,cartonnette,Carton_brun,papier,kraft,autre_refus,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1377214993] : ('0.039870167648543724',) no score found for photo 1377214993 We are sending mail with results at report@fotonower.com args[1377211431] : ('0.039870167648543724',) no score found for photo 1377211431 We are sending mail with results at report@fotonower.com args[1377211210] : ('0.039870167648543724',) no score found for photo 1377211210 We are sending mail with results at report@fotonower.com args[1377211208] : ('0.039870167648543724',) no score found for photo 1377211208 We are sending mail with results at report@fotonower.com args[1377211206] : ('0.039870167648543724',) no score found for photo 1377211206 We are sending mail with results at report@fotonower.com args[1377211203] : ('0.039870167648543724',) no score found for photo 1377211203 We are sending mail with results at report@fotonower.com args[1377211200] : ('0.039870167648543724',) no score found for photo 1377211200 We are sending mail with results at report@fotonower.com args[1377211197] : ('0.039870167648543724',) no score found for photo 1377211197 We are sending mail with results at report@fotonower.com args[1377211192] : ('0.039870167648543724',) no score found for photo 1377211192 We are sending mail with results at report@fotonower.com args[1377211190] : ('0.039870167648543724',) no score found for photo 1377211190 We are sending mail with results at report@fotonower.com args[1377211189] : ('0.039870167648543724',) no score found for photo 1377211189 We are sending mail with results at report@fotonower.com args[1377211188] : ('0.039870167648543724',) no score found for photo 1377211188 We are sending mail with results at report@fotonower.com args[1377211187] : ('0.039870167648543724',) no score found for photo 1377211187 We are sending mail with results at report@fotonower.com args[1377211169] : ('0.039870167648543724',) no score found for photo 1377211169 We are sending mail with results at report@fotonower.com args[1377211167] : ('0.039870167648543724',) no score found for photo 1377211167 We are sending mail with results at report@fotonower.com args[1377211162] : ('0.039870167648543724',) no score found for photo 1377211162 We are sending mail with results at report@fotonower.com args[1377211161] : ('0.039870167648543724',) no score found for photo 1377211161 We are sending mail with results at report@fotonower.com args[1377211160] : ('0.039870167648543724',) no score found for photo 1377211160 We are sending mail with results at report@fotonower.com args[1377211158] : ('0.039870167648543724',) no score found for photo 1377211158 We are sending mail with results at report@fotonower.com args[1377211153] : ('0.039870167648543724',) no score found for photo 1377211153 We are sending mail with results at report@fotonower.com args[1377211149] : ('0.039870167648543724',) no score found for photo 1377211149 We are sending mail with results at report@fotonower.com args[1377211132] : ('0.039870167648543724',) no score found for photo 1377211132 We are sending mail with results at report@fotonower.com args[1377211129] : ('0.039870167648543724',) no score found for photo 1377211129 We are sending mail with results at report@fotonower.com args[1377211122] : ('0.039870167648543724',) no score found for photo 1377211122 We are sending mail with results at report@fotonower.com args[1377211118] : ('0.039870167648543724',) no score found for photo 1377211118 We are sending mail with results at report@fotonower.com refus_total : 0.039870167648543724 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=26013291 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_P26013291_16-08-2025_05_38_33.pdf results_Auto_P26013291_16-08-2025_05_38_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26013291_16-08-2025_05_38_33.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','26013291','results_Auto_P26013291_16-08-2025_05_38_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26013291_16-08-2025_05_38_33.pdf','pdf','','0.27','0.039870167648543724') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26013291]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118] map_info['map_portfolio_photo'] : {26013291: [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118]} final : False mtd_id 4302 list_pids : [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118] 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, '3549227') ('4302', '26013291', '1377214993', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211431', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211210', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211208', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211206', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211203', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211200', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211197', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211192', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211190', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211189', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211188', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211187', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211169', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211167', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211162', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211161', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211160', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211158', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211153', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211149', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211132', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211129', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211122', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211118', None, None, None, None, None, '3549227') 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', '26013291', '1377214993', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211431', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211210', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211208', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211206', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211203', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211200', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211197', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211192', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211190', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211189', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211188', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211187', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211169', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211167', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211162', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211161', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211160', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211158', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211153', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211149', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211132', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211129', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211122', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211118', None, None, None, None, None, '3549227')] time used for this insertion : 0.016689062118530273 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.12967586517334 time spend to save output : 0.017024755477905273 total time spend for step 4 : 9.146700620651245 step5:split_time_score Sat Aug 16 05:38:39 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 : ['26013291'] 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 : [('26013291',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26013291) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1377214993: {'path': 'temp/1755315510_2903109_1377214993_0a17fb07d65f8e7a7d3b5359b92dcdbd.jpg', 'extension': 'jpg'}, 1377211158: {'path': 'temp/1755315510_2903109_1377211158_d6572341cee457ae9d542b74f65473da.jpg', 'extension': 'jpg'}, 1377211160: {'path': 'temp/1755315510_2903109_1377211160_34e6ae20802d7c6b691245845e1e1e45.jpg', 'extension': 'jpg'}, 1377211161: {'path': 'temp/1755315510_2903109_1377211161_58b7e7be7bcc6488873fac661150b962.jpg', 'extension': 'jpg'}, 1377211162: {'path': 'temp/1755315510_2903109_1377211162_aafc2a450cae15139f4a7697c208aa4f.jpg', 'extension': 'jpg'}, 1377211167: {'path': 'temp/1755315510_2903109_1377211167_c6f3eb634b8b47a79a7d34fed7403cfb.jpg', 'extension': 'jpg'}, 1377211169: {'path': 'temp/1755315510_2903109_1377211169_bb82853f9c2953621f81f036ef05fac6.jpg', 'extension': 'jpg'}, 1377211187: {'path': 'temp/1755315510_2903109_1377211187_8c93eef35286140b7092585b7c4a9ead.jpg', 'extension': 'jpg'}, 1377211188: {'path': 'temp/1755315510_2903109_1377211188_a75826f8a8e330109ded8d1b10965f48.jpg', 'extension': 'jpg'}, 1377211189: {'path': 'temp/1755315510_2903109_1377211189_68a759d9c31bb03e437c20288ed698de.jpg', 'extension': 'jpg'}, 1377211190: {'path': 'temp/1755315510_2903109_1377211190_7326d8b1886f7260d38c18b86f5f1e27.jpg', 'extension': 'jpg'}, 1377211192: {'path': 'temp/1755315510_2903109_1377211192_655452d865d6549609e70e10d692d8ce.jpg', 'extension': 'jpg'}, 1377211197: {'path': 'temp/1755315510_2903109_1377211197_93d5ff41d85c2c9a12faef41b002a7b4.jpg', 'extension': 'jpg'}, 1377211118: {'path': 'temp/1755315510_2903109_1377211118_84aa99f79ea534aa8185f4d63b77e949.jpg', 'extension': 'jpg'}, 1377211122: {'path': 'temp/1755315510_2903109_1377211122_0e1fab5369de35c61f013b0dcd3f674f.jpg', 'extension': 'jpg'}, 1377211129: {'path': 'temp/1755315510_2903109_1377211129_5ad0b0965827bbe42e01d0a9c9848798.jpg', 'extension': 'jpg'}, 1377211132: {'path': 'temp/1755315510_2903109_1377211132_3ab99a79c74d70a001e5e9d6f874e3ac.jpg', 'extension': 'jpg'}, 1377211149: {'path': 'temp/1755315510_2903109_1377211149_eed873edc15e9b96060e1d6c0414ea88.jpg', 'extension': 'jpg'}, 1377211153: {'path': 'temp/1755315510_2903109_1377211153_bfdccf1d7a85793974c86e3cb40c9a2a.jpg', 'extension': 'jpg'}, 1377211200: {'path': 'temp/1755315510_2903109_1377211200_15cc6b989edcdf042a1502e2971bff95.jpg', 'extension': 'jpg'}, 1377211203: {'path': 'temp/1755315510_2903109_1377211203_6af3576be6b71d7550be79539ba6fc7f.jpg', 'extension': 'jpg'}, 1377211206: {'path': 'temp/1755315510_2903109_1377211206_107f71b5bf3805ce3adafcbfdb04a8c3.jpg', 'extension': 'jpg'}, 1377211208: {'path': 'temp/1755315510_2903109_1377211208_431a1d85b4c7d7097f85668381f9f463.jpg', 'extension': 'jpg'}, 1377211210: {'path': 'temp/1755315510_2903109_1377211210_aee2704e4f0fe565c171cca022f1b202.jpg', 'extension': 'jpg'}, 1377211431: {'path': 'temp/1755315510_2903109_1377211431_ddaedf8a62289ad3239fc26d3362cd16.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 = 26013291; (('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 = 26013291 group by h (('02', 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=26013291 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 (26013291) 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 (26013291) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15082025 26013291 Nombre de photos uploadées : 25 / 23040 (0%) 15082025 26013291 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 15082025 26013291 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1377211132, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/3ab99a79c74d70a001e5e9d6f874e3ac.jpg', 'username': None, 'uploaded_at': 1755218778, 'text': 'image_15082025_02_45_04_010148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1377211169, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/bb82853f9c2953621f81f036ef05fac6.jpg', 'username': None, 'uploaded_at': 1755218883, 'text': 'image_15082025_02_45_04_10148.jpg'}, {'photo_id': 1377211129, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/5ad0b0965827bbe42e01d0a9c9848798.jpg', 'username': None, 'uploaded_at': 1755218778, 'text': 'image_15082025_02_45_14_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1377211167, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/15/c6f3eb634b8b47a79a7d34fed7403cfb.jpg', 'username': None, 'uploaded_at': 1755218883, 'text': 'image_15082025_02_45_14_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012619495391845703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26013291, '2025-08-15' ) 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-15' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2122421,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2173137664794922 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= 2122421 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26009616, 'dashboard_result_id': 14066943, '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_P26009616_16-08-2025_05_34_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26009617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26009618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26009619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26009620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26009621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26009622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26009623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26009624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26009625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26009626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26009627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26009628, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26009667, 'dashboard_result_id': 14066944, '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_P26009667_16-08-2025_05_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26009670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26009671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26009672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26009673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26009674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26009675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26009676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26009677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26009679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26009680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26009681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26009682, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26010093, 'dashboard_result_id': 14066945, '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_P26010093_16-08-2025_05_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26010154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26010155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26010156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26010157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26010158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26010159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26010160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26010161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26010162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26010163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26010164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26010165, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26011192, 'dashboard_result_id': 14066946, '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_P26011192_16-08-2025_05_35_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26011231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26011232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26011233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26011234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26011235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26011236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26011237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26011238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26011239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26011240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26011241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26011242, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26011457, 'dashboard_result_id': 14066947, '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_P26011457_16-08-2025_05_35_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26011462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26011463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26011464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26011465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26011466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26011467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26011468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26011469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26011470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26011471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26011472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26011473, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26011726, 'dashboard_result_id': 14066948, '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_P26011726_16-08-2025_05_35_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26011786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26011787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26011788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26011789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26011790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26011791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26011792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26011793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26011794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26011795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26011796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26011797, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26012288, 'dashboard_result_id': 14066949, '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_P26012288_16-08-2025_05_36_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26012300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26012301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26012302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26012303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26012304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26012305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26012306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26012307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26012308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26012309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26012310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26012311, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26012804, 'dashboard_result_id': 14066950, '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_P26012804_16-08-2025_05_38_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26012822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26012823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26012824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26012825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26012826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26012827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26012828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26012829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26012830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26012831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26012832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26012833, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26013291, 'dashboard_result_id': 14066951, '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_P26013291_15-08-2025_06_06_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26013309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26013310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26013311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26013312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26013313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26013314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26013315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26013316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26013317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26013318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26013319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26013320, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26013988, 'dashboard_result_id': 14066952, '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_P26013988_15-08-2025_06_07_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26013998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26013999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26014000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26014001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26014002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26014004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26014005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26014006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26014007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26014008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26014009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26014010, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26014385, 'dashboard_result_id': 14066953, '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_P26014385_15-08-2025_06_16_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26014399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26014400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26014401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26014402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26014403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26014404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26014405, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26014406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26014407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26014408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26014409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26014410, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26014766, 'dashboard_result_id': 14066954, '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_P26014766_15-08-2025_06_16_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26014776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26014777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26014778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26014779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26014780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26014781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26014782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26014783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26014784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26014785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26014786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26014787, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26015128, 'dashboard_result_id': 14066955, '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_P26015128_16-08-2025_05_37_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26015133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26015134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26015135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26015136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26015137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26015138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26015139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26015140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26015141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26015142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26015143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26015144, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26015599, 'dashboard_result_id': 14066956, '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_P26015599_16-08-2025_05_37_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26015625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26015626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26015627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26015628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26015629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26015630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26015631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26015632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26015633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26015634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26015635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26015636, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26016100, 'dashboard_result_id': 14066957, '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_P26016100_16-08-2025_05_37_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26016138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26016139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26016140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26016141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26016142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26016143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26016144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26016145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26016146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26016147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26016148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26016149, 'pht': 3726}}"}, {'dashboat_entry_day': 2122421, 'dashboard_run_id': 2137675, 'mtr_portfolio_id': 26016640, 'dashboard_result_id': 14066958, '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_P26016640_16-08-2025_05_36_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26016683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26016684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26016685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26016686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26016687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26016688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26016689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26016690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26016691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26016692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26016693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26016694, '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 = 26009616 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': 3549219, 'mtr_portfolio_id': 26009616, 'created_at': datetime.datetime(2025, 8, 16, 5, 34, 33), 'result': '0.033195353221311966', 'result_long': None, 'result_double': None}] Qualite : 0.033195353221311966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26009616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26009616_16-08-2025_05_34_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26009616 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_P26009616_16-08-2025_05_34_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26009617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26009618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26009619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26009620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26009621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26009622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26009623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26009624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26009625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26009626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26009627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26009628, 'pht': 3726}}" where mtr_portfolio_id = 26009616 and dashboard_run_id = 2137675 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`=26009616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066943, 0.033195353221311966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26009616_16-08-2025_05_34_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26009617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26009618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26009619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26009620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26009621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26009622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26009623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26009624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26009625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26009626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26009627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26009628, '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 = 26009667 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': 3549220, 'mtr_portfolio_id': 26009667, 'created_at': datetime.datetime(2025, 8, 16, 5, 34, 29), 'result': '0.04419611748506136', 'result_long': None, 'result_double': None}] Qualite : 0.04419611748506136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26009667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26009667_16-08-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26009667 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_P26009667_16-08-2025_05_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26009670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26009671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26009672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26009673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26009674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26009675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26009676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26009677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26009679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26009680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26009681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26009682, 'pht': 3726}}" where mtr_portfolio_id = 26009667 and dashboard_run_id = 2137675 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`=26009667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066944, 0.04419611748506136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26009667_16-08-2025_05_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26009670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26009671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26009672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26009673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26009674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26009675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26009676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26009677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26009679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26009680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26009681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26009682, '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 = 26010093 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': 3549221, 'mtr_portfolio_id': 26010093, 'created_at': datetime.datetime(2025, 8, 16, 5, 34, 57), 'result': '0.06501914492538194', 'result_long': None, 'result_double': None}] Qualite : 0.06501914492538194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26010093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26010093_16-08-2025_05_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26010093 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_P26010093_16-08-2025_05_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26010154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26010155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26010156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26010157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26010158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26010159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26010160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26010161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26010162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26010163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26010164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26010165, 'pht': 3726}}" where mtr_portfolio_id = 26010093 and dashboard_run_id = 2137675 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`=26010093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066945, 0.06501914492538194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26010093_16-08-2025_05_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26010154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26010155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26010156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26010157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26010158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26010159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26010160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26010161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26010162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26010163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26010164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26010165, '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 = 26011192 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': 3549222, 'mtr_portfolio_id': 26011192, 'created_at': datetime.datetime(2025, 8, 16, 5, 35, 31), 'result': '0.04805472450881789', 'result_long': None, 'result_double': None}] Qualite : 0.04805472450881789 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26011192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26011192_16-08-2025_05_35_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26011192 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_P26011192_16-08-2025_05_35_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26011231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26011232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26011233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26011234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26011235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26011236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26011237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26011238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26011239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26011240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26011241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26011242, 'pht': 3726}}" where mtr_portfolio_id = 26011192 and dashboard_run_id = 2137675 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`=26011192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066946, 0.04805472450881789, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26011192_16-08-2025_05_35_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26011231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26011232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26011233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26011234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26011235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26011236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26011237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26011238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26011239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26011240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26011241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26011242, '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 = 26011457 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': 3549223, 'mtr_portfolio_id': 26011457, 'created_at': datetime.datetime(2025, 8, 16, 5, 35, 29), 'result': '0.059702491777704314', 'result_long': None, 'result_double': None}] Qualite : 0.059702491777704314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26011457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26011457_16-08-2025_05_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26011457 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_P26011457_16-08-2025_05_35_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26011462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26011463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26011464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26011465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26011466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26011467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26011468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26011469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26011470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26011471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26011472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26011473, 'pht': 3726}}" where mtr_portfolio_id = 26011457 and dashboard_run_id = 2137675 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`=26011457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066947, 0.059702491777704314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26011457_16-08-2025_05_35_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26011462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26011463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26011464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26011465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26011466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26011467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26011468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26011469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26011470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26011471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26011472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26011473, '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 = 26011726 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': 3549224, 'mtr_portfolio_id': 26011726, 'created_at': datetime.datetime(2025, 8, 16, 5, 35, 40), 'result': '0.05552775321499164', 'result_long': None, 'result_double': None}] Qualite : 0.05552775321499164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26011726 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26011726_16-08-2025_05_35_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26011726 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_P26011726_16-08-2025_05_35_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26011786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26011787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26011788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26011789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26011790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26011791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26011792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26011793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26011794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26011795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26011796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26011797, 'pht': 3726}}" where mtr_portfolio_id = 26011726 and dashboard_run_id = 2137675 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`=26011726 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066948, 0.05552775321499164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26011726_16-08-2025_05_35_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26011786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26011787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26011788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26011789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26011790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26011791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26011792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26011793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26011794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26011795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26011796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26011797, '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 = 26012288 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': 3549225, 'mtr_portfolio_id': 26012288, 'created_at': datetime.datetime(2025, 8, 16, 5, 36, 1), 'result': '0.04154221185442299', 'result_long': None, 'result_double': None}] Qualite : 0.04154221185442299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26012288 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26012288_16-08-2025_05_36_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26012288 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_P26012288_16-08-2025_05_36_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26012300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26012301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26012302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26012303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26012304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26012305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26012306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26012307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26012308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26012309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26012310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26012311, 'pht': 3726}}" where mtr_portfolio_id = 26012288 and dashboard_run_id = 2137675 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`=26012288 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066949, 0.04154221185442299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26012288_16-08-2025_05_36_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26012300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26012301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26012302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26012303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26012304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26012305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26012306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26012307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26012308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26012309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26012310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26012311, '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 = 26012804 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': 3549226, 'mtr_portfolio_id': 26012804, 'created_at': datetime.datetime(2025, 8, 16, 5, 37, 59), 'result': '0.041975529808386466', 'result_long': None, 'result_double': None}] Qualite : 0.041975529808386466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26012804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26012804_16-08-2025_05_38_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26012804 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_P26012804_16-08-2025_05_38_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26012822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26012823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26012824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26012825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26012826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26012827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26012828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26012829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26012830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26012831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26012832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26012833, 'pht': 3726}}" where mtr_portfolio_id = 26012804 and dashboard_run_id = 2137675 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`=26012804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066950, 0.041975529808386466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26012804_16-08-2025_05_38_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26012822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26012823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26012824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26012825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26012826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26012827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26012828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26012829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26012830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26012831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26012832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26012833, '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 = 26013291 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': 3549227, 'mtr_portfolio_id': 26013291, 'created_at': datetime.datetime(2025, 8, 16, 5, 38, 29), 'result': '0.039870167648543724', 'result_long': None, 'result_double': None}] Qualite : 0.039870167648543724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26013291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26013291_16-08-2025_05_38_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26013291 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_P26013291_16-08-2025_05_38_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26013309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26013310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26013311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26013312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26013313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26013314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26013315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26013316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26013317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26013318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26013319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26013320, 'pht': 3726}}" where mtr_portfolio_id = 26013291 and dashboard_run_id = 2137675 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`=26013291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066951, 0.039870167648543724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26013291_16-08-2025_05_38_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26013309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26013310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26013311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26013312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26013313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26013314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26013315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26013316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26013317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26013318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26013319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26013320, '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 = 26013988 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': 3546037, 'mtr_portfolio_id': 26013988, 'created_at': datetime.datetime(2025, 8, 15, 6, 7, 58), 'result': '0.05320519459734983', 'result_long': None, 'result_double': None}] Qualite : 0.05320519459734983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26013988 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26013988_15-08-2025_06_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26013988 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_P26013988_15-08-2025_06_07_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26013998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26013999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26014000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26014001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26014002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26014004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26014005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26014006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26014007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26014008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26014009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26014010, 'pht': 3726}}" where mtr_portfolio_id = 26013988 and dashboard_run_id = 2137675 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`=26013988 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066952, 0.05320519459734983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26013988_15-08-2025_06_07_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26013998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26013999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26014000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26014001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26014002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26014004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26014005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26014006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26014007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26014008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26014009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26014010, '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 = 26014385 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': 3546038, 'mtr_portfolio_id': 26014385, 'created_at': datetime.datetime(2025, 8, 15, 6, 16), 'result': '0.042812318372411194', 'result_long': None, 'result_double': None}] Qualite : 0.042812318372411194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26014385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26014385_15-08-2025_06_16_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26014385 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_P26014385_15-08-2025_06_16_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26014399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26014400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26014401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26014402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26014403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26014404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26014405, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26014406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26014407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26014408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26014409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26014410, 'pht': 3726}}" where mtr_portfolio_id = 26014385 and dashboard_run_id = 2137675 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`=26014385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066953, 0.042812318372411194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26014385_15-08-2025_06_16_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26014399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26014400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26014401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26014402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26014403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26014404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26014405, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26014406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26014407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26014408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26014409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26014410, '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 = 26014766 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': 3546039, 'mtr_portfolio_id': 26014766, 'created_at': datetime.datetime(2025, 8, 15, 6, 16, 27), 'result': '0.0464830301287842', 'result_long': None, 'result_double': None}] Qualite : 0.0464830301287842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26014766 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26014766_15-08-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26014766 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_P26014766_15-08-2025_06_16_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26014776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26014777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26014778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26014779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26014780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26014781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26014782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26014783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26014784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26014785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26014786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26014787, 'pht': 3726}}" where mtr_portfolio_id = 26014766 and dashboard_run_id = 2137675 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`=26014766 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066954, 0.0464830301287842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26014766_15-08-2025_06_16_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26014776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26014777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26014778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26014779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26014780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26014781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26014782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26014783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26014784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26014785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26014786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26014787, '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 = 26015128 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': 3549231, 'mtr_portfolio_id': 26015128, 'created_at': datetime.datetime(2025, 8, 16, 5, 37, 28), 'result': '0.04129868097512786', 'result_long': None, 'result_double': None}] Qualite : 0.04129868097512786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26015128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26015128_16-08-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26015128 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_P26015128_16-08-2025_05_37_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26015133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26015134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26015135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26015136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26015137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26015138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26015139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26015140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26015141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26015142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26015143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26015144, 'pht': 3726}}" where mtr_portfolio_id = 26015128 and dashboard_run_id = 2137675 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`=26015128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066955, 0.04129868097512786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26015128_16-08-2025_05_37_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26015133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26015134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26015135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26015136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26015137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26015138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26015139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26015140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26015141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26015142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26015143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26015144, '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 = 26015599 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': 3549232, 'mtr_portfolio_id': 26015599, 'created_at': datetime.datetime(2025, 8, 16, 5, 37, 33), 'result': '0.05795773797872131', 'result_long': None, 'result_double': None}] Qualite : 0.05795773797872131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26015599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26015599_16-08-2025_05_37_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26015599 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_P26015599_16-08-2025_05_37_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26015625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26015626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26015627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26015628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26015629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26015630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26015631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26015632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26015633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26015634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26015635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26015636, 'pht': 3726}}" where mtr_portfolio_id = 26015599 and dashboard_run_id = 2137675 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`=26015599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066956, 0.05795773797872131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26015599_16-08-2025_05_37_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26015625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26015626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26015627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26015628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26015629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26015630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26015631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26015632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26015633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26015634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26015635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26015636, '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 = 26016100 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': 3549233, 'mtr_portfolio_id': 26016100, 'created_at': datetime.datetime(2025, 8, 16, 5, 37), 'result': '0.04428600985209892', 'result_long': None, 'result_double': None}] Qualite : 0.04428600985209892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26016100 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26016100_16-08-2025_05_37_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26016100 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_P26016100_16-08-2025_05_37_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26016138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26016139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26016140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26016141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26016142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26016143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26016144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26016145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26016146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26016147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26016148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26016149, 'pht': 3726}}" where mtr_portfolio_id = 26016100 and dashboard_run_id = 2137675 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`=26016100 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066957, 0.04428600985209892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26016100_16-08-2025_05_37_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26016138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26016139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26016140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26016141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26016142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26016143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26016144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26016145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26016146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26016147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26016148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26016149, '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 = 26016640 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': 3549234, 'mtr_portfolio_id': 26016640, 'created_at': datetime.datetime(2025, 8, 16, 5, 36, 31), 'result': '0.029506718824724085', 'result_long': None, 'result_double': None}] Qualite : 0.029506718824724085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26016640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26016640_16-08-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26016640 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_P26016640_16-08-2025_05_36_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26016683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26016684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26016685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26016686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26016687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26016688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26016689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26016690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26016691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26016692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26016693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26016694, 'pht': 3726}}" where mtr_portfolio_id = 26016640 and dashboard_run_id = 2137675 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`=26016640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14066958, 0.029506718824724085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26016640_16-08-2025_05_36_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26016683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26016684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26016685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26016686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26016687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26016688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26016689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26016690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26016691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26016692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26016693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26016694, '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 (26009616,26009667,26010093,26011192,26011457,26011726,26012288,26012804,26013291,26013988,26014385,26014766,26015128,26015599,26016100,26016640) result : ((1377183099,), (1377184546,), (1377184550,), (1377184791,), (1377184820,), (1377184849,), (1377184879,), (1377185245,), (1377185214,), (1377185547,), (1377185701,), (1377185814,), (1377185930,), (1377187140,), (1377187184,), (1377187228,), (1377187274,), (1377187304,), (1377187685,), (1377187797,), (1377187888,), (1377188711,), (1377188767,), (1377188820,), (1377188876,), (1377188932,), (1377190070,), (1377190228,), (1377190359,), (1377190441,), (1377190471,), (1377190479,), (1377190495,), (1377190502,), (1377190532,), (1377190561,), (1377190593,), (1377191277,), (1377191317,), (1377191372,), (1377191420,), (1377191469,), (1377191527,), (1377191911,), (1377191983,), (1377192027,), (1377192057,), (1377192109,), (1377192242,), (1377192317,), (1377192322,), (1377192326,), (1377192330,), (1377192448,), (1377192451,), (1377192453,), (1377192636,), (1377192638,), (1377192640,), (1377192642,), (1377192701,), (1377192702,), (1377192703,), (1377192705,), (1377192709,), (1377192807,), (1377192810,), (1377192843,), (1377192861,), (1377192865,), (1377192869,), (1377192926,), (1377192923,), (1377192924,), (1377192949,), (1377192956,), (1377192973,), (1377192997,), (1377192999,), (1377193001,), (1377193005,), (1377193046,), (1377193050,), (1377193053,), (1377193126,), (1377193147,), (1377193163,), (1377193166,), (1377193171,), (1377193192,), (1377193195,), (1377193222,), (1377193224,), (1377193226,), (1377193229,), (1377193248,), (1377193250,), (1377193253,), (1377193257,), (1377193260,), (1377193263,), (1377193272,), (1377193359,), (1377193369,), (1377193414,), (1377193539,), (1377193571,), (1377199434,), (1377199461,), (1377199463,), (1377199477,), (1377199479,), (1377199482,), (1377199487,), (1377199491,), (1377199505,), (1377199514,), (1377199534,), (1377199538,), (1377199548,), (1377199564,), (1377199572,), (1377199575,), (1377199607,), (1377199612,), (1377199616,), (1377199620,), (1377199623,), (1377199634,), (1377199637,), (1377199641,), (1377199666,), (1377199669,), (1377199706,), (1377199708,), (1377199709,), (1377199712,), (1377199716,), (1377199730,), (1377199733,), (1377199735,), (1377199738,), (1377199740,), (1377199743,), (1377199752,), (1377199754,), (1377199757,), (1377199761,), (1377199764,), (1377199768,), (1377199779,), (1377199782,), (1377199789,), (1377199791,), (1377199793,), (1377199798,), (1377199801,), (1377199804,), (1377199808,), (1377199811,), (1377199815,), (1377199824,), (1377199826,), (1377199829,), (1377199835,), (1377199879,), (1377199856,), (1377199858,), (1377199860,), (1377199863,), (1377199869,), (1377199892,), (1377199895,), (1377199898,), (1377199902,), (1377199962,), (1377199964,), (1377199966,), (1377199969,), (1377199972,), (1377199974,), (1377199996,), (1377200022,), (1377200050,), (1377200078,), (1377200131,), (1377200442,), (1377200538,), (1377200571,), (1377200876,), (1377200880,), (1377200883,), (1377200887,), (1377201028,), (1377201059,), (1377201089,), (1377201122,), (1377201217,), (1377201218,), (1377201220,), (1377201224,), (1377201228,), (1377201238,), (1377201248,), (1377201250,), (1377201252,), (1377201310,), (1377201313,), (1377201331,), (1377201334,), (1377201336,), (1377201352,), (1377201353,), (1377201374,), (1377201376,), (1377201389,), (1377201440,), (1377201442,), (1377201444,), (1377201446,), (1377201450,), (1377201697,), (1377201728,), (1377201761,), (1377201794,), (1377201824,), (1377201856,), (1377201949,), (1377201978,), (1377202014,), (1377202302,), (1377202148,), (1377202184,), (1377202214,), (1377202243,), (1377202273,), (1377202605,), (1377202670,), (1377202725,), (1377202801,), (1377202859,), (1377202902,), (1377203221,), (1377203251,), (1377203281,), (1377203313,), (1377203346,), (1377203350,), (1377203358,), (1377203359,), (1377203361,), (1377203365,), (1377203369,), (1377203373,), (1377203399,), (1377203427,), (1377203552,), (1377203585,), (1377203617,), (1377203648,), (1377203678,), (1377203768,), (1377203808,), (1377203840,), (1377203870,), (1377203900,), (1377204161,), (1377204191,), (1377204532,), (1377204562,), (1377204594,), (1377205038,), (1377205095,), (1377205165,), (1377205221,), (1377205574,), (1377205602,), (1377205636,), (1377205702,), (1377206188,), (1377206220,), (1377206248,), (1377206314,), (1377206349,), (1377206585,), (1377206614,), (1377206642,), (1377206677,), (1377206716,), (1377207106,), (1377207160,), (1377207206,), (1377207236,), (1377207269,), (1377207300,), (1377207465,), (1377207521,), (1377207571,), (1377207606,), (1377207738,), (1377207788,), (1377207839,), (1377207878,), (1377207908,), (1377208001,), (1377208003,), (1377208006,), (1377208008,), (1377208011,), (1377208014,), (1377208162,), (1377208027,), (1377208034,), (1377208071,), (1377208102,), (1377208133,), (1377208347,), (1377208380,), (1377208504,), (1377208513,), (1377208518,), (1377208521,), (1377208524,), (1377208557,), (1377208587,), (1377208622,), (1377208653,), (1377208689,), (1377208720,), (1377208954,), (1377208987,), (1377209018,), (1377209273,), (1377209276,), (1377209279,), (1377209283,), (1377209510,), (1377209513,), (1377209537,), (1377209543,), (1377209565,), (1377209567,), (1377209570,), (1377209572,), (1377209574,), (1377209577,), (1377209603,), (1377209605,), (1377209608,), (1377209611,), (1377209614,), (1377209616,), (1377209624,), (1377209628,), (1377209634,), (1377209639,), (1377209642,), (1377209650,), (1377209651,), (1377209652,), (1377209654,), (1377209673,), (1377209677,), (1377209680,), (1377209682,), (1377209684,), (1377209686,), (1377209702,), (1377209704,), (1377209706,), (1377209708,), (1377209711,), (1377209716,), (1377209723,), (1377209726,), (1377209732,), (1377209738,), (1377209741,), (1377209743,), (1377209750,), (1377209751,), (1377209754,), (1377209756,), (1377209758,), (1377209759,), (1377209771,), (1377209774,), (1377209775,), (1377209777,), (1377209780,), (1377209783,), (1377209805,), (1377209808,), (1377209809,), (1377209811,), (1377209847,), (1377209840,), (1377209842,), (1377209866,), (1377209878,), (1377209880,), (1377209882,), (1377209884,), (1377209886,), (1377209903,), (1377209907,), (1377209912,), (1377209916,), (1377209918,), (1377209919,), (1377209923,), (1377209925,), (1377209946,), (1377209977,), (1377210020,), (1377210133,), (1377210162,), (1377210297,), (1377210329,), (1377210900,), (1377210931,), (1377210932,), (1377210934,), (1377210936,), (1377210938,), (1377210971,), (1377210973,), (1377210974,), (1377210980,), (1377211003,), (1377211005,), (1377211007,), (1377211010,), (1377211013,), (1377211017,), (1377211033,), (1377211035,), (1377211037,), (1377211039,), (1377211041,), (1377211043,), (1377211052,), (1377211054,), (1377211056,), (1377211059,), (1377211062,), (1377211065,), (1377211076,), (1377211077,), (1377211079,), (1377211082,), (1377211084,), (1377211087,), (1377211098,), (1377211101,), (1377211103,), (1377211104,), (1377211105,), (1377211111,), (1377211135,), (1377211136,), (1377211171,), (1377211173,), (1377211177,), (1377211181,), (1377211118,), (1377211122,), (1377211129,), (1377211132,), (1377211149,), (1377211153,), (1377211158,), (1377211160,), (1377211161,), (1377211162,), (1377211167,), (1377211169,), (1377211187,), (1377211188,), (1377211189,), (1377211190,), (1377211192,), (1377211197,), (1377211200,), (1377211203,), (1377211206,), (1377211208,), (1377211210,), (1377211431,), (1377214993,), (1377214957,), (1377215242,), (1377215250,), (1377215252,), (1377215254,), (1377215267,), (1377215288,), (1377215291,), (1377215311,), (1377215314,), (1377215318,), (1377215319,), (1377215322,), (1377215346,), (1377215349,), (1377215352,), (1377215388,), (1377215390,), (1377215392,), (1377215409,), (1377215411,), (1377215414,), (1377215417,), (1377215421,), (1377215423,), (1377215427,), (1377215435,), (1377215437,), (1377215439,), (1377215441,), (1377215448,), (1377215452,), (1377215463,), (1377215482,), (1377215479,), (1377215508,), (1377215515,), (1377215516,), (1377215517,), (1377215524,), (1377215527,), (1377215529,), (1377215532,), (1377215534,), (1377215545,), (1377215547,), (1377215549,), (1377215575,), (1377215576,), (1377215578,), (1377215605,), (1377215608,), (1377215611,), (1377215631,), (1377215634,), (1377215636,), (1377215652,), (1377215654,), (1377215657,), (1377215661,), (1377215672,), (1377215673,), (1377215674,), (1377215678,), (1377215681,), (1377215695,), (1377215699,), (1377215703,), (1377215706,), (1377215720,), (1377215728,), (1377215734,), (1377215737,), (1377215746,), (1377215747,), (1377215749,), (1377215752,), (1377215769,), (1377215770,), (1377215771,), (1377215787,), (1377215789,), (1377215791,), (1377215793,), (1377215796,), (1377215799,), (1377215806,), (1377215808,), (1377215810,), (1377215812,), (1377215814,), (1377215817,), (1377215842,), (1377215838,), (1377215840,), (1377215875,), (1377215878,), (1377215881,), (1377215885,), (1377215888,), (1377215898,), (1377215902,), (1377215905,), (1377215908,), (1377215911,), (1377215914,), (1377215918,), (1377215919,), (1377215920,), (1377215924,), (1377215927,), (1377215931,), (1377215934,), (1377215936,), (1377215938,), (1377215941,), (1377215943,), (1377215945,), (1377215949,), (1377215961,), (1377215963,), (1377215969,), (1377215972,), (1377215976,), (1377215986,), (1377215987,), (1377215988,), (1377215991,), (1377215994,), (1377215998,), (1377216008,), (1377216012,), (1377216023,), (1377216031,), (1377216046,), (1377216048,), (1377216050,), (1377216053,), (1377216066,), (1377216068,), (1377216070,), (1377216102,), (1377216104,), (1377216106,), (1377216111,), (1377216130,), (1377216132,), (1377216134,), (1377216138,), (1377216141,), (1377216152,), (1377216155,), (1377216159,), (1377216162,), (1377216164,), (1377216166,), (1377216171,), (1377216178,), (1377216180,), (1377216182,), (1377216185,), (1377216188,), (1377216203,), (1377216206,), (1377216210,), (1377216214,), (1377216218,), (1377216237,), (1377216231,), (1377216234,), (1377216235,), (1377216258,), (1377216264,), (1377216277,), (1377216280,), (1377216283,), (1377216287,), (1377216301,), (1377216303,), (1377216305,), (1377216308,), (1377216310,), (1377216312,), (1377216321,), (1377216322,), (1377216329,), (1377216335,), (1377216338,), (1377216355,), (1377216360,), (1377216362,), (1377216366,), (1377216371,), (1377216386,), (1377216389,), (1377216391,), (1377216394,), (1377216397,), (1377216400,), (1377216411,), (1377216414,), (1377216418,), (1377216421,), (1377216424,), (1377216426,), (1377216431,), (1377216434,), (1377216437,), (1377216439,), (1377216444,), (1377216446,), (1377216464,), (1377216466,), (1377216468,), (1377216471,), (1377216473,), (1377216476,), (1377216480,), (1377216483,), (1377216486,), (1377216491,), (1377216495,), (1377216510,), (1377216511,), (1377216512,), (1377216515,), (1377216534,), (1377216536,), (1377216540,), (1377216543,), (1377216547,), (1377216567,), (1377216569,), (1377216573,), (1377216576,), (1377216579,), (1377216583,), (1377216734,), (1377216638,), (1377216674,), (1377216708,), (1377216999,), (1377217031,), (1377217059,), (1377217247,), (1377217254,), (1377217256,), (1377217415,), (1377217450,), (1377217478,), (1377217499,), (1377217511,), (1377217548,), (1377217556,), (1377217558,), (1377217561,), (1377217564,), (1377217581,), (1377217589,), (1377217590,), (1377217591,), (1377217594,), (1377217614,), (1377217621,), (1377217632,), (1377217661,), (1377217691,), (1377217964,), (1377217993,), (1377218053,), (1377218106,), (1377218158,), (1377218458,), (1377218494,), (1377218524,), (1377219018,), (1377219054,), (1377219081,), (1377219114,), (1377219143,), (1377219394,), (1377219428,), (1377219455,), (1377219485,), (1377219491,), (1377219522,), (1377219630,), (1377219662,), (1377219693,), (1377219724,), (1377219805,), (1377219806,), (1377219810,), (1377219812,), (1377219816,), (1377219817,), (1377219821,), (1377219822,), (1377219824,), (1377219825,), (1377219826,), (1377219827,), (1377219837,), (1377219839,), (1377219842,), (1377219844,), (1377219847,), (1377219850,), (1377219861,), (1377219864,), (1377219876,), (1377219877,), (1377219880,), (1377219882,), (1377219884,), (1377219887,), (1377219912,), (1377219901,), (1377219908,), (1377219909,), (1377219932,), (1377219941,), (1377219944,), (1377219947,), (1377219968,), (1377219976,), (1377219978,), (1377219981,), (1377219983,), (1377219997,), (1377220004,), (1377220006,), (1377220007,), (1377220009,), (1377220033,), (1377220040,), (1377220041,), (1377220044,), (1377220047,), (1377220072,), (1377220083,), (1377220086,), (1377220088,), (1377220091,), (1377220093,), (1377220107,), (1377220115,), (1377220116,), (1377220117,), (1377220131,), (1377220133,), (1377220135,), (1377220137,), (1377220139,), (1377220140,), (1377220141,), (1377220142,), (1377220146,), (1377220148,), (1377220161,), (1377220165,), (1377220167,), (1377220170,), (1377220172,), (1377220181,), (1377220192,), (1377220194,), (1377220209,), (1377220218,), (1377220220,), (1377220222,), (1377220242,), (1377220250,), (1377220252,), (1377220255,), (1377220259,), (1377220273,), (1377220283,), (1377220287,), (1377220291,), (1377220295,), (1377220308,), (1377220317,), (1377220320,), (1377220348,), (1377220357,), (1377220358,), (1377220360,), (1377220364,), (1377220366,), (1377220413,), (1377220392,), (1377220401,), (1377220403,), (1377220405,), (1377220409,), (1377220431,), (1377220440,), (1377220442,), (1377220444,), (1377220470,), (1377220473,), (1377220477,), (1377220480,), (1377220484,), (1377220487,), (1377220490,), (1377220491,), (1377220493,), (1377220505,), (1377220509,), (1377220513,), (1377220521,), (1377220529,), (1377220532,), (1377220536,), (1377220540,), (1377220551,), (1377220559,), (1377220560,), (1377220562,), (1377220565,), (1377220567,), (1377220604,), (1377220623,), (1377220634,), (1377220648,), (1377220663,), (1377220671,), (1377220672,), (1377220674,), (1377220677,), (1377220693,), (1377220700,), (1377220701,), (1377220703,), (1377220706,), (1377220726,), (1377220739,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15082025': {'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([26013291]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118] map_info['map_portfolio_photo'] : {26013291: [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118]} final : True mtd_id 4302 list_pids : [1377214993, 1377211431, 1377211210, 1377211208, 1377211206, 1377211203, 1377211200, 1377211197, 1377211192, 1377211190, 1377211189, 1377211188, 1377211187, 1377211169, 1377211167, 1377211162, 1377211161, 1377211160, 1377211158, 1377211153, 1377211149, 1377211132, 1377211129, 1377211122, 1377211118] Looping around the photos to save general results len do output : 1 /26013291Didn'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, '3549227') ('4302', '26013291', '1377214993', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211431', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211210', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211208', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211206', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211203', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211200', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211197', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211192', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211190', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211189', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211188', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211187', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211169', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211167', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211162', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211161', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211160', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211158', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211153', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211149', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211132', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211129', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211122', None, None, None, None, None, '3549227') ('4302', None, None, None, None, None, None, None, '3549227') ('4302', '26013291', '1377211118', None, None, None, None, None, '3549227') 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, '26013291', 'None', None, None, None, None, '3549227'), ('4302', '26013291', '1377214993', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211431', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211210', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211208', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211206', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211203', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211200', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211197', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211192', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211190', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211189', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211188', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211187', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211169', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211167', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211162', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211161', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211160', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211158', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211153', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211149', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211132', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211129', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211122', None, None, None, None, None, '3549227'), ('4302', '26013291', '1377211118', None, None, None, None, None, '3549227')] time used for this insertion : 0.016510009765625 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2642099857330322 time spend to save output : 0.01679062843322754 total time spend for step 5 : 3.2810006141662598 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 (3549227) 2.63user 2.47system 0:17.66elapsed 28%CPU (0avgtext+0avgdata 163992maxresident)k 168inputs+17584outputs (5major+77345minor)pagefaults 0swaps