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 : 246015 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 (2981645) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2981645) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433890 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2981645'] with mtr_portfolio_ids : ['23433890'] and first list_photo_ids : [] new path : /proc/246015/ Name: python3 Umask: 0002 State: R (running) Tgid: 246015 Ngid: 0 Pid: 246015 PPid: 246014 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 246015 NSpid: 246015 NSpgid: 245148 NSsid: 245148 VmPeak: 1107316 kB VmSize: 1107316 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98556 kB VmRSS: 98556 kB RssAnon: 60248 kB RssFile: 38308 kB RssShmem: 0 kB VmData: 866064 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 46 nonvoluntary_ctxt_switches: 144 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '246015', 'Ngid': '0', 'Pid': '246015', 'PPid': '246014', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '246015', 'NSpid': '246015', 'NSpgid': '245148', 'NSsid': '245148', 'VmPeak': '1107316 kB', 'VmSize': '1107316 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98556 kB', 'VmRSS': '98556 kB', 'RssAnon': '60248 kB', 'RssFile': '38308 kB', 'RssShmem': '0 kB', 'VmData': '866064 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '46', 'nonvoluntary_ctxt_switches': '144'} ('datou_batch_current', '246015', '1107316', '0', '1107316', '866064', '98556', b'', 'marlene', '2981645') 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 (23433890) 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 (2981645 ) ) 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 (23433890) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1361580318, 'portfolio_id': 23433890}, {'photo_id': 1361580314, 'portfolio_id': 23433890}, {'photo_id': 1361580305, 'portfolio_id': 23433890}, {'photo_id': 1361580301, 'portfolio_id': 23433890}, {'photo_id': 1361580282, 'portfolio_id': 23433890}, {'photo_id': 1361580280, 'portfolio_id': 23433890}, {'photo_id': 1361580278, 'portfolio_id': 23433890}, {'photo_id': 1361580277, 'portfolio_id': 23433890}, {'photo_id': 1361580276, 'portfolio_id': 23433890}, {'photo_id': 1361580275, 'portfolio_id': 23433890}, {'photo_id': 1361580252, 'portfolio_id': 23433890}, {'photo_id': 1361580251, 'portfolio_id': 23433890}, {'photo_id': 1361580247, 'portfolio_id': 23433890}, {'photo_id': 1361580244, 'portfolio_id': 23433890}, {'photo_id': 1361580242, 'portfolio_id': 23433890}, {'photo_id': 1361580239, 'portfolio_id': 23433890}, {'photo_id': 1361580223, 'portfolio_id': 23433890}, {'photo_id': 1361580221, 'portfolio_id': 23433890}, {'photo_id': 1361580215, 'portfolio_id': 23433890}, {'photo_id': 1361580211, 'portfolio_id': 23433890}, {'photo_id': 1361580194, 'portfolio_id': 23433890}, {'photo_id': 1361580192, 'portfolio_id': 23433890}, {'photo_id': 1361580186, 'portfolio_id': 23433890}, {'photo_id': 1361580178, 'portfolio_id': 23433890}, {'photo_id': 1361580176, 'portfolio_id': 23433890}, {'photo_id': 1361580154, 'portfolio_id': 23433890}, {'photo_id': 1361580153, 'portfolio_id': 23433890}, {'photo_id': 1361580152, 'portfolio_id': 23433890}, {'photo_id': 1361580151, 'portfolio_id': 23433890}, {'photo_id': 1361580150, 'portfolio_id': 23433890}, {'photo_id': 1361580149, 'portfolio_id': 23433890}, {'photo_id': 1361580135, 'portfolio_id': 23433890}, {'photo_id': 1361580133, 'portfolio_id': 23433890}, {'photo_id': 1361580131, 'portfolio_id': 23433890}] map_portfolio_id_photo_id: {23433890: [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239, 1361580223, 1361580221, 1361580215, 1361580211, 1361580194, 1361580192, 1361580186, 1361580178, 1361580176, 1361580154, 1361580153, 1361580152, 1361580151, 1361580150, 1361580149, 1361580135, 1361580133, 1361580131]} ##### 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.014881134033203125 #### 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 Thu May 29 03:32:28 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 (23433890) 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 : 23433890 get user id for portfolio 23433890 get sub ptf for main ptf 23433890, type 3726 and hashtags ['kraft', 'papier', 'autre_refus', 'environnement', 'Carton_gris', 'metal', 'plastique', 'flou', 'cartonnette', 'mal_croppe', 'Carton_brun', 'Teint_Dans_La_Masse'] 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`=23433890 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','autre_refus','environnement','Carton_gris','metal','plastique','flou','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) 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`=23433890 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','autre_refus','environnement','Carton_gris','metal','plastique','flou','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 23433890, 'sub_port_id': 23433896, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636273, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'mal_croppe': {'main_port_id': 23433890, 'sub_port_id': 23433897, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636274, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'cartonnette': {'main_port_id': 23433890, 'sub_port_id': 23433898, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636275, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'autre_refus': {'main_port_id': 23433890, 'sub_port_id': 23433899, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636276, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'flou': {'main_port_id': 23433890, 'sub_port_id': 23433900, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636277, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'environnement': {'main_port_id': 23433890, 'sub_port_id': 23433901, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636278, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'Carton_gris': {'main_port_id': 23433890, 'sub_port_id': 23433902, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636279, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'metal': {'main_port_id': 23433890, 'sub_port_id': 23433903, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636280, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'plastique': {'main_port_id': 23433890, 'sub_port_id': 23433904, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636281, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'kraft': {'main_port_id': 23433890, 'sub_port_id': 23433905, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636282, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'Carton_brun': {'main_port_id': 23433890, 'sub_port_id': 23433906, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636283, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}, 'papier': {'main_port_id': 23433890, 'sub_port_id': 23433907, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636284, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 26, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433896 , 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=23433890 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 (23433896) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433897 , 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=23433890 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 (23433897) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433898 , 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=23433890 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 (23433898) result : ((1361580309,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433899 , 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=23433890 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 (23433899) result : ((1361580304,), (1361580306,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433900 , 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=23433890 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 (23433900) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433901 , 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=23433890 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 (23433901) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433902 , 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=23433890 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 (23433902) result : ((1361580308,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433903 , 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=23433890 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 (23433903) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433904 , 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=23433890 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 (23433904) result : ((1361580315,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433905 , 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=23433890 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 (23433905) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433906 , 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=23433890 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 (23433906) result : ((1361580311,), (1361580312,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23433907 , 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=23433890 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 (23433907) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23433890) result : ((1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23433890 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','autre_refus','environnement','Carton_gris','metal','plastique','flou','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) 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`=23433890 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','autre_refus','environnement','Carton_gris','metal','plastique','flou','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 23433890, 'sub_port_id': 23433908, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636285, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'mal_croppe': {'main_port_id': 23433890, 'sub_port_id': 23433909, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636286, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'cartonnette': {'main_port_id': 23433890, 'sub_port_id': 23433910, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636287, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'autre_refus': {'main_port_id': 23433890, 'sub_port_id': 23433911, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636288, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'flou': {'main_port_id': 23433890, 'sub_port_id': 23433912, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636289, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'environnement': {'main_port_id': 23433890, 'sub_port_id': 23433913, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636290, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'Carton_gris': {'main_port_id': 23433890, 'sub_port_id': 23433914, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636291, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'metal': {'main_port_id': 23433890, 'sub_port_id': 23433915, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636292, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'plastique': {'main_port_id': 23433890, 'sub_port_id': 23433916, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636293, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'kraft': {'main_port_id': 23433890, 'sub_port_id': 23433917, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636294, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'Carton_brun': {'main_port_id': 23433890, 'sub_port_id': 23433918, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636295, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}, 'papier': {'main_port_id': 23433890, 'sub_port_id': 23433919, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15636296, 'last_updated_at': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433908,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433896 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433909,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433897 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433910,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433898 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433911,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433899 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433912,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433900 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433913,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433901 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433914,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433902 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433915,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433903 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433916,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433904 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433917,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433905 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433918,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23433919,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23433907 lien utilise dans velours : https://www.fotonower.com/velours/23433908,23433909,23433910,23433911,23433912,23433913,23433914,23433915,23433916,23433917,23433918,23433919?tags=Teint_Dans_La_Masse,mal_croppe,cartonnette,autre_refus,flou,environnement,Carton_gris,metal,plastique,kraft,Carton_brun,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23433890]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239] map_info['map_portfolio_photo'] : {23433890: [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239, 1361580223, 1361580221, 1361580215, 1361580211, 1361580194, 1361580192, 1361580186, 1361580178, 1361580176, 1361580154, 1361580153, 1361580152, 1361580151, 1361580150, 1361580149, 1361580135, 1361580133, 1361580131]} final : False mtd_id 4302 list_pids : [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239] Looping around the photos to save general results len do output : 1 /23433890. 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, '2981645') ('4302', '23433890', '1361580318', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580314', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580305', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580301', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580282', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580280', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580278', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580277', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580276', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580275', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580252', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580251', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580247', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580244', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580242', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580239', None, None, None, None, None, '2981645') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23433890', "{'Teint_Dans_La_Masse': 23433896, 'mal_croppe': 23433897, 'cartonnette': 23433898, 'autre_refus': 23433899, 'flou': 23433900, 'environnement': 23433901, 'Carton_gris': 23433902, 'metal': 23433903, 'plastique': 23433904, 'kraft': 23433905, 'Carton_brun': 23433906, 'papier': 23433907}", None, None, None, None, '2981645'), ('4302', '23433890', '1361580318', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580314', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580305', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580301', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580282', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580280', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580278', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580277', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580276', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580275', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580252', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580251', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580247', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580244', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580242', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580239', None, None, None, None, None, '2981645')] time used for this insertion : 0.017071962356567383 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4473943710327148 time spend to save output : 0.0174868106842041 total time spend for step 1 : 1.464881181716919 step2:final Thu May 29 03:32:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23433890) 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 23433890 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361580135,1361580133,1361580131,1361580154,1361580153,1361580152,1361580151,1361580150,1361580149,1361580194,1361580192,1361580186,1361580178,1361580176,1361580223,1361580221,1361580215,1361580211,1361580252,1361580251,1361580247,1361580244,1361580242,1361580239,1361580282,1361580280,1361580278,1361580277,1361580276,1361580275,1361580318,1361580314,1361580305,1361580301); 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([23433890]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} new output for save of step final : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239] map_info['map_portfolio_photo'] : {23433890: [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239, 1361580223, 1361580221, 1361580215, 1361580211, 1361580194, 1361580192, 1361580186, 1361580178, 1361580176, 1361580154, 1361580153, 1361580152, 1361580151, 1361580150, 1361580149, 1361580135, 1361580133, 1361580131]} final : False mtd_id 4302 list_pids : [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239] Looping around the photos to save general results len do output : 16 /1361580318.Didn't retrieve data . /1361580314.Didn't retrieve data . /1361580305.Didn't retrieve data . /1361580301.Didn't retrieve data . /1361580282.Didn't retrieve data . /1361580280.Didn't retrieve data . /1361580278.Didn't retrieve data . /1361580277.Didn't retrieve data . /1361580276.Didn't retrieve data . /1361580275.Didn't retrieve data . /1361580252.Didn't retrieve data . /1361580251.Didn't retrieve data . /1361580247.Didn't retrieve data . /1361580244.Didn't retrieve data . /1361580242.Didn't retrieve data . /1361580239.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, '2981645') ('4302', '23433890', '1361580318', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580314', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580305', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580301', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580282', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580280', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580278', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580277', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580276', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580275', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580252', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580251', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580247', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580244', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580242', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580239', None, None, None, None, None, '2981645') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '23433890', '1361580318', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580314', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580305', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580301', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580282', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580280', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580278', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580277', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580276', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580275', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580252', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580251', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580247', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580244', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580242', '0.06216488473687306', None, None, None, None, '2981645'), ('4302', '23433890', '1361580239', '0.06216488473687306', None, None, None, None, '2981645')] time used for this insertion : 0.017064332962036133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06794142723083496 time spend to save output : 0.01810455322265625 total time spend for step 2 : 0.08604598045349121 step3:velours_tree Thu May 29 03:32: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 complete output_args for input 0 : {23433890: [{'Teint_Dans_La_Masse': 23433896, 'mal_croppe': 23433897, 'cartonnette': 23433898, 'autre_refus': 23433899, 'flou': 23433900, 'environnement': 23433901, 'Carton_gris': 23433902, 'metal': 23433903, 'plastique': 23433904, 'kraft': 23433905, 'Carton_brun': 23433906, 'papier': 23433907}]} input_args_next_step : {23433890: ()} output_args : {23433890: [{'Teint_Dans_La_Masse': 23433896, 'mal_croppe': 23433897, 'cartonnette': 23433898, 'autre_refus': 23433899, 'flou': 23433900, 'environnement': 23433901, 'Carton_gris': 23433902, 'metal': 23433903, 'plastique': 23433904, 'kraft': 23433905, 'Carton_brun': 23433906, 'papier': 23433907}]} args : 23433890 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 23433896, 'mal_croppe': 23433897, 'cartonnette': 23433898, 'autre_refus': 23433899, 'flou': 23433900, 'environnement': 23433901, 'Carton_gris': 23433902, 'metal': 23433903, 'plastique': 23433904, 'kraft': 23433905, 'Carton_brun': 23433906, 'papier': 23433907},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23433890) 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([23433890]) 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.44968461990356445 time spend to save output : 5.555152893066406e-05 total time spend for step 3 : 0.4497401714324951 step4:send_mail_cod Thu May 29 03:32: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 : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} input_args_next_step : {1361580318: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580318 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580314 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580305 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580301 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580282 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580280 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580278 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580277 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580276 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580275 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580252 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580251 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580247 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580244 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580242 depend.output_id : 0 input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ()} output_args : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',)} args : 1361580239 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 : {23433890: [{'Teint_Dans_La_Masse': 23433896, 'mal_croppe': 23433897, 'cartonnette': 23433898, 'autre_refus': 23433899, 'flou': 23433900, 'environnement': 23433901, 'Carton_gris': 23433902, 'metal': 23433903, 'plastique': 23433904, 'kraft': 23433905, 'Carton_brun': 23433906, 'papier': 23433907}]} input_args_next_step : {1361580318: ('0.06216488473687306',), 1361580314: ('0.06216488473687306',), 1361580305: ('0.06216488473687306',), 1361580301: ('0.06216488473687306',), 1361580282: ('0.06216488473687306',), 1361580280: ('0.06216488473687306',), 1361580278: ('0.06216488473687306',), 1361580277: ('0.06216488473687306',), 1361580276: ('0.06216488473687306',), 1361580275: ('0.06216488473687306',), 1361580252: ('0.06216488473687306',), 1361580251: ('0.06216488473687306',), 1361580247: ('0.06216488473687306',), 1361580244: ('0.06216488473687306',), 1361580242: ('0.06216488473687306',), 1361580239: ('0.06216488473687306',), 23433890: ()} output_args : {23433890: [{'Teint_Dans_La_Masse': 23433896, 'mal_croppe': 23433897, 'cartonnette': 23433898, 'autre_refus': 23433899, 'flou': 23433900, 'environnement': 23433901, 'Carton_gris': 23433902, 'metal': 23433903, 'plastique': 23433904, 'kraft': 23433905, 'Carton_brun': 23433906, 'papier': 23433907}]} args : 23433890 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 :17, first value : ('0.06216488473687306',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23433890) 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 (1361580318,1361580314,1361580305,1361580301,1361580282,1361580280,1361580278,1361580277,1361580276,1361580275,1361580252,1361580251,1361580247,1361580244,1361580242,1361580239) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361580239 begin to download photo : 1361580251 begin to download photo : 1361580277 begin to download photo : 1361580301 download finish for photo 1361580251 begin to download photo : 1361580252 download finish for photo 1361580301 begin to download photo : 1361580305 download finish for photo 1361580277 begin to download photo : 1361580278 download finish for photo 1361580239 begin to download photo : 1361580242 download finish for photo 1361580252 begin to download photo : 1361580275 download finish for photo 1361580305 begin to download photo : 1361580314 download finish for photo 1361580278 begin to download photo : 1361580280 download finish for photo 1361580242 begin to download photo : 1361580244 download finish for photo 1361580275 begin to download photo : 1361580276 download finish for photo 1361580314 begin to download photo : 1361580318 download finish for photo 1361580280 begin to download photo : 1361580282 download finish for photo 1361580244 begin to download photo : 1361580247 download finish for photo 1361580276 download finish for photo 1361580318 download finish for photo 1361580282 download finish for photo 1361580247 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette234338971748482351/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P23433890_29-05-2025_03_32_31.pdf 23433897 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=23433897 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234338971748482351 23433898 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=23433898 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361580309: '1748482287_2777507_1361580150_194629e46b2093d80d58b3ae6a74f579_rle_crop_3815009199_0.png'} change filename to text .imagette234338981748482351/ imagette234338981748482351/1748482287_2777507_1361580150_194629e46b2093d80d58b3ae6a74f579_rle_crop_3815009199_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/82c269bd6a4f906d03bc1ff53181ad4b_42891699.png imagette234338981748482351 23433899 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=23433899 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361580304: '1748482287_2777507_1361580194_c02dd4dcf713afcce1c28322d0a04925_rle_crop_3815009148_0.png', 1361580306: '1748482287_2777507_1361580149_283a742c122655cc554782c138351481_rle_crop_3815009212_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/81dbed3deffba7830e2f8adda5aa1738_90381077.png change filename to text .imagette234338991748482351/ imagette234338991748482351/1748482287_2777507_1361580149_283a742c122655cc554782c138351481_rle_crop_3815009212_0.png.png imagette234338991748482351/1748482287_2777507_1361580194_c02dd4dcf713afcce1c28322d0a04925_rle_crop_3815009148_0.png.png imagette234339001748482351/ imagette234339031748482351/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/1cf30a5dc1228ea093f5fd9d6b557a69_3324149.png imagette234338991748482351 23433900 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=23433900 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234339001748482351 23433903 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=23433903 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234339031748482351 23433904 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=23433904 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361580315: '1748482287_2777507_1361580194_c02dd4dcf713afcce1c28322d0a04925_rle_crop_3815009141_0.png'} change filename to text .imagette234339041748482351/ imagette234339041748482351/1748482287_2777507_1361580194_c02dd4dcf713afcce1c28322d0a04925_rle_crop_3815009141_0.png.png imagette234339051748482351/ imagette234338961748482351/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/b47080a25e448f368415969b746613e9_49808348.png imagette234339041748482351 23433905 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=23433905 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234339051748482351 23433896 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=23433896 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234338961748482351 23433902 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=23433902 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361580308: '1748482287_2777507_1361580153_7ad531490404c9a1a5cacd5807f00036_rle_crop_3815009159_0.png'} change filename to text .imagette234339021748482351/ imagette234339021748482351/1748482287_2777507_1361580153_7ad531490404c9a1a5cacd5807f00036_rle_crop_3815009159_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/6c8c3cea46a5e105800597cc7e475e4f_15613742.png imagette234339021748482351 23433906 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=23433906 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361580311: '1748482287_2777507_1361580194_c02dd4dcf713afcce1c28322d0a04925_rle_crop_3815009146_0.png', 1361580312: '1748482287_2777507_1361580150_194629e46b2093d80d58b3ae6a74f579_rle_crop_3815009200_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/3fdd5739e61d8432079bad420009255f_50913412.png change filename to text .imagette234339061748482351/ imagette234339061748482351/1748482287_2777507_1361580150_194629e46b2093d80d58b3ae6a74f579_rle_crop_3815009200_0.png.png imagette234339061748482351/1748482287_2777507_1361580194_c02dd4dcf713afcce1c28322d0a04925_rle_crop_3815009146_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/4097e6f1e616ecd2a702be7b549b6eb5_42870061.png imagette234339061748482351 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23433890 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23433908,23433909,23433910,23433911,23433912,23433913,23433914,23433915,23433916,23433917,23433918,23433919?tags=Teint_Dans_La_Masse,mal_croppe,cartonnette,autre_refus,flou,environnement,Carton_gris,metal,plastique,kraft,Carton_brun,papier your option no_mail is active, we will not send the real mail to your client args[1361580318] : ('0.06216488473687306',) no score found for photo 1361580318 We are sending mail with results at report@fotonower.com args[1361580314] : ('0.06216488473687306',) no score found for photo 1361580314 We are sending mail with results at report@fotonower.com args[1361580305] : ('0.06216488473687306',) no score found for photo 1361580305 We are sending mail with results at report@fotonower.com args[1361580301] : ('0.06216488473687306',) no score found for photo 1361580301 We are sending mail with results at report@fotonower.com args[1361580282] : ('0.06216488473687306',) no score found for photo 1361580282 We are sending mail with results at report@fotonower.com args[1361580280] : ('0.06216488473687306',) no score found for photo 1361580280 We are sending mail with results at report@fotonower.com args[1361580278] : ('0.06216488473687306',) no score found for photo 1361580278 We are sending mail with results at report@fotonower.com args[1361580277] : ('0.06216488473687306',) no score found for photo 1361580277 We are sending mail with results at report@fotonower.com args[1361580276] : ('0.06216488473687306',) no score found for photo 1361580276 We are sending mail with results at report@fotonower.com args[1361580275] : ('0.06216488473687306',) no score found for photo 1361580275 We are sending mail with results at report@fotonower.com args[1361580252] : ('0.06216488473687306',) no score found for photo 1361580252 We are sending mail with results at report@fotonower.com args[1361580251] : ('0.06216488473687306',) no score found for photo 1361580251 We are sending mail with results at report@fotonower.com args[1361580247] : ('0.06216488473687306',) no score found for photo 1361580247 We are sending mail with results at report@fotonower.com args[1361580244] : ('0.06216488473687306',) no score found for photo 1361580244 We are sending mail with results at report@fotonower.com args[1361580242] : ('0.06216488473687306',) no score found for photo 1361580242 We are sending mail with results at report@fotonower.com args[1361580239] : ('0.06216488473687306',) no score found for photo 1361580239 We are sending mail with results at report@fotonower.com refus_total : 0.06216488473687306 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=23433890 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_P23433890_29-05-2025_03_32_31.pdf results_Auto_P23433890_29-05-2025_03_32_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23433890_29-05-2025_03_32_31.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','23433890','results_Auto_P23433890_29-05-2025_03_32_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23433890_29-05-2025_03_32_31.pdf','pdf','','0.15','0.06216488473687306') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23433890]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239] map_info['map_portfolio_photo'] : {23433890: [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239, 1361580223, 1361580221, 1361580215, 1361580211, 1361580194, 1361580192, 1361580186, 1361580178, 1361580176, 1361580154, 1361580153, 1361580152, 1361580151, 1361580150, 1361580149, 1361580135, 1361580133, 1361580131]} final : False mtd_id 4302 list_pids : [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239] 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, '2981645') ('4302', '23433890', '1361580318', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580314', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580305', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580301', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580282', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580280', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580278', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580277', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580276', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580275', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580252', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580251', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580247', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580244', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580242', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580239', None, None, None, None, None, '2981645') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '23433890', '1361580318', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580314', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580305', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580301', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580282', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580280', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580278', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580277', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580276', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580275', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580252', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580251', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580247', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580244', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580242', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580239', None, None, None, None, None, '2981645')] time used for this insertion : 0.01737833023071289 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.927277088165283 time spend to save output : 0.01769423484802246 total time spend for step 4 : 2.9449713230133057 step5:split_time_score Thu May 29 03:32:33 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 : ['23433890'] 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 : [('23433890',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23433890) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361580251: {'path': 'temp/1748482350_246015_1361580251_b04c47c1876247fada53f0cc1403e29c.jpg', 'extension': 'jpg'}, 1361580252: {'path': 'temp/1748482350_246015_1361580252_903b4f5ab30a5e0f251ca9655cef29bb.jpg', 'extension': 'jpg'}, 1361580275: {'path': 'temp/1748482350_246015_1361580275_f0a68b37b247db3e6df397ac9ffdc342.jpg', 'extension': 'jpg'}, 1361580276: {'path': 'temp/1748482350_246015_1361580276_614041350a025ae35b4fdcbb707afac8.jpg', 'extension': 'jpg'}, 1361580301: {'path': 'temp/1748482350_246015_1361580301_274ce3d04033eb7e368f9153c8911f38.jpg', 'extension': 'jpg'}, 1361580305: {'path': 'temp/1748482350_246015_1361580305_9a02e8107d4adadc60a407ea9d50376e.jpg', 'extension': 'jpg'}, 1361580314: {'path': 'temp/1748482350_246015_1361580314_b76af1f9548b60254be2915207d623c9.jpg', 'extension': 'jpg'}, 1361580318: {'path': 'temp/1748482350_246015_1361580318_8894df1f87e031c34b658b98492e336b.jpg', 'extension': 'jpg'}, 1361580277: {'path': 'temp/1748482350_246015_1361580277_4ab1ef21f8848518bc5247ed2d946134.jpg', 'extension': 'jpg'}, 1361580278: {'path': 'temp/1748482350_246015_1361580278_23e5cca9bf4d24d39da91d8b9c4b9945.jpg', 'extension': 'jpg'}, 1361580280: {'path': 'temp/1748482350_246015_1361580280_bfd075f168fc537c01fef831212207cf.jpg', 'extension': 'jpg'}, 1361580282: {'path': 'temp/1748482350_246015_1361580282_081a3f7cb726c35e0a1a81adbb2cece9.jpg', 'extension': 'jpg'}, 1361580239: {'path': 'temp/1748482350_246015_1361580239_cf47a6e0c244136d1194bb05eef7b6a7.jpg', 'extension': 'jpg'}, 1361580242: {'path': 'temp/1748482350_246015_1361580242_d388f262a6e928f584e69aed9a521d92.jpg', 'extension': 'jpg'}, 1361580244: {'path': 'temp/1748482350_246015_1361580244_659b9c26ffcfed1ddfed0b4ee13902bf.jpg', 'extension': 'jpg'}, 1361580247: {'path': 'temp/1748482350_246015_1361580247_f29a981992084a5ea6490b3a611e9d54.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 = 23433890; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 23433890 group by h (('03', 34),) 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=23433890 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 (23433890) 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 (23433890) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 29052025 23433890 Nombre de photos uploadées : 34 / 23040 (0%) 29052025 23433890 Nombre de photos taguées (types de déchets): 0 / 34 (0%) 29052025 23433890 Nombre de photos taguées (volume) : 0 / 34 (0%) [{'photo_id': 1361580135, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/f2b2b279808d82e985953c9d1c1da7c3.jpg', 'username': None, 'uploaded_at': 1748481947, 'text': 'image_29052025_03_00_14_10204.jpg'}, {'photo_id': 1361580133, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/a2b97dfb9f712ed26a1e5a3dda49d08c.jpg', 'username': None, 'uploaded_at': 1748481947, 'text': 'image_29052025_03_00_24_10142.jpg'}, {'photo_id': 1361580131, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/f29b73afd3b1eaddfa5a248dbc4388fe.jpg', 'username': None, 'uploaded_at': 1748481947, 'text': 'image_29052025_03_00_34_10137.jpg'}, {'photo_id': 1361580154, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/c332fbd56035411bf8f11a0608ce4330.jpg', 'username': None, 'uploaded_at': 1748482007, 'text': 'image_29052025_03_00_44_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.0728836059570312e-05 ?????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018513202667236328 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23433890, '2025-05-29' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1844847,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02899026870727539 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= 1844847 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23430334, 'dashboard_result_id': 11024972, '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_P23430334_29-05-2025_00_43_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430358, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23430497, 'dashboard_result_id': 11024973, '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_P23430497_29-05-2025_00_56_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23430498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430509, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23430732, 'dashboard_result_id': 11024974, '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_P23430732_29-05-2025_02_24_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430756, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23431384, 'dashboard_result_id': 11024975, '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_P23431384_29-05-2025_01_42_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431397, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23431503, 'dashboard_result_id': 11024976, '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_P23431503_29-05-2025_01_56_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431522, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23431787, 'dashboard_result_id': 11024977, '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_P23431787_29-05-2025_02_12_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431824, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23432187, 'dashboard_result_id': 11024978, '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_P23432187_29-05-2025_02_26_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432204, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23432421, 'dashboard_result_id': 11024979, '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_P23432421_29-05-2025_02_41_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432453, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23432833, 'dashboard_result_id': 11024980, '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_P23432833_29-05-2025_02_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432859, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23433180, 'dashboard_result_id': 11024981, '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_P23433180_29-05-2025_03_12_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23433205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23433206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23433207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23433208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23433209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23433210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23433211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23433212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23433213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23433214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23433215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23433216, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23433531, 'dashboard_result_id': 11024982, '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_P23433531_29-05-2025_03_27_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23433567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23433568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23433569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23433570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23433571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23433572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23433573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23433574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23433575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23433576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23433577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23433578, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852553, 'mtr_portfolio_id': 23433890, 'dashboard_result_id': 11024983, '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_P23433890_29-05-2025_03_30_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23433896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23433897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23433898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23433899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23433900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23433901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23433902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23433903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23433904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23433905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23433906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23433907, '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 = 23430334 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': 2980549, 'mtr_portfolio_id': 23430334, 'created_at': datetime.datetime(2025, 5, 29, 0, 42, 59), 'result': '0.06281961672603695', 'result_long': None, 'result_double': None}] Qualite : 0.06281961672603695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23430334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430334_29-05-2025_00_43_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23430334 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_P23430334_29-05-2025_00_43_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430358, 'pht': 3726}}" where mtr_portfolio_id = 23430334 and dashboard_run_id = 1852553 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`=23430334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024972, 0.06281961672603695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430334_29-05-2025_00_43_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430358, '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 = 23430497 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': 2980605, 'mtr_portfolio_id': 23430497, 'created_at': datetime.datetime(2025, 5, 29, 0, 56, 57), 'result': '0.038425853468165426', 'result_long': None, 'result_double': None}] Qualite : 0.038425853468165426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23430497 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430497_29-05-2025_00_56_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23430497 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_P23430497_29-05-2025_00_56_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23430498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430509, 'pht': 3726}}" where mtr_portfolio_id = 23430497 and dashboard_run_id = 1852553 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`=23430497 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024973, 0.038425853468165426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430497_29-05-2025_00_56_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23430498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430509, '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 = 23430732 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': 2980704, 'mtr_portfolio_id': 23430732, 'created_at': datetime.datetime(2025, 5, 29, 2, 24, 58), 'result': '0.07494602642588992', 'result_long': None, 'result_double': None}] Qualite : 0.07494602642588992 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23430732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430732_29-05-2025_02_24_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23430732 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_P23430732_29-05-2025_02_24_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430756, 'pht': 3726}}" where mtr_portfolio_id = 23430732 and dashboard_run_id = 1852553 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`=23430732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024974, 0.07494602642588992, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430732_29-05-2025_02_24_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430756, '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 = 23431384 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': 2980905, 'mtr_portfolio_id': 23431384, 'created_at': datetime.datetime(2025, 5, 29, 1, 42, 59), 'result': '0.0702023931698506', 'result_long': None, 'result_double': None}] Qualite : 0.0702023931698506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23431384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431384_29-05-2025_01_42_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23431384 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_P23431384_29-05-2025_01_42_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431397, 'pht': 3726}}" where mtr_portfolio_id = 23431384 and dashboard_run_id = 1852553 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`=23431384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024975, 0.0702023931698506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431384_29-05-2025_01_42_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431397, '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 = 23431503 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': 2980946, 'mtr_portfolio_id': 23431503, 'created_at': datetime.datetime(2025, 5, 29, 1, 56, 57), 'result': '0.05205324032251061', 'result_long': None, 'result_double': None}] Qualite : 0.05205324032251061 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23431503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431503_29-05-2025_01_56_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23431503 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_P23431503_29-05-2025_01_56_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431522, 'pht': 3726}}" where mtr_portfolio_id = 23431503 and dashboard_run_id = 1852553 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`=23431503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024976, 0.05205324032251061, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431503_29-05-2025_01_56_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431522, '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 = 23431787 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': 2981043, 'mtr_portfolio_id': 23431787, 'created_at': datetime.datetime(2025, 5, 29, 2, 12, 58), 'result': '0.06384799585236277', 'result_long': None, 'result_double': None}] Qualite : 0.06384799585236277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23431787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431787_29-05-2025_02_12_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23431787 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_P23431787_29-05-2025_02_12_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431824, 'pht': 3726}}" where mtr_portfolio_id = 23431787 and dashboard_run_id = 1852553 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`=23431787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024977, 0.06384799585236277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431787_29-05-2025_02_12_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431824, '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 = 23432187 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': 2981135, 'mtr_portfolio_id': 23432187, 'created_at': datetime.datetime(2025, 5, 29, 2, 26, 57), 'result': '0.07074534612159114', 'result_long': None, 'result_double': None}] Qualite : 0.07074534612159114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23432187 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432187_29-05-2025_02_26_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23432187 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_P23432187_29-05-2025_02_26_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432204, 'pht': 3726}}" where mtr_portfolio_id = 23432187 and dashboard_run_id = 1852553 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`=23432187 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024978, 0.07074534612159114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432187_29-05-2025_02_26_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432204, '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 = 23432421 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': 2981211, 'mtr_portfolio_id': 23432421, 'created_at': datetime.datetime(2025, 5, 29, 2, 41, 58), 'result': '0.05689972779902318', 'result_long': None, 'result_double': None}] Qualite : 0.05689972779902318 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23432421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432421_29-05-2025_02_41_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23432421 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_P23432421_29-05-2025_02_41_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432453, 'pht': 3726}}" where mtr_portfolio_id = 23432421 and dashboard_run_id = 1852553 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`=23432421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024979, 0.05689972779902318, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432421_29-05-2025_02_41_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432453, '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 = 23432833 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': 2981326, 'mtr_portfolio_id': 23432833, 'created_at': datetime.datetime(2025, 5, 29, 2, 57), 'result': '0.04320043959672224', 'result_long': None, 'result_double': None}] Qualite : 0.04320043959672224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23432833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432833_29-05-2025_02_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23432833 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_P23432833_29-05-2025_02_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432859, 'pht': 3726}}" where mtr_portfolio_id = 23432833 and dashboard_run_id = 1852553 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`=23432833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024980, 0.04320043959672224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432833_29-05-2025_02_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432859, '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 = 23433180 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': 2981429, 'mtr_portfolio_id': 23433180, 'created_at': datetime.datetime(2025, 5, 29, 3, 12, 57), 'result': '0.04439560353044161', 'result_long': None, 'result_double': None}] Qualite : 0.04439560353044161 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23433180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23433180_29-05-2025_03_12_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23433180 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_P23433180_29-05-2025_03_12_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23433205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23433206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23433207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23433208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23433209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23433210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23433211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23433212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23433213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23433214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23433215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23433216, 'pht': 3726}}" where mtr_portfolio_id = 23433180 and dashboard_run_id = 1852553 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`=23433180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024981, 0.04439560353044161, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23433180_29-05-2025_03_12_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23433205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23433206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23433207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23433208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23433209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23433210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23433211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23433212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23433213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23433214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23433215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23433216, '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 = 23433531 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': 2981529, 'mtr_portfolio_id': 23433531, 'created_at': datetime.datetime(2025, 5, 29, 3, 27, 27), 'result': '0.03859941650085126', 'result_long': None, 'result_double': None}] Qualite : 0.03859941650085126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23433531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23433531_29-05-2025_03_27_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23433531 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_P23433531_29-05-2025_03_27_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23433567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23433568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23433569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23433570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23433571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23433572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23433573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23433574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23433575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23433576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23433577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23433578, 'pht': 3726}}" where mtr_portfolio_id = 23433531 and dashboard_run_id = 1852553 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`=23433531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024982, 0.03859941650085126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23433531_29-05-2025_03_27_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23433567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23433568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23433569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23433570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23433571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23433572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23433573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23433574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23433575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23433576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23433577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23433578, '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 = 23433890 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': 2981645, 'mtr_portfolio_id': 23433890, 'created_at': datetime.datetime(2025, 5, 29, 3, 32, 30), 'result': '0.06216488473687306', 'result_long': None, 'result_double': None}] Qualite : 0.06216488473687306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23433890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23433890_29-05-2025_03_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23433890 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_P23433890_29-05-2025_03_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23433896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23433897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23433898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23433899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23433900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23433901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23433902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23433903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23433904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23433905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23433906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23433907, 'pht': 3726}}" where mtr_portfolio_id = 23433890 and dashboard_run_id = 1852553 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`=23433890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11024983, 0.06216488473687306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23433890_29-05-2025_03_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23433896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23433897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23433898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23433899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23433900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23433901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23433902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23433903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23433904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23433905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23433906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23433907, '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 (23430334,23430497,23430732,23431384,23431503,23431787,23432187,23432421,23432833,23433180,23433531,23433890) result : ((1361574231,), (1361574233,), (1361574235,), (1361574238,), (1361574257,), (1361574259,), (1361574261,), (1361574264,), (1361574267,), (1361574281,), (1361574283,), (1361574285,), (1361574287,), (1361574303,), (1361574307,), (1361574311,), (1361574315,), (1361574323,), (1361574334,), (1361574368,), (1361574371,), (1361574393,), (1361574461,), (1361574464,), (1361574467,), (1361574473,), (1361574478,), (1361574480,), (1361574499,), (1361574501,), (1361574503,), (1361574506,), (1361574530,), (1361574535,), (1361574538,), (1361574541,), (1361574545,), (1361574557,), (1361574560,), (1361574562,), (1361574564,), (1361574589,), (1361574590,), (1361574591,), (1361574593,), (1361574594,), (1361574617,), (1361574619,), (1361574646,), (1361574648,), (1361574649,), (1361574656,), (1361574661,), (1361574664,), (1361574684,), (1361574686,), (1361574688,), (1361574690,), (1361574712,), (1361574713,), (1361574715,), (1361574750,), (1361574751,), (1361574752,), (1361574753,), (1361574754,), (1361574780,), (1361574774,), (1361574808,), (1361574809,), (1361574810,), (1361574811,), (1361574812,), (1361574830,), (1361574831,), (1361574832,), (1361574856,), (1361574858,), (1361574860,), (1361574863,), (1361574864,), (1361574866,), (1361574892,), (1361574897,), (1361574898,), (1361574900,), (1361574902,), (1361574927,), (1361574930,), (1361574934,), (1361574936,), (1361574939,), (1361574941,), (1361574959,), (1361574962,), (1361574992,), (1361574993,), (1361574994,), (1361574996,), (1361574998,), (1361575001,), (1361575023,), (1361575025,), (1361575029,), (1361575056,), (1361575058,), (1361575061,), (1361575064,), (1361575068,), (1361575071,), (1361575091,), (1361575094,), (1361575096,), (1361575098,), (1361575101,), (1361575124,), (1361575125,), (1361575161,), (1361575163,), (1361575183,), (1361575184,), (1361575208,), (1361575209,), (1361575210,), (1361575212,), (1361575247,), (1361575236,), (1361575238,), (1361575241,), (1361575243,), (1361575245,), (1361575268,), (1361575269,), (1361575270,), (1361575298,), (1361575300,), (1361575302,), (1361575304,), (1361575305,), (1361575328,), (1361575329,), (1361575330,), (1361575331,), (1361575333,), (1361575335,), (1361575340,), (1361575341,), (1361575342,), (1361575475,), (1361575478,), (1361576285,), (1361576280,), (1361576283,), (1361576313,), (1361576316,), (1361576320,), (1361576322,), (1361576324,), (1361576325,), (1361576347,), (1361576350,), (1361576352,), (1361576376,), (1361576379,), (1361576382,), (1361576385,), (1361576406,), (1361576412,), (1361576417,), (1361576419,), (1361576420,), (1361576435,), (1361576437,), (1361576439,), (1361576442,), (1361576444,), (1361576446,), (1361576464,), (1361576494,), (1361576496,), (1361576498,), (1361576501,), (1361576528,), (1361576531,), (1361576536,), (1361576541,), (1361576546,), (1361576592,), (1361576594,), (1361576596,), (1361576600,), (1361576603,), (1361576644,), (1361576632,), (1361576636,), (1361576639,), (1361576642,), (1361576659,), (1361576664,), (1361576668,), (1361576671,), (1361576700,), (1361576702,), (1361576704,), (1361576706,), (1361576730,), (1361576734,), (1361576738,), (1361576742,), (1361576768,), (1361576771,), (1361576812,), (1361576815,), (1361576818,), (1361576892,), (1361576895,), (1361576923,), (1361576925,), (1361576927,), (1361576929,), (1361576931,), (1361576961,), (1361576963,), (1361576966,), (1361576969,), (1361576973,), (1361576975,), (1361576996,), (1361577000,), (1361577003,), (1361577032,), (1361577036,), (1361577040,), (1361577043,), (1361577044,), (1361577063,), (1361577068,), (1361577076,), (1361577082,), (1361577085,), (1361577087,), (1361577107,), (1361577110,), (1361577113,), (1361577117,), (1361577119,), (1361577138,), (1361577140,), (1361577142,), (1361577146,), (1361577184,), (1361577173,), (1361577176,), (1361577179,), (1361577182,), (1361577206,), (1361577214,), (1361577218,), (1361577222,), (1361577224,), (1361577253,), (1361577256,), (1361577271,), (1361577277,), (1361577298,), (1361577300,), (1361577303,), (1361577305,), (1361577307,), (1361577311,), (1361577312,), (1361577313,), (1361577320,), (1361577322,), (1361577348,), (1361577353,), (1361577358,), (1361577384,), (1361577387,), (1361577389,), (1361577392,), (1361577394,), (1361577395,), (1361577420,), (1361577423,), (1361577426,), (1361577429,), (1361577445,), (1361577447,), (1361577449,), (1361577451,), (1361577468,), (1361577471,), (1361577474,), (1361577480,), (1361577506,), (1361577532,), (1361577535,), (1361577538,), (1361577564,), (1361577569,), (1361577576,), (1361577580,), (1361577584,), (1361577605,), (1361577609,), (1361577615,), (1361577641,), (1361577643,), (1361577646,), (1361577648,), (1361577650,), (1361577652,), (1361577677,), (1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,), (1361577835,), (1361577840,), (1361577844,), (1361577853,), (1361577854,), (1361577855,), (1361577871,), (1361577873,), (1361577874,), (1361577895,), (1361577897,), (1361577899,), (1361577900,), (1361577915,), (1361577917,), (1361577924,), (1361577928,), (1361577938,), (1361577947,), (1361577982,), (1361577984,), (1361577989,), (1361577994,), (1361577996,), (1361578013,), (1361578014,), (1361578015,), (1361578016,), (1361578042,), (1361578044,), (1361578046,), (1361578049,), (1361578050,), (1361578051,), (1361578083,), (1361578084,), (1361578085,), (1361578086,), (1361578087,), (1361578089,), (1361578094,), (1361578097,), (1361578101,), (1361578119,), (1361578111,), (1361578113,), (1361578115,), (1361578117,), (1361578137,), (1361578138,), (1361578139,), (1361578141,), (1361578142,), (1361578167,), (1361578169,), (1361578171,), (1361578175,), (1361578196,), (1361578197,), (1361578201,), (1361578202,), (1361578221,), (1361578224,), (1361578231,), (1361578234,), (1361578237,), (1361578239,), (1361578257,), (1361578260,), (1361578267,), (1361578271,), (1361578274,), (1361578277,), (1361578294,), (1361578296,), (1361578298,), (1361578300,), (1361578318,), (1361578319,), (1361578327,), (1361578332,), (1361578334,), (1361578336,), (1361578358,), (1361578360,), (1361578362,), (1361578378,), (1361578431,), (1361578432,), (1361578433,), (1361578434,), (1361578453,), (1361578456,), (1361578459,), (1361578466,), (1361578468,), (1361578486,), (1361578488,), (1361578489,), (1361578491,), (1361578517,), (1361578520,), (1361578522,), (1361578524,), (1361578526,), (1361578527,), (1361578543,), (1361578544,), (1361578545,), (1361578546,), (1361578549,), (1361578550,), (1361578565,), (1361578567,), (1361578570,), (1361578613,), (1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,), (1361578848,), (1361578855,), (1361578860,), (1361578861,), (1361578882,), (1361578884,), (1361578886,), (1361578888,), (1361578890,), (1361578891,), (1361578905,), (1361578907,), (1361578908,), (1361578910,), (1361578912,), (1361578931,), (1361578934,), (1361578936,), (1361578943,), (1361578945,), (1361578963,), (1361578967,), (1361578968,), (1361578970,), (1361578972,), (1361578987,), (1361578989,), (1361578991,), (1361578993,), (1361578996,), (1361579015,), (1361579016,), (1361579017,), (1361579019,), (1361579020,), (1361579045,), (1361579036,), (1361579038,), (1361579040,), (1361579042,), (1361579044,), (1361579062,), (1361579063,), (1361579064,), (1361579066,), (1361579106,), (1361579109,), (1361579112,), (1361579114,), (1361579134,), (1361579135,), (1361579136,), (1361579138,), (1361579151,), (1361579157,), (1361579160,), (1361579164,), (1361579184,), (1361579186,), (1361579190,), (1361579210,), (1361579213,), (1361579215,), (1361579217,), (1361579220,), (1361579234,), (1361579236,), (1361579238,), (1361579403,), (1361579437,), (1361579438,), (1361579439,), (1361579451,), (1361579452,), (1361579500,), (1361579502,), (1361579505,), (1361579524,), (1361579527,), (1361579529,), (1361579531,), (1361579533,), (1361579551,), (1361579552,), (1361579553,), (1361579555,), (1361579575,), (1361579578,), (1361579583,), (1361579588,), (1361579591,), (1361579592,), (1361579608,), (1361579611,), (1361579630,), (1361579632,), (1361579634,), (1361579636,), (1361579638,), (1361579661,), (1361579655,), (1361579656,), (1361579657,), (1361579659,), (1361579677,), (1361579681,), (1361579686,), (1361579688,), (1361579690,), (1361579691,), (1361579708,), (1361579709,), (1361579716,), (1361579719,), (1361579721,), (1361579735,), (1361579738,), (1361579740,), (1361579746,), (1361579748,), (1361579768,), (1361579770,), (1361579775,), (1361579778,), (1361579780,), (1361579798,), (1361579800,), (1361579802,), (1361579804,), (1361579822,), (1361579823,), (1361579827,), (1361579829,), (1361579831,), (1361579873,), (1361579876,), (1361579878,), (1361579880,), (1361579889,), (1361579915,), (1361579917,), (1361579919,), (1361579942,), (1361579956,), (1361579958,), (1361579960,), (1361579962,), (1361579996,), (1361579998,), (1361580001,), (1361580003,), (1361580005,), (1361580007,), (1361580024,), (1361580026,), (1361580028,), (1361580030,), (1361580032,), (1361580051,), (1361580052,), (1361580053,), (1361580054,), (1361580057,), (1361580059,), (1361580106,), (1361580107,), (1361580108,), (1361580109,), (1361580111,), (1361580137,), (1361580131,), (1361580133,), (1361580135,), (1361580149,), (1361580150,), (1361580151,), (1361580152,), (1361580153,), (1361580154,), (1361580176,), (1361580178,), (1361580186,), (1361580192,), (1361580194,), (1361580211,), (1361580215,), (1361580221,), (1361580223,), (1361580239,), (1361580242,), (1361580244,), (1361580247,), (1361580251,), (1361580252,), (1361580275,), (1361580276,), (1361580277,), (1361580278,), (1361580280,), (1361580282,), (1361580301,), (1361580305,), (1361580314,), (1361580318,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'29052025': {'nb_upload': 34, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23433890]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239] map_info['map_portfolio_photo'] : {23433890: [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239, 1361580223, 1361580221, 1361580215, 1361580211, 1361580194, 1361580192, 1361580186, 1361580178, 1361580176, 1361580154, 1361580153, 1361580152, 1361580151, 1361580150, 1361580149, 1361580135, 1361580133, 1361580131]} final : True mtd_id 4302 list_pids : [1361580318, 1361580314, 1361580305, 1361580301, 1361580282, 1361580280, 1361580278, 1361580277, 1361580276, 1361580275, 1361580252, 1361580251, 1361580247, 1361580244, 1361580242, 1361580239] Looping around the photos to save general results len do output : 1 /23433890Didn'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, '2981645') ('4302', '23433890', '1361580318', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580314', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580305', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580301', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580282', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580280', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580278', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580277', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580276', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580275', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580252', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580251', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580247', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580244', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580242', None, None, None, None, None, '2981645') ('4302', None, None, None, None, None, None, None, '2981645') ('4302', '23433890', '1361580239', None, None, None, None, None, '2981645') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23433890', 'None', None, None, None, None, '2981645'), ('4302', '23433890', '1361580318', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580314', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580305', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580301', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580282', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580280', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580278', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580277', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580276', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580275', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580252', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580251', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580247', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580244', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580242', None, None, None, None, None, '2981645'), ('4302', '23433890', '1361580239', None, None, None, None, None, '2981645')] time used for this insertion : 0.017620563507080078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8380470275878906 time spend to save output : 0.017965078353881836 total time spend for step 5 : 0.8560121059417725 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 (2981645) 2.76user 1.93system 0:10.03elapsed 46%CPU (0avgtext+0avgdata 160732maxresident)k 472inputs+9920outputs (1major+87741minor)pagefaults 0swaps