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 : 3085359 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 (2711497) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2711497) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933164 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2711497'] with mtr_portfolio_ids : ['21933164'] and first list_photo_ids : [] new path : /proc/3085359/ Name: python3 Umask: 0002 State: R (running) Tgid: 3085359 Ngid: 0 Pid: 3085359 PPid: 3085358 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3085359 NSpid: 3085359 NSpgid: 3083949 NSsid: 3083949 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99404 kB VmRSS: 99404 kB RssAnon: 59756 kB RssFile: 39648 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 60 nonvoluntary_ctxt_switches: 110 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3085359', 'Ngid': '0', 'Pid': '3085359', 'PPid': '3085358', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3085359', 'NSpid': '3085359', 'NSpgid': '3083949', 'NSsid': '3083949', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99404 kB', 'VmRSS': '99404 kB', 'RssAnon': '59756 kB', 'RssFile': '39648 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '60', 'nonvoluntary_ctxt_switches': '110'} ('datou_batch_current', '3085359', '1106928', '0', '1106928', '865676', '99404', b'', 'marlene', '2711497') 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 (21933164) 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 (2711497 ) ) 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 (21933164) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349202406, 'portfolio_id': 21933164}, {'photo_id': 1349202386, 'portfolio_id': 21933164}, {'photo_id': 1349202378, 'portfolio_id': 21933164}, {'photo_id': 1349202363, 'portfolio_id': 21933164}, {'photo_id': 1349202190, 'portfolio_id': 21933164}, {'photo_id': 1349202189, 'portfolio_id': 21933164}, {'photo_id': 1349202174, 'portfolio_id': 21933164}, {'photo_id': 1349202173, 'portfolio_id': 21933164}, {'photo_id': 1349202172, 'portfolio_id': 21933164}, {'photo_id': 1349202171, 'portfolio_id': 21933164}, {'photo_id': 1349202170, 'portfolio_id': 21933164}, {'photo_id': 1349202169, 'portfolio_id': 21933164}, {'photo_id': 1349202167, 'portfolio_id': 21933164}, {'photo_id': 1349202153, 'portfolio_id': 21933164}, {'photo_id': 1349202152, 'portfolio_id': 21933164}, {'photo_id': 1349202151, 'portfolio_id': 21933164}, {'photo_id': 1349202150, 'portfolio_id': 21933164}, {'photo_id': 1349202149, 'portfolio_id': 21933164}, {'photo_id': 1349202138, 'portfolio_id': 21933164}, {'photo_id': 1349202137, 'portfolio_id': 21933164}, {'photo_id': 1349202136, 'portfolio_id': 21933164}, {'photo_id': 1349202135, 'portfolio_id': 21933164}] map_portfolio_id_photo_id: {21933164: [1349202406, 1349202386, 1349202378, 1349202363, 1349202190, 1349202189, 1349202174, 1349202173, 1349202172, 1349202171, 1349202170, 1349202169, 1349202167, 1349202153, 1349202152, 1349202151, 1349202150, 1349202149, 1349202138, 1349202137, 1349202136, 1349202135]} ##### 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.014797210693359375 #### 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 Tue Apr 1 05:16:56 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 (21933164) 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 : 21933164 get user id for portfolio 21933164 get sub ptf for main ptf 21933164, type 3726 and hashtags ['environnement', 'papier', 'cartonnette', 'Teint_Dans_La_Masse', 'flou', 'autre_refus', 'mal_croppe', 'Carton_brun', 'metal', 'plastique', 'Carton_gris', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21933164 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','cartonnette','Teint_Dans_La_Masse','flou','autre_refus','mal_croppe','Carton_brun','metal','plastique','Carton_gris','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21933164 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','cartonnette','Teint_Dans_La_Masse','flou','autre_refus','mal_croppe','Carton_brun','metal','plastique','Carton_gris','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21933164, 'sub_port_id': 21933167, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437116, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'environnement': {'main_port_id': 21933164, 'sub_port_id': 21933168, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437117, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'papier': {'main_port_id': 21933164, 'sub_port_id': 21933169, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437118, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'kraft': {'main_port_id': 21933164, 'sub_port_id': 21933170, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437119, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'metal': {'main_port_id': 21933164, 'sub_port_id': 21933171, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437120, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'Carton_brun': {'main_port_id': 21933164, 'sub_port_id': 21933172, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437121, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'flou': {'main_port_id': 21933164, 'sub_port_id': 21933173, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437122, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'mal_croppe': {'main_port_id': 21933164, 'sub_port_id': 21933174, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437123, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21933164, 'sub_port_id': 21933175, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437124, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'plastique': {'main_port_id': 21933164, 'sub_port_id': 21933176, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437125, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'cartonnette': {'main_port_id': 21933164, 'sub_port_id': 21933177, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437126, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}, 'autre_refus': {'main_port_id': 21933164, 'sub_port_id': 21933178, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437127, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21933167 , 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=21933164 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 (21933167) result : ((1349202180,), (1349202394,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933168 , 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=21933164 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 (21933168) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933169 , 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=21933164 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 (21933169) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933170 , 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=21933164 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 (21933170) result : ((1349202147,), (1349202148,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933171 , 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=21933164 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 (21933171) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933172 , 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=21933164 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 (21933172) result : ((1349202156,), (1349202160,), (1349202161,), (1349202162,), (1349202181,), (1349202182,), (1349202395,), (1349202396,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933173 , 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=21933164 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 (21933173) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933174 , 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=21933164 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 (21933174) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933175 , 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=21933164 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 (21933175) result : ((1349202154,), (1349202157,), (1349202177,), (1349202391,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933176 , 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=21933164 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 (21933176) result : ((1349202145,), (1349202146,), (1349202159,), (1349202163,), (1349202164,), (1349202165,), (1349202166,), (1349202168,), (1349202183,), (1349202184,), (1349202185,), (1349202186,), (1349202187,), (1349202398,), (1349202399,), (1349202400,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933177 , 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=21933164 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 (21933177) result : ((1349202144,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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 21933178 , 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=21933164 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 (21933178) result : ((1349202143,), (1349202155,), (1349202158,), (1349202178,), (1349202179,), (1349202392,), (1349202393,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) 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`=21933164 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','cartonnette','Teint_Dans_La_Masse','flou','autre_refus','mal_croppe','Carton_brun','metal','plastique','Carton_gris','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21933164 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','cartonnette','Teint_Dans_La_Masse','flou','autre_refus','mal_croppe','Carton_brun','metal','plastique','Carton_gris','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21933164, 'sub_port_id': 21933179, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437128, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'environnement': {'main_port_id': 21933164, 'sub_port_id': 21933180, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437129, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'papier': {'main_port_id': 21933164, 'sub_port_id': 21933181, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437130, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'kraft': {'main_port_id': 21933164, 'sub_port_id': 21933182, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437131, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'metal': {'main_port_id': 21933164, 'sub_port_id': 21933183, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437132, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'Carton_brun': {'main_port_id': 21933164, 'sub_port_id': 21933184, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437133, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'flou': {'main_port_id': 21933164, 'sub_port_id': 21933185, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437134, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'mal_croppe': {'main_port_id': 21933164, 'sub_port_id': 21933186, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437135, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21933164, 'sub_port_id': 21933187, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437136, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'plastique': {'main_port_id': 21933164, 'sub_port_id': 21933188, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437137, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'cartonnette': {'main_port_id': 21933164, 'sub_port_id': 21933189, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437138, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}, 'autre_refus': {'main_port_id': 21933164, 'sub_port_id': 21933190, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14437139, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 14, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 14, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933179,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933167 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933180,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933168 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933181,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933175 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933176 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933189,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933177 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21933190,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21933178 lien utilise dans velours : https://www.fotonower.com/velours/21933179,21933180,21933181,21933182,21933183,21933184,21933185,21933186,21933187,21933188,21933189,21933190?tags=Carton_gris,environnement,papier,kraft,metal,Carton_brun,flou,mal_croppe,Teint_Dans_La_Masse,plastique,cartonnette,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21933164]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349202406, 1349202386, 1349202378, 1349202363] map_info['map_portfolio_photo'] : {21933164: [1349202406, 1349202386, 1349202378, 1349202363, 1349202190, 1349202189, 1349202174, 1349202173, 1349202172, 1349202171, 1349202170, 1349202169, 1349202167, 1349202153, 1349202152, 1349202151, 1349202150, 1349202149, 1349202138, 1349202137, 1349202136, 1349202135]} final : False mtd_id 4302 list_pids : [1349202406, 1349202386, 1349202378, 1349202363] Looping around the photos to save general results len do output : 1 /21933164. 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, '2711497') ('4302', '21933164', '1349202406', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202386', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202378', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202363', None, None, None, None, None, '2711497') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '21933164', "{'Carton_gris': 21933167, 'environnement': 21933168, 'papier': 21933169, 'kraft': 21933170, 'metal': 21933171, 'Carton_brun': 21933172, 'flou': 21933173, 'mal_croppe': 21933174, 'Teint_Dans_La_Masse': 21933175, 'plastique': 21933176, 'cartonnette': 21933177, 'autre_refus': 21933178}", None, None, None, None, '2711497'), ('4302', '21933164', '1349202406', None, None, None, None, None, '2711497'), ('4302', '21933164', '1349202386', None, None, None, None, None, '2711497'), ('4302', '21933164', '1349202378', None, None, None, None, None, '2711497'), ('4302', '21933164', '1349202363', None, None, None, None, None, '2711497')] time used for this insertion : 0.014905929565429688 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5123565196990967 time spend to save output : 0.015224218368530273 total time spend for step 1 : 1.527580738067627 step2:final Tue Apr 1 05:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (21933164) 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 21933164 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349202138,1349202137,1349202136,1349202135,1349202152,1349202151,1349202150,1349202149,1349202153,1349202167,1349202172,1349202171,1349202170,1349202169,1349202174,1349202173,1349202190,1349202189,1349202386,1349202378,1349202363,1349202406); 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([21933164]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349202406: ('0.10245077482147406',), 1349202386: ('0.10245077482147406',), 1349202378: ('0.10245077482147406',), 1349202363: ('0.10245077482147406',)} new output for save of step final : {1349202406: ('0.10245077482147406',), 1349202386: ('0.10245077482147406',), 1349202378: ('0.10245077482147406',), 1349202363: ('0.10245077482147406',)} [1349202406, 1349202386, 1349202378, 1349202363] map_info['map_portfolio_photo'] : {21933164: [1349202406, 1349202386, 1349202378, 1349202363, 1349202190, 1349202189, 1349202174, 1349202173, 1349202172, 1349202171, 1349202170, 1349202169, 1349202167, 1349202153, 1349202152, 1349202151, 1349202150, 1349202149, 1349202138, 1349202137, 1349202136, 1349202135]} final : False mtd_id 4302 list_pids : [1349202406, 1349202386, 1349202378, 1349202363] Looping around the photos to save general results len do output : 4 /1349202406.Didn't retrieve data . /1349202386.Didn't retrieve data . /1349202378.Didn't retrieve data . /1349202363.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, '2711497') ('4302', '21933164', '1349202406', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202386', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202378', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202363', None, None, None, None, None, '2711497') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '21933164', '1349202406', '0.10245077482147406', None, None, None, None, '2711497'), ('4302', '21933164', '1349202386', '0.10245077482147406', None, None, None, None, '2711497'), ('4302', '21933164', '1349202378', '0.10245077482147406', None, None, None, None, '2711497'), ('4302', '21933164', '1349202363', '0.10245077482147406', None, None, None, None, '2711497')] time used for this insertion : 0.0160219669342041 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6288387775421143 time spend to save output : 0.01647496223449707 total time spend for step 2 : 0.6453137397766113 step3:velours_tree Tue Apr 1 05:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {21933164: [{'Carton_gris': 21933167, 'environnement': 21933168, 'papier': 21933169, 'kraft': 21933170, 'metal': 21933171, 'Carton_brun': 21933172, 'flou': 21933173, 'mal_croppe': 21933174, 'Teint_Dans_La_Masse': 21933175, 'plastique': 21933176, 'cartonnette': 21933177, 'autre_refus': 21933178}]} input_args_next_step : {21933164: ()} output_args : {21933164: [{'Carton_gris': 21933167, 'environnement': 21933168, 'papier': 21933169, 'kraft': 21933170, 'metal': 21933171, 'Carton_brun': 21933172, 'flou': 21933173, 'mal_croppe': 21933174, 'Teint_Dans_La_Masse': 21933175, 'plastique': 21933176, 'cartonnette': 21933177, 'autre_refus': 21933178}]} args : 21933164 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 21933167, 'environnement': 21933168, 'papier': 21933169, 'kraft': 21933170, 'metal': 21933171, 'Carton_brun': 21933172, 'flou': 21933173, 'mal_croppe': 21933174, 'Teint_Dans_La_Masse': 21933175, 'plastique': 21933176, 'cartonnette': 21933177, 'autre_refus': 21933178},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21933164) 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([21933164]) 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.4694490432739258 time spend to save output : 7.224082946777344e-05 total time spend for step 3 : 0.46952128410339355 step4:send_mail_cod Tue Apr 1 05:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1349202406: ('0.10245077482147406',), 1349202386: ('0.10245077482147406',), 1349202378: ('0.10245077482147406',), 1349202363: ('0.10245077482147406',)} input_args_next_step : {1349202406: ()} output_args : {1349202406: ('0.10245077482147406',), 1349202386: ('0.10245077482147406',), 1349202378: ('0.10245077482147406',), 1349202363: ('0.10245077482147406',)} args : 1349202406 depend.output_id : 0 input_args_next_step : {1349202406: ('0.10245077482147406',), 1349202386: ()} output_args : {1349202406: ('0.10245077482147406',), 1349202386: ('0.10245077482147406',), 1349202378: ('0.10245077482147406',), 1349202363: ('0.10245077482147406',)} args : 1349202386 depend.output_id : 0 input_args_next_step : {1349202406: ('0.10245077482147406',), 1349202386: ('0.10245077482147406',), 1349202378: ()} output_args : {1349202406: ('0.10245077482147406',), 1349202386: ('0.10245077482147406',), 1349202378: ('0.10245077482147406',), 1349202363: ('0.10245077482147406',)} args : 1349202378 depend.output_id : 0 input_args_next_step : {1349202406: ('0.10245077482147406',), 1349202386: ('0.10245077482147406',), 1349202378: ('0.10245077482147406',), 1349202363: ()} output_args : {1349202406: ('0.10245077482147406',), 1349202386: ('0.10245077482147406',), 1349202378: ('0.10245077482147406',), 1349202363: ('0.10245077482147406',)} args : 1349202363 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 : {21933164: [{'Carton_gris': 21933167, 'environnement': 21933168, 'papier': 21933169, 'kraft': 21933170, 'metal': 21933171, 'Carton_brun': 21933172, 'flou': 21933173, 'mal_croppe': 21933174, 'Teint_Dans_La_Masse': 21933175, 'plastique': 21933176, 'cartonnette': 21933177, 'autre_refus': 21933178}]} input_args_next_step : {1349202406: ('0.10245077482147406',), 1349202386: ('0.10245077482147406',), 1349202378: ('0.10245077482147406',), 1349202363: ('0.10245077482147406',), 21933164: ()} output_args : {21933164: [{'Carton_gris': 21933167, 'environnement': 21933168, 'papier': 21933169, 'kraft': 21933170, 'metal': 21933171, 'Carton_brun': 21933172, 'flou': 21933173, 'mal_croppe': 21933174, 'Teint_Dans_La_Masse': 21933175, 'plastique': 21933176, 'cartonnette': 21933177, 'autre_refus': 21933178}]} args : 21933164 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 :5, first value : ('0.10245077482147406',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21933164) 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 (1349202406,1349202386,1349202378,1349202363) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349202363 begin to download photo : 1349202378 begin to download photo : 1349202386 begin to download photo : 1349202406 download finish for photo 1349202406 download finish for photo 1349202386 download finish for photo 1349202363 download finish for photo 1349202378 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P21933164_01-04-2025_05_16_59.pdf 21933170 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=21933170 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349202147: '1743476832_4116131_1349202136_665815146356ef13b81d5360312572b4_rle_crop_3742283249_0.png', 1349202148: '1743476832_4116131_1349202135_2df9d6e2ccbaa2a2d7d7bdc0c78163ab_rle_crop_3742283266_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/b99748ff6a3bc4a73d5b972d4e21d9b8_7652838.png change filename to text .imagette219331701743477419/ imagette219331701743477419/1743476832_4116131_1349202136_665815146356ef13b81d5360312572b4_rle_crop_3742283249_0.png.png imagette219331701743477419/1743476832_4116131_1349202135_2df9d6e2ccbaa2a2d7d7bdc0c78163ab_rle_crop_3742283266_0.png.png imagette219331711743477419/ imagette219331731743477419/ imagette219331741743477419/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/18a58e356148ca2a4246cc716b617216_21768418.png imagette219331701743477419 21933171 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=21933171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219331711743477419 21933173 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=21933173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219331731743477419 21933174 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=21933174 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219331741743477419 21933176 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=21933176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349202145: '1743476832_4116131_1349202136_665815146356ef13b81d5360312572b4_rle_crop_3742283252_0.png', 1349202146: '1743476832_4116131_1349202135_2df9d6e2ccbaa2a2d7d7bdc0c78163ab_rle_crop_3742283260_0.png', 1349202159: '1743476940_4117154_1349202152_fe2494147fd838347257ca5840504af2_rle_crop_3742283428_0.png', 1349202163: '1743476930_4117041_1349202151_ce343551cdf67ee0bbbeb5e3ad041b4c_rle_crop_3742283399_0.png', 1349202164: '1743476930_4117041_1349202151_ce343551cdf67ee0bbbeb5e3ad041b4c_rle_crop_3742283402_0.png', 1349202165: '1743476930_4117041_1349202150_dade15f789f37e2299871ca026d4074c_rle_crop_3742283417_0.png', 1349202166: '1743476930_4117041_1349202150_dade15f789f37e2299871ca026d4074c_rle_crop_3742283410_0.png', 1349202168: '1743477031_4118109_1349202153_32762488d85ad74acc5010b711e24aa2_rle_crop_3742285110_0.png', 1349202183: '1743477170_4119113_1349202174_c7d5b21b0fc9922e9b40b60735944524_rle_crop_3742285947_0.png', 1349202184: '1743477170_4119113_1349202174_c7d5b21b0fc9922e9b40b60735944524_rle_crop_3742285941_0.png', 1349202185: '1743477170_4119113_1349202171_f16dcb2dfc866f5cebcfd492ceabc04d_rle_crop_3742285960_0.png', 1349202186: '1743477170_4119113_1349202170_dcd8c7b98dc310c559b38ffe944edc56_rle_crop_3742285974_0.png', 1349202187: '1743477170_4119113_1349202169_17d51b047a80c9d5f54086419b6a8a6e_rle_crop_3742285992_0.png', 1349202398: '1743477292_4119907_1349202190_3d71107e51a0d5b3aa39af0f4fea66b7_rle_crop_3742286438_0.png', 1349202399: '1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286455_0.png', 1349202400: '1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286443_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/45b7b93aabcc98896fec1fa245c92921_30866381.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/dceddd7f340938b8c9887115a0b4a538_52335730.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/23bbe6acb953af9c0406e554ebd1bd27_45591898.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/65b73e80f2fc3920fb3564c7e6fbd7d0_40535696.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/11a87b6da5389e9f1a2168f62fbf00b8_83860458.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5309b50d28654a77d778c3929caf0a77_39451474.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/bf834d23a43e902af58146dcc065f60c_68603344.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/52ddeab4fa3ffa2f529b2582ea9e205f_37898339.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/135eade21dd258c4717e3f29c3f63913_68794683.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/aa09b8b06502ff0e66ac3ce6f1ee83c2_15030726.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/353cc2c05f039280d711862936b7f4d7_5936126.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a4385997745e362447d9ad702926c9a0_22273582.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2822917e86452c5f32829f48f67b77c1_7315889.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e781708cdd6a3a216055d715db570b0a_81530664.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/750870ec2ebff415a392a287330213bb_52625059.png change filename to text .imagette219331761743477419/ imagette219331761743477419/1743477031_4118109_1349202153_32762488d85ad74acc5010b711e24aa2_rle_crop_3742285110_0.png.png imagette219331761743477419/1743477170_4119113_1349202171_f16dcb2dfc866f5cebcfd492ceabc04d_rle_crop_3742285960_0.png.png imagette219331761743477419/1743476930_4117041_1349202151_ce343551cdf67ee0bbbeb5e3ad041b4c_rle_crop_3742283402_0.png.png imagette219331761743477419/1743476930_4117041_1349202151_ce343551cdf67ee0bbbeb5e3ad041b4c_rle_crop_3742283399_0.png.png imagette219331761743477419/1743476930_4117041_1349202150_dade15f789f37e2299871ca026d4074c_rle_crop_3742283417_0.png.png imagette219331761743477419/1743477170_4119113_1349202169_17d51b047a80c9d5f54086419b6a8a6e_rle_crop_3742285992_0.png.png imagette219331761743477419/1743477170_4119113_1349202170_dcd8c7b98dc310c559b38ffe944edc56_rle_crop_3742285974_0.png.png imagette219331761743477419/1743476832_4116131_1349202136_665815146356ef13b81d5360312572b4_rle_crop_3742283252_0.png.png imagette219331761743477419/1743476930_4117041_1349202150_dade15f789f37e2299871ca026d4074c_rle_crop_3742283410_0.png.png imagette219331761743477419/1743477292_4119907_1349202190_3d71107e51a0d5b3aa39af0f4fea66b7_rle_crop_3742286438_0.png.png imagette219331761743477419/1743476832_4116131_1349202135_2df9d6e2ccbaa2a2d7d7bdc0c78163ab_rle_crop_3742283260_0.png.png imagette219331761743477419/1743477170_4119113_1349202174_c7d5b21b0fc9922e9b40b60735944524_rle_crop_3742285947_0.png.png imagette219331761743477419/1743476940_4117154_1349202152_fe2494147fd838347257ca5840504af2_rle_crop_3742283428_0.png.png imagette219331761743477419/1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286455_0.png.png imagette219331761743477419/1743477170_4119113_1349202174_c7d5b21b0fc9922e9b40b60735944524_rle_crop_3742285941_0.png.png imagette219331761743477419/1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286443_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/bf2a7b2ccd7f833db3cb0d35119377ef_65202972.png imagette219331761743477419 21933177 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=21933177 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349202144: '1743476832_4116131_1349202135_2df9d6e2ccbaa2a2d7d7bdc0c78163ab_rle_crop_3742283257_0.png'} change filename to text .imagette219331771743477420/ imagette219331771743477420/1743476832_4116131_1349202135_2df9d6e2ccbaa2a2d7d7bdc0c78163ab_rle_crop_3742283257_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a988aa70cb4f746e978f5cd96c30c529_28368324.png imagette219331771743477420 21933178 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=21933178 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349202143: '1743476832_4116131_1349202136_665815146356ef13b81d5360312572b4_rle_crop_3742283248_0.png', 1349202155: '1743476940_4117154_1349202152_fe2494147fd838347257ca5840504af2_rle_crop_3742283423_0.png', 1349202158: '1743476930_4117041_1349202151_ce343551cdf67ee0bbbeb5e3ad041b4c_rle_crop_3742283396_0.png', 1349202178: '1743477170_4119113_1349202174_c7d5b21b0fc9922e9b40b60735944524_rle_crop_3742285943_0.png', 1349202179: '1743477170_4119113_1349202169_17d51b047a80c9d5f54086419b6a8a6e_rle_crop_3742285991_0.png', 1349202392: '1743477292_4119907_1349202190_3d71107e51a0d5b3aa39af0f4fea66b7_rle_crop_3742286433_0.png', 1349202393: '1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286449_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/37aa71076ea2b348e14bef6674b7ecf3_57669897.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/15af01e1ba94866e25c3aafb1aaeabe1_30489789.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/ab798e452f27fc4518f8ece41b4fdc5b_36417245.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/9712a7ec323f8519159725e4220779fe_94586467.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a0d77e6caef4cfb4b8c85a7d8d4f3a34_11289798.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/22ec648e6c653166fed09b06aa136b99_47691945.png change filename to text .imagette219331781743477420/ imagette219331781743477420/1743477292_4119907_1349202190_3d71107e51a0d5b3aa39af0f4fea66b7_rle_crop_3742286433_0.png.png imagette219331781743477420/1743477170_4119113_1349202174_c7d5b21b0fc9922e9b40b60735944524_rle_crop_3742285943_0.png.png imagette219331781743477420/1743476832_4116131_1349202136_665815146356ef13b81d5360312572b4_rle_crop_3742283248_0.png.png imagette219331781743477420/1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286449_0.png.png imagette219331781743477420/1743476930_4117041_1349202151_ce343551cdf67ee0bbbeb5e3ad041b4c_rle_crop_3742283396_0.png.png imagette219331781743477420/1743477170_4119113_1349202169_17d51b047a80c9d5f54086419b6a8a6e_rle_crop_3742285991_0.png.png imagette219331781743477420/1743476940_4117154_1349202152_fe2494147fd838347257ca5840504af2_rle_crop_3742283423_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/4fa82adfbb9e40fbf83926f408752d03_6618060.png imagette219331781743477420 21933167 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=21933167 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349202180: '1743477170_4119113_1349202174_c7d5b21b0fc9922e9b40b60735944524_rle_crop_3742285939_0.png', 1349202394: '1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286445_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/148cb9f5d0c79c602bdc89fe75bcc140_74942161.png change filename to text .imagette219331671743477421/ imagette219331671743477421/1743477170_4119113_1349202174_c7d5b21b0fc9922e9b40b60735944524_rle_crop_3742285939_0.png.png imagette219331671743477421/1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286445_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e4e07c8cab30b437677107b25316334a_77271881.png imagette219331671743477421 21933172 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=21933172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349202156: '1743476940_4117154_1349202152_fe2494147fd838347257ca5840504af2_rle_crop_3742283426_0.png', 1349202160: '1743476930_4117041_1349202151_ce343551cdf67ee0bbbeb5e3ad041b4c_rle_crop_3742283393_0.png', 1349202161: '1743476930_4117041_1349202151_ce343551cdf67ee0bbbeb5e3ad041b4c_rle_crop_3742283397_0.png', 1349202162: '1743476930_4117041_1349202150_dade15f789f37e2299871ca026d4074c_rle_crop_3742283416_0.png', 1349202181: '1743477170_4119113_1349202174_c7d5b21b0fc9922e9b40b60735944524_rle_crop_3742285940_0.png', 1349202182: '1743477170_4119113_1349202169_17d51b047a80c9d5f54086419b6a8a6e_rle_crop_3742285990_0.png', 1349202395: '1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286446_0.png', 1349202396: '1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286451_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/42d0649affa2c5918acd4f1755516db2_98063386.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/539ded4b2bb06111ad665131385a2592_69975230.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a88146559d109286cd5d4b06ad498c03_63366737.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d9817c7dc9addd1dd46039b5a23bf8d6_9393856.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/340c653341dca3e01e0174f9af87ea04_21763494.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d2f83c0a768915b06597af3fae34dda9_93630566.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c29837150d99429fad00ffd1585bad9d_67647063.png change filename to text .imagette219331721743477421/ imagette219331721743477421/1743476930_4117041_1349202150_dade15f789f37e2299871ca026d4074c_rle_crop_3742283416_0.png.png imagette219331721743477421/1743476940_4117154_1349202152_fe2494147fd838347257ca5840504af2_rle_crop_3742283426_0.png.png imagette219331721743477421/1743476930_4117041_1349202151_ce343551cdf67ee0bbbeb5e3ad041b4c_rle_crop_3742283393_0.png.png imagette219331721743477421/1743477170_4119113_1349202174_c7d5b21b0fc9922e9b40b60735944524_rle_crop_3742285940_0.png.png imagette219331721743477421/1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286451_0.png.png imagette219331721743477421/1743477170_4119113_1349202169_17d51b047a80c9d5f54086419b6a8a6e_rle_crop_3742285990_0.png.png imagette219331721743477421/1743476930_4117041_1349202151_ce343551cdf67ee0bbbeb5e3ad041b4c_rle_crop_3742283397_0.png.png imagette219331721743477421/1743477292_4119907_1349202173_26c62d92e21012a0985b9f114b439cdf_rle_crop_3742286446_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/4a9f2f12ffe34eab551f84d96384f05c_28237143.png imagette219331721743477421 21933175 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=21933175 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349202154: '1743476940_4117154_1349202152_fe2494147fd838347257ca5840504af2_rle_crop_3742283425_0.png', 1349202157: '1743476930_4117041_1349202149_aa3ebc69ec7f344510cab97160fa3efb_rle_crop_3742283438_0.png', 1349202177: '1743477170_4119113_1349202170_dcd8c7b98dc310c559b38ffe944edc56_rle_crop_3742285969_0.png', 1349202391: '1743477292_4119907_1349202190_3d71107e51a0d5b3aa39af0f4fea66b7_rle_crop_3742286436_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2960955c74d8f09f1f97792795d8df0d_14330224.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1925a4b0ac59ee4c2b98deb8a94fe8be_98054821.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a6b78dcaf85ba73c9c9b64e2533442ac_10039380.png change filename to text .imagette219331751743477421/ imagette219331751743477421/1743477170_4119113_1349202170_dcd8c7b98dc310c559b38ffe944edc56_rle_crop_3742285969_0.png.png imagette219331751743477421/1743477292_4119907_1349202190_3d71107e51a0d5b3aa39af0f4fea66b7_rle_crop_3742286436_0.png.png imagette219331751743477421/1743476940_4117154_1349202152_fe2494147fd838347257ca5840504af2_rle_crop_3742283425_0.png.png imagette219331751743477421/1743476930_4117041_1349202149_aa3ebc69ec7f344510cab97160fa3efb_rle_crop_3742283438_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/bd57935e8fbc47a0c09c9fbee9c6b75d_13661258.png imagette219331751743477421 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21933164 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21933179,21933180,21933181,21933182,21933183,21933184,21933185,21933186,21933187,21933188,21933189,21933190?tags=Carton_gris,environnement,papier,kraft,metal,Carton_brun,flou,mal_croppe,Teint_Dans_La_Masse,plastique,cartonnette,autre_refus your option no_mail is active, we will not send the real mail to your client args[1349202406] : ('0.10245077482147406',) no score found for photo 1349202406 We are sending mail with results at report@fotonower.com args[1349202386] : ('0.10245077482147406',) no score found for photo 1349202386 We are sending mail with results at report@fotonower.com args[1349202378] : ('0.10245077482147406',) no score found for photo 1349202378 We are sending mail with results at report@fotonower.com args[1349202363] : ('0.10245077482147406',) no score found for photo 1349202363 We are sending mail with results at report@fotonower.com refus_total : 0.10245077482147406 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=21933164 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_P21933164_01-04-2025_05_16_59.pdf results_Auto_P21933164_01-04-2025_05_16_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933164_01-04-2025_05_16_59.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','21933164','results_Auto_P21933164_01-04-2025_05_16_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933164_01-04-2025_05_16_59.pdf','pdf','','0.23','0.10245077482147406') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21933164]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349202406, 1349202386, 1349202378, 1349202363] map_info['map_portfolio_photo'] : {21933164: [1349202406, 1349202386, 1349202378, 1349202363, 1349202190, 1349202189, 1349202174, 1349202173, 1349202172, 1349202171, 1349202170, 1349202169, 1349202167, 1349202153, 1349202152, 1349202151, 1349202150, 1349202149, 1349202138, 1349202137, 1349202136, 1349202135]} final : False mtd_id 4302 list_pids : [1349202406, 1349202386, 1349202378, 1349202363] 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, '2711497') ('4302', '21933164', '1349202406', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202386', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202378', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202363', None, None, None, None, None, '2711497') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '21933164', '1349202406', None, None, None, None, None, '2711497'), ('4302', '21933164', '1349202386', None, None, None, None, None, '2711497'), ('4302', '21933164', '1349202378', None, None, None, None, None, '2711497'), ('4302', '21933164', '1349202363', None, None, None, None, None, '2711497')] time used for this insertion : 0.012939929962158203 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.955256462097168 time spend to save output : 0.013230562210083008 total time spend for step 4 : 3.968487024307251 step5:split_time_score Tue Apr 1 05:17:03 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 : ['21933164'] 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 : [('21933164',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21933164) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349202406: {'path': 'temp/1743477419_3085359_1349202406_c27c8f4a49de4d1e59e42cc98d1ab58b.jpg', 'extension': 'jpg'}, 1349202386: {'path': 'temp/1743477419_3085359_1349202386_ead2cffb02911a098e4a1bdb4fb35d1e.jpg', 'extension': 'jpg'}, 1349202363: {'path': 'temp/1743477419_3085359_1349202363_5158f17aa73cc9f31f69542d6ce5ef19.jpg', 'extension': 'jpg'}, 1349202378: {'path': 'temp/1743477419_3085359_1349202378_a729f6e81f6b6623e4f98c246c7294de.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 = 21933164; (('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 = 21933164 group by h (('05', 22),) 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=21933164 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 (21933164) 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 (21933164) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01042025 21933164 Nombre de photos uploadées : 22 / 23040 (0%) 01042025 21933164 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 01042025 21933164 Nombre de photos taguées (volume) : 0 / 22 (0%) [{'photo_id': 1349202138, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5b5a124c1c1d0866a07d933deaa5c8e5.jpg', 'username': None, 'uploaded_at': 1743476758, 'text': 'image_01042025_05_02_04_10136.jpg'}, {'photo_id': 1349202137, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/50970ad4438df9554026769bba6425c4.jpg', 'username': None, 'uploaded_at': 1743476758, 'text': 'image_01042025_05_03_14_10136.jpg'}, {'photo_id': 1349202136, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/665815146356ef13b81d5360312572b4.jpg', 'username': None, 'uploaded_at': 1743476758, 'text': 'image_01042025_05_04_14_010141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349202135, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2df9d6e2ccbaa2a2d7d7bdc0c78163ab.jpg', 'username': None, 'uploaded_at': 1743476758, 'text': 'image_01042025_05_04_24_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002058744430541992 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21933164, '2025-04-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1705632,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026891231536865234 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= 1705632 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1705632, 'dashboard_run_id': 1713671, 'mtr_portfolio_id': 21933164, 'dashboard_result_id': 9776857, '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_P21933164_01-04-2025_05_14_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933178, '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 = 21933164 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': 2711497, 'mtr_portfolio_id': 21933164, 'created_at': datetime.datetime(2025, 4, 1, 5, 16, 58), 'result': '0.10245077482147406', 'result_long': None, 'result_double': None}] Qualite : 0.10245077482147406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21933164 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933164_01-04-2025_05_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21933164 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_P21933164_01-04-2025_05_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933178, 'pht': 3726}}" where mtr_portfolio_id = 21933164 and dashboard_run_id = 1713671 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`=21933164 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9776857, 0.10245077482147406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933164_01-04-2025_05_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933178, '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 (21933164) result : ((1349202135,), (1349202136,), (1349202137,), (1349202138,), (1349202149,), (1349202150,), (1349202151,), (1349202152,), (1349202153,), (1349202167,), (1349202169,), (1349202170,), (1349202171,), (1349202172,), (1349202173,), (1349202174,), (1349202189,), (1349202190,), (1349202363,), (1349202378,), (1349202386,), (1349202406,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01042025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21933164]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349202406, 1349202386, 1349202378, 1349202363] map_info['map_portfolio_photo'] : {21933164: [1349202406, 1349202386, 1349202378, 1349202363, 1349202190, 1349202189, 1349202174, 1349202173, 1349202172, 1349202171, 1349202170, 1349202169, 1349202167, 1349202153, 1349202152, 1349202151, 1349202150, 1349202149, 1349202138, 1349202137, 1349202136, 1349202135]} final : True mtd_id 4302 list_pids : [1349202406, 1349202386, 1349202378, 1349202363] Looping around the photos to save general results len do output : 1 /21933164Didn'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, '2711497') ('4302', '21933164', '1349202406', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202386', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202378', None, None, None, None, None, '2711497') ('4302', None, None, None, None, None, None, None, '2711497') ('4302', '21933164', '1349202363', None, None, None, None, None, '2711497') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '21933164', 'None', None, None, None, None, '2711497'), ('4302', '21933164', '1349202406', None, None, None, None, None, '2711497'), ('4302', '21933164', '1349202386', None, None, None, None, None, '2711497'), ('4302', '21933164', '1349202378', None, None, None, None, None, '2711497'), ('4302', '21933164', '1349202363', None, None, None, None, None, '2711497')] time used for this insertion : 0.012851238250732422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1797342300415039 time spend to save output : 0.013081073760986328 total time spend for step 5 : 0.19281530380249023 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 (2711497) 2.24user 3.06system 0:08.98elapsed 59%CPU (0avgtext+0avgdata 159672maxresident)k 45632inputs+11096outputs (277major+71267minor)pagefaults 0swaps