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 : 160578 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 (2660753) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2660753) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327104 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2660753'] with mtr_portfolio_ids : ['21327104'] and first list_photo_ids : [] new path : /proc/160578/ Name: python3 Umask: 0002 State: R (running) Tgid: 160578 Ngid: 0 Pid: 160578 PPid: 160577 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 160578 NSpid: 160578 NSpgid: 158082 NSsid: 158082 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99220 kB VmRSS: 99220 kB RssAnon: 59760 kB RssFile: 39460 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 50 nonvoluntary_ctxt_switches: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '160578', 'Ngid': '0', 'Pid': '160578', 'PPid': '160577', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '160578', 'NSpid': '160578', 'NSpgid': '158082', 'NSsid': '158082', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99220 kB', 'VmRSS': '99220 kB', 'RssAnon': '59760 kB', 'RssFile': '39460 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '50', 'nonvoluntary_ctxt_switches': '103'} ('datou_batch_current', '160578', '1106848', '0', '1106848', '865596', '99220', b'', 'marlene', '2660753') 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 (21327104) 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 (2660753 ) ) 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 (21327104) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343297414, 'portfolio_id': 21327104}, {'photo_id': 1343297412, 'portfolio_id': 21327104}, {'photo_id': 1343297403, 'portfolio_id': 21327104}, {'photo_id': 1343297392, 'portfolio_id': 21327104}, {'photo_id': 1343297389, 'portfolio_id': 21327104}, {'photo_id': 1343297364, 'portfolio_id': 21327104}, {'photo_id': 1343297362, 'portfolio_id': 21327104}, {'photo_id': 1343297359, 'portfolio_id': 21327104}, {'photo_id': 1343297356, 'portfolio_id': 21327104}, {'photo_id': 1343297354, 'portfolio_id': 21327104}, {'photo_id': 1343297241, 'portfolio_id': 21327104}, {'photo_id': 1343297219, 'portfolio_id': 21327104}, {'photo_id': 1343297218, 'portfolio_id': 21327104}, {'photo_id': 1343297216, 'portfolio_id': 21327104}, {'photo_id': 1343297140, 'portfolio_id': 21327104}, {'photo_id': 1343296797, 'portfolio_id': 21327104}, {'photo_id': 1343296763, 'portfolio_id': 21327104}] map_portfolio_id_photo_id: {21327104: [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763]} ##### 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.014014720916748047 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 12 04:05:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21327104) 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 : 21327104 get user id for portfolio 21327104 get sub ptf for main ptf 21327104, type 3726 and hashtags ['mal_croppe', 'autre_refus', 'environnement', 'cartonnette', 'kraft', 'papier', 'flou', 'metal', 'Carton_gris', 'Carton_brun', 'Teint_Dans_La_Masse', 'plastique'] 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`=21327104 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','environnement','cartonnette','kraft','papier','flou','metal','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique')) 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`=21327104 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','environnement','cartonnette','kraft','papier','flou','metal','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[21327104, 21327106, 3726, 0.5, 2107755527, 979], [21327104, 21327107, 3726, 0.5, 2107752406, 979], [21327104, 21327108, 3726, 0.5, 493012381, 979], [21327104, 21327109, 3726, 0.5, 702398920, 979], [21327104, 21327110, 3726, 0.5, 493202403, 979], [21327104, 21327111, 3726, 0.5, 492668766, 979], [21327104, 21327112, 3726, 0.5, 492777938, 979], [21327104, 21327113, 3726, 0.5, 492628673, 979], [21327104, 21327114, 3726, 0.5, 2107753020, 979], [21327104, 21327115, 3726, 0.5, 2107753024, 979], [21327104, 21327116, 3726, 0.5, 2107752385, 979], [21327104, 21327117, 3726, 0.5, 492725882, 979]] 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`=21327104 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','environnement','cartonnette','kraft','papier','flou','metal','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique')) 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`=21327104 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','environnement','cartonnette','kraft','papier','flou','metal','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21327104, 'sub_port_id': 21327106, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909510, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'autre_refus': {'main_port_id': 21327104, 'sub_port_id': 21327107, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909511, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'environnement': {'main_port_id': 21327104, 'sub_port_id': 21327108, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909512, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'cartonnette': {'main_port_id': 21327104, 'sub_port_id': 21327109, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909513, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'kraft': {'main_port_id': 21327104, 'sub_port_id': 21327110, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909514, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'papier': {'main_port_id': 21327104, 'sub_port_id': 21327111, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909515, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'flou': {'main_port_id': 21327104, 'sub_port_id': 21327112, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909516, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'metal': {'main_port_id': 21327104, 'sub_port_id': 21327113, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909517, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'Carton_gris': {'main_port_id': 21327104, 'sub_port_id': 21327114, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909518, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'Carton_brun': {'main_port_id': 21327104, 'sub_port_id': 21327115, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909519, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21327104, 'sub_port_id': 21327116, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909520, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}, 'plastique': {'main_port_id': 21327104, 'sub_port_id': 21327117, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909521, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 5, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21327106 , 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=21327104 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 (21327106) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327107 , 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=21327104 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 (21327107) result : ((1343297396,), (1343297397,), (1343297398,), (1343297399,), (1343297406,), (1343297407,), (1343297408,), (1343297409,), (1343297410,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327108 , 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=21327104 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 (21327108) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327109 , 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=21327104 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 (21327109) result : ((1343297400,), (1343297401,), (1343297413,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327110 , 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=21327104 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 (21327110) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327111 , 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=21327104 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 (21327111) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327112 , 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=21327104 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 (21327112) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327113 , 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=21327104 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 (21327113) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327114 , 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=21327104 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 (21327114) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327115 , 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=21327104 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 (21327115) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327116 , 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=21327104 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 (21327116) result : ((1343297394,), (1343297395,), (1343297404,), (1343297405,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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 21327117 , 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=21327104 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 (21327117) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21327104) result : ((1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) 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`=21327104 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','environnement','cartonnette','kraft','papier','flou','metal','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique')) 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`=21327104 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','environnement','cartonnette','kraft','papier','flou','metal','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__12032025_04_00_14_10144_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[21327104, 21327118, 4417, 0.5, 2107755527, 979], [21327104, 21327119, 4417, 0.5, 2107752406, 979], [21327104, 21327120, 4417, 0.5, 493012381, 979], [21327104, 21327121, 4417, 0.5, 702398920, 979], [21327104, 21327122, 4417, 0.5, 493202403, 979], [21327104, 21327123, 4417, 0.5, 492668766, 979], [21327104, 21327124, 4417, 0.5, 492777938, 979], [21327104, 21327125, 4417, 0.5, 492628673, 979], [21327104, 21327126, 4417, 0.5, 2107753020, 979], [21327104, 21327127, 4417, 0.5, 2107753024, 979], [21327104, 21327128, 4417, 0.5, 2107752385, 979], [21327104, 21327129, 4417, 0.5, 492725882, 979]] 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`=21327104 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','environnement','cartonnette','kraft','papier','flou','metal','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique')) 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`=21327104 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','environnement','cartonnette','kraft','papier','flou','metal','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21327104, 'sub_port_id': 21327118, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909522, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'autre_refus': {'main_port_id': 21327104, 'sub_port_id': 21327119, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909523, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'environnement': {'main_port_id': 21327104, 'sub_port_id': 21327120, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909524, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'cartonnette': {'main_port_id': 21327104, 'sub_port_id': 21327121, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909525, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'kraft': {'main_port_id': 21327104, 'sub_port_id': 21327122, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909526, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'papier': {'main_port_id': 21327104, 'sub_port_id': 21327123, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909527, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'flou': {'main_port_id': 21327104, 'sub_port_id': 21327124, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909528, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'metal': {'main_port_id': 21327104, 'sub_port_id': 21327125, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909529, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'Carton_gris': {'main_port_id': 21327104, 'sub_port_id': 21327126, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909530, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'Carton_brun': {'main_port_id': 21327104, 'sub_port_id': 21327127, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909531, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21327104, 'sub_port_id': 21327128, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909532, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}, 'plastique': {'main_port_id': 21327104, 'sub_port_id': 21327129, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13909533, 'last_updated_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 4, 6, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 4, 6, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327118,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327106 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327119,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327107 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327120,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327108 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327121,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327109 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327122,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327110 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327123,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327111 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327124,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327112 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327125,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327113 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327126,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327127,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327115 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327128,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327116 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21327129,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21327117 lien utilise dans velours : https://www.fotonower.com/velours/21327118,21327119,21327120,21327121,21327122,21327123,21327124,21327125,21327126,21327127,21327128,21327129?tags=mal_croppe,autre_refus,environnement,cartonnette,kraft,papier,flou,metal,Carton_gris,Carton_brun,Teint_Dans_La_Masse,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21327104]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763] map_info['map_portfolio_photo'] : {21327104: [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763]} final : False mtd_id 4302 list_pids : [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763] Looping around the photos to save general results len do output : 1 /21327104. 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, '2660753') ('4302', '21327104', '1343297414', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297412', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297403', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297392', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297389', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297364', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297362', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297359', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297356', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297354', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297241', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297219', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297218', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297216', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297140', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343296797', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343296763', None, None, None, None, None, '2660753') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '21327104', "{'mal_croppe': 21327106, 'autre_refus': 21327107, 'environnement': 21327108, 'cartonnette': 21327109, 'kraft': 21327110, 'papier': 21327111, 'flou': 21327112, 'metal': 21327113, 'Carton_gris': 21327114, 'Carton_brun': 21327115, 'Teint_Dans_La_Masse': 21327116, 'plastique': 21327117}", None, None, None, None, '2660753'), ('4302', '21327104', '1343297414', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297412', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297403', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297392', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297389', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297364', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297362', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297359', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297356', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297354', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297241', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297219', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297218', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297216', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297140', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343296797', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343296763', None, None, None, None, None, '2660753')] time used for this insertion : 0.01568913459777832 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9666426181793213 time spend to save output : 0.01602339744567871 total time spend for step 1 : 1.982666015625 step2:final Wed Mar 12 04:06:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21327104) 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 21327104 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343296797,1343296763,1343297241,1343297140,1343297219,1343297218,1343297216,1343297364,1343297362,1343297359,1343297356,1343297354,1343297414,1343297412,1343297403,1343297392,1343297389); 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([21327104]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} new output for save of step final : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763] map_info['map_portfolio_photo'] : {21327104: [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763]} final : False mtd_id 4302 list_pids : [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763] Looping around the photos to save general results len do output : 17 /1343297414.Didn't retrieve data . /1343297412.Didn't retrieve data . /1343297403.Didn't retrieve data . /1343297392.Didn't retrieve data . /1343297389.Didn't retrieve data . /1343297364.Didn't retrieve data . /1343297362.Didn't retrieve data . /1343297359.Didn't retrieve data . /1343297356.Didn't retrieve data . /1343297354.Didn't retrieve data . /1343297241.Didn't retrieve data . /1343297219.Didn't retrieve data . /1343297218.Didn't retrieve data . /1343297216.Didn't retrieve data . /1343297140.Didn't retrieve data . /1343296797.Didn't retrieve data . /1343296763.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, '2660753') ('4302', '21327104', '1343297414', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297412', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297403', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297392', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297389', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297364', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297362', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297359', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297356', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297354', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297241', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297219', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297218', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297216', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297140', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343296797', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343296763', None, None, None, None, None, '2660753') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '21327104', '1343297414', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297412', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297403', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297392', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297389', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297364', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297362', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297359', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297356', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297354', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297241', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297219', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297218', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297216', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343297140', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343296797', '0.052079797904656625', None, None, None, None, '2660753'), ('4302', '21327104', '1343296763', '0.052079797904656625', None, None, None, None, '2660753')] time used for this insertion : 0.01439666748046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.028290987014770508 time spend to save output : 0.014980554580688477 total time spend for step 2 : 0.043271541595458984 step3:velours_tree Wed Mar 12 04:06:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21327104: [{'mal_croppe': 21327106, 'autre_refus': 21327107, 'environnement': 21327108, 'cartonnette': 21327109, 'kraft': 21327110, 'papier': 21327111, 'flou': 21327112, 'metal': 21327113, 'Carton_gris': 21327114, 'Carton_brun': 21327115, 'Teint_Dans_La_Masse': 21327116, 'plastique': 21327117}]} input_args_next_step : {21327104: ()} output_args : {21327104: [{'mal_croppe': 21327106, 'autre_refus': 21327107, 'environnement': 21327108, 'cartonnette': 21327109, 'kraft': 21327110, 'papier': 21327111, 'flou': 21327112, 'metal': 21327113, 'Carton_gris': 21327114, 'Carton_brun': 21327115, 'Teint_Dans_La_Masse': 21327116, 'plastique': 21327117}]} args : 21327104 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 : ({'mal_croppe': 21327106, 'autre_refus': 21327107, 'environnement': 21327108, 'cartonnette': 21327109, 'kraft': 21327110, 'papier': 21327111, 'flou': 21327112, 'metal': 21327113, 'Carton_gris': 21327114, 'Carton_brun': 21327115, 'Teint_Dans_La_Masse': 21327116, 'plastique': 21327117},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21327104) 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([21327104]) 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.41940808296203613 time spend to save output : 7.700920104980469e-05 total time spend for step 3 : 0.41948509216308594 step4:send_mail_cod Wed Mar 12 04:06:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} input_args_next_step : {1343297414: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297414 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297412 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297403 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297392 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297389 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297364 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297362 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297359 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297356 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297354 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297241 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297219 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297218 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297216 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343297140 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343296797 depend.output_id : 0 input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ()} output_args : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',)} args : 1343296763 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 : {21327104: [{'mal_croppe': 21327106, 'autre_refus': 21327107, 'environnement': 21327108, 'cartonnette': 21327109, 'kraft': 21327110, 'papier': 21327111, 'flou': 21327112, 'metal': 21327113, 'Carton_gris': 21327114, 'Carton_brun': 21327115, 'Teint_Dans_La_Masse': 21327116, 'plastique': 21327117}]} input_args_next_step : {1343297414: ('0.052079797904656625',), 1343297412: ('0.052079797904656625',), 1343297403: ('0.052079797904656625',), 1343297392: ('0.052079797904656625',), 1343297389: ('0.052079797904656625',), 1343297364: ('0.052079797904656625',), 1343297362: ('0.052079797904656625',), 1343297359: ('0.052079797904656625',), 1343297356: ('0.052079797904656625',), 1343297354: ('0.052079797904656625',), 1343297241: ('0.052079797904656625',), 1343297219: ('0.052079797904656625',), 1343297218: ('0.052079797904656625',), 1343297216: ('0.052079797904656625',), 1343297140: ('0.052079797904656625',), 1343296797: ('0.052079797904656625',), 1343296763: ('0.052079797904656625',), 21327104: ()} output_args : {21327104: [{'mal_croppe': 21327106, 'autre_refus': 21327107, 'environnement': 21327108, 'cartonnette': 21327109, 'kraft': 21327110, 'papier': 21327111, 'flou': 21327112, 'metal': 21327113, 'Carton_gris': 21327114, 'Carton_brun': 21327115, 'Teint_Dans_La_Masse': 21327116, 'plastique': 21327117}]} args : 21327104 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 :18, first value : ('0.052079797904656625',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21327104) 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 (1343297414,1343297412,1343297403,1343297392,1343297389,1343297364,1343297362,1343297359,1343297356,1343297354,1343297241,1343297219,1343297218,1343297216,1343297140,1343296797,1343296763) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343296763 begin to download photo : 1343297218 begin to download photo : 1343297356 begin to download photo : 1343297389 begin to download photo : 1343297414 download finish for photo 1343296763 begin to download photo : 1343296797 download finish for photo 1343297389 begin to download photo : 1343297392 download finish for photo 1343297218 begin to download photo : 1343297219 download finish for photo 1343297356 begin to download photo : 1343297359 download finish for photo 1343297414 download finish for photo 1343296797 begin to download photo : 1343297140 download finish for photo 1343297219 begin to download photo : 1343297241 download finish for photo 1343297359 begin to download photo : 1343297362 download finish for photo 1343297392 begin to download photo : 1343297403 download finish for photo 1343297241 begin to download photo : 1343297354 download finish for photo 1343297140 begin to download photo : 1343297216 download finish for photo 1343297403 begin to download photo : 1343297412 download finish for photo 1343297362 begin to download photo : 1343297364 download finish for photo 1343297354 download finish for photo 1343297216 download finish for photo 1343297364 download finish for photo 1343297412 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette213271061741748762/ length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P21327104_12-03-2025_04_06_02.pdf 21327106 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=21327106 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213271061741748762 21327107 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=21327107 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343297396: '1741748652_2178082_1343297219_2b4200a58ec04ab53e2b07eeedcfd51c_rle_crop_3707044409_0.png', 1343297397: '1741748652_2178082_1343297218_24e89e11e750642b96eae271b3e8d7f1_rle_crop_3707044419_0.png', 1343297398: '1741748652_2178082_1343297216_372a54753ae885086d2d330dbd4110ae_rle_crop_3707044436_0.png', 1343297399: '1741748652_2178082_1343297140_3abf401dbed95ceebcad6c333379d502_rle_crop_3707044468_0.png', 1343297406: '1741748666_3143144_1343297241_5ded28373750860c829e44739b9e3e0c_rle_crop_3707044453_0.png', 1343297407: '1741748666_3143144_1343296797_3c4faa5460cf8447f7453276fd4cd991_rle_crop_3707044476_0.png', 1343297408: '1741748666_3143144_1343296797_3c4faa5460cf8447f7453276fd4cd991_rle_crop_3707044479_0.png', 1343297409: '1741748666_3143144_1343296797_3c4faa5460cf8447f7453276fd4cd991_rle_crop_3707044475_0.png', 1343297410: '1741748666_3143144_1343296763_72627ec86c1f6804c2051922cea15d26_rle_crop_3707044489_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/cd3638366b0f48b616e981e984a1f52a_72910955.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/81ff0ccc27a26c7069c1f9e6a5f0c21b_199708.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/1c44c415fe458670bc0e890d81001798_48644023.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9c2ea6c70426c6c114bebc9b743eede2_79056168.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b3dc56aaa057c711bad9eb1ca16ffabc_47640964.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/11de2fb4a12e2421441ffacfd9448180_71285632.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d582ba151cc31ee5cc3a47905602c401_25731669.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/15a1e052d67bc3fbc098e3bb7fccf9fd_94361231.png change filename to text .imagette213271071741748762/ imagette213271071741748762/1741748652_2178082_1343297218_24e89e11e750642b96eae271b3e8d7f1_rle_crop_3707044419_0.png.png imagette213271071741748762/1741748666_3143144_1343296763_72627ec86c1f6804c2051922cea15d26_rle_crop_3707044489_0.png.png imagette213271071741748762/1741748666_3143144_1343296797_3c4faa5460cf8447f7453276fd4cd991_rle_crop_3707044479_0.png.png imagette213271071741748762/1741748666_3143144_1343296797_3c4faa5460cf8447f7453276fd4cd991_rle_crop_3707044476_0.png.png imagette213271071741748762/1741748666_3143144_1343297241_5ded28373750860c829e44739b9e3e0c_rle_crop_3707044453_0.png.png imagette213271071741748762/1741748666_3143144_1343296797_3c4faa5460cf8447f7453276fd4cd991_rle_crop_3707044475_0.png.png imagette213271071741748762/1741748652_2178082_1343297219_2b4200a58ec04ab53e2b07eeedcfd51c_rle_crop_3707044409_0.png.png imagette213271071741748762/1741748652_2178082_1343297140_3abf401dbed95ceebcad6c333379d502_rle_crop_3707044468_0.png.png imagette213271071741748762/1741748652_2178082_1343297216_372a54753ae885086d2d330dbd4110ae_rle_crop_3707044436_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/05b234916843ef5f8eeb0422cb690f09_22319727.png imagette213271071741748762 21327109 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=21327109 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343297400: '1741748652_2178082_1343297218_24e89e11e750642b96eae271b3e8d7f1_rle_crop_3707044418_0.png', 1343297401: '1741748652_2178082_1343297216_372a54753ae885086d2d330dbd4110ae_rle_crop_3707044432_0.png', 1343297413: '1741748666_3143144_1343296763_72627ec86c1f6804c2051922cea15d26_rle_crop_3707044486_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e9a7cd997dd4e18c2ae45cabb90bab56_15913202.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/694778eb7b046e02d9acc7321ee3cf67_63014007.png change filename to text .imagette213271091741748762/ imagette213271091741748762/1741748652_2178082_1343297216_372a54753ae885086d2d330dbd4110ae_rle_crop_3707044432_0.png.png imagette213271091741748762/1741748652_2178082_1343297218_24e89e11e750642b96eae271b3e8d7f1_rle_crop_3707044418_0.png.png imagette213271091741748762/1741748666_3143144_1343296763_72627ec86c1f6804c2051922cea15d26_rle_crop_3707044486_0.png.png imagette213271101741748762/ imagette213271121741748762/ imagette213271131741748762/ imagette213271171741748762/ imagette213271141741748762/ imagette213271151741748762/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/68a8267339acd67b809499ce4d4e8c73_85288536.png imagette213271091741748762 21327110 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=21327110 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213271101741748762 21327112 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=21327112 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213271121741748762 21327113 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=21327113 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213271131741748762 21327117 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=21327117 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213271171741748762 21327114 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=21327114 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213271141741748762 21327115 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=21327115 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213271151741748762 21327116 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=21327116 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343297394: '1741748652_2178082_1343297219_2b4200a58ec04ab53e2b07eeedcfd51c_rle_crop_3707044406_0.png', 1343297395: '1741748652_2178082_1343297216_372a54753ae885086d2d330dbd4110ae_rle_crop_3707044438_0.png', 1343297404: '1741748666_3143144_1343296797_3c4faa5460cf8447f7453276fd4cd991_rle_crop_3707044480_0.png', 1343297405: '1741748666_3143144_1343296763_72627ec86c1f6804c2051922cea15d26_rle_crop_3707044490_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/704b978deaf874a4e89690bfdd54c23b_64823773.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/df7be0474e9180e59ee91559fa75c43a_283242.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/be3f1343030cdd188918e35071440677_51387206.png change filename to text .imagette213271161741748762/ imagette213271161741748762/1741748652_2178082_1343297219_2b4200a58ec04ab53e2b07eeedcfd51c_rle_crop_3707044406_0.png.png imagette213271161741748762/1741748666_3143144_1343296797_3c4faa5460cf8447f7453276fd4cd991_rle_crop_3707044480_0.png.png imagette213271161741748762/1741748652_2178082_1343297216_372a54753ae885086d2d330dbd4110ae_rle_crop_3707044438_0.png.png imagette213271161741748762/1741748666_3143144_1343296763_72627ec86c1f6804c2051922cea15d26_rle_crop_3707044490_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f8b13a5ec9c0c8caca6fe657f1775e7d_65274587.png imagette213271161741748762 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21327104 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21327118,21327119,21327120,21327121,21327122,21327123,21327124,21327125,21327126,21327127,21327128,21327129?tags=mal_croppe,autre_refus,environnement,cartonnette,kraft,papier,flou,metal,Carton_gris,Carton_brun,Teint_Dans_La_Masse,plastique your option no_mail is active, we will not send the real mail to your client args[1343297414] : ('0.052079797904656625',) no score found for photo 1343297414 We are sending mail with results at report@fotonower.com args[1343297412] : ('0.052079797904656625',) no score found for photo 1343297412 We are sending mail with results at report@fotonower.com args[1343297403] : ('0.052079797904656625',) no score found for photo 1343297403 We are sending mail with results at report@fotonower.com args[1343297392] : ('0.052079797904656625',) no score found for photo 1343297392 We are sending mail with results at report@fotonower.com args[1343297389] : ('0.052079797904656625',) no score found for photo 1343297389 We are sending mail with results at report@fotonower.com args[1343297364] : ('0.052079797904656625',) no score found for photo 1343297364 We are sending mail with results at report@fotonower.com args[1343297362] : ('0.052079797904656625',) no score found for photo 1343297362 We are sending mail with results at report@fotonower.com args[1343297359] : ('0.052079797904656625',) no score found for photo 1343297359 We are sending mail with results at report@fotonower.com args[1343297356] : ('0.052079797904656625',) no score found for photo 1343297356 We are sending mail with results at report@fotonower.com args[1343297354] : ('0.052079797904656625',) no score found for photo 1343297354 We are sending mail with results at report@fotonower.com args[1343297241] : ('0.052079797904656625',) no score found for photo 1343297241 We are sending mail with results at report@fotonower.com args[1343297219] : ('0.052079797904656625',) no score found for photo 1343297219 We are sending mail with results at report@fotonower.com args[1343297218] : ('0.052079797904656625',) no score found for photo 1343297218 We are sending mail with results at report@fotonower.com args[1343297216] : ('0.052079797904656625',) no score found for photo 1343297216 We are sending mail with results at report@fotonower.com args[1343297140] : ('0.052079797904656625',) no score found for photo 1343297140 We are sending mail with results at report@fotonower.com args[1343296797] : ('0.052079797904656625',) no score found for photo 1343296797 We are sending mail with results at report@fotonower.com args[1343296763] : ('0.052079797904656625',) no score found for photo 1343296763 We are sending mail with results at report@fotonower.com refus_total : 0.052079797904656625 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=21327104 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'autre_refus' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21327104]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763] map_info['map_portfolio_photo'] : {21327104: [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763]} final : False mtd_id 4302 list_pids : [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763] 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, '2660753') ('4302', '21327104', '1343297414', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297412', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297403', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297392', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297389', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297364', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297362', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297359', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297356', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297354', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297241', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297219', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297218', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297216', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297140', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343296797', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343296763', None, None, None, None, None, '2660753') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21327104', '1343297414', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297412', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297403', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297392', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297389', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297364', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297362', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297359', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297356', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297354', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297241', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297219', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297218', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297216', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297140', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343296797', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343296763', None, None, None, None, None, '2660753')] time used for this insertion : 0.014364480972290039 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6317267417907715 time spend to save output : 0.014580011367797852 total time spend for step 4 : 1.6463067531585693 step5:split_time_score Wed Mar 12 04:06: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 : ['21327104'] 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 : [('21327104',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21327104) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343297414: {'path': 'temp/1741748761_160578_1343297414_aee590781cdbeb50e5f2d1d35c461a7b.jpg', 'extension': 'jpg'}, 1343297218: {'path': 'temp/1741748761_160578_1343297218_24e89e11e750642b96eae271b3e8d7f1.jpg', 'extension': 'jpg'}, 1343297219: {'path': 'temp/1741748761_160578_1343297219_2b4200a58ec04ab53e2b07eeedcfd51c.jpg', 'extension': 'jpg'}, 1343297241: {'path': 'temp/1741748761_160578_1343297241_5ded28373750860c829e44739b9e3e0c.jpg', 'extension': 'jpg'}, 1343297354: {'path': 'temp/1741748761_160578_1343297354_f894213887184fcbfc5ed76fbd71ee36.jpg', 'extension': 'jpg'}, 1343296763: {'path': 'temp/1741748761_160578_1343296763_72627ec86c1f6804c2051922cea15d26.jpg', 'extension': 'jpg'}, 1343296797: {'path': 'temp/1741748761_160578_1343296797_3c4faa5460cf8447f7453276fd4cd991.jpg', 'extension': 'jpg'}, 1343297140: {'path': 'temp/1741748761_160578_1343297140_3abf401dbed95ceebcad6c333379d502.jpg', 'extension': 'jpg'}, 1343297216: {'path': 'temp/1741748761_160578_1343297216_372a54753ae885086d2d330dbd4110ae.jpg', 'extension': 'jpg'}, 1343297356: {'path': 'temp/1741748761_160578_1343297356_97f1b04fec8002a337bfd7fa98c10d93.jpg', 'extension': 'jpg'}, 1343297359: {'path': 'temp/1741748761_160578_1343297359_10ccae607e9c0725b78d5a0754a3f800.jpg', 'extension': 'jpg'}, 1343297362: {'path': 'temp/1741748761_160578_1343297362_9fc1c260b27b7b89ad34f2ed9a92d075.jpg', 'extension': 'jpg'}, 1343297364: {'path': 'temp/1741748761_160578_1343297364_62506a7fc83957df55c9e893ff84b454.jpg', 'extension': 'jpg'}, 1343297389: {'path': 'temp/1741748761_160578_1343297389_973e008252a4cb052cc0093d8105f486.jpg', 'extension': 'jpg'}, 1343297392: {'path': 'temp/1741748761_160578_1343297392_534219711131e4acb297c954302d8848.jpg', 'extension': 'jpg'}, 1343297403: {'path': 'temp/1741748761_160578_1343297403_35194fabd6d6565e3c5c81f80ce3ecfc.jpg', 'extension': 'jpg'}, 1343297412: {'path': 'temp/1741748761_160578_1343297412_5c184b784ef21833a8423bd564b55e24.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 = 21327104; (('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 = 21327104 group by h (('04', 17),) 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=21327104 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 (21327104) 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 (21327104) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12032025 21327104 Nombre de photos uploadées : 17 / 23040 (0%) 12032025 21327104 Nombre de photos taguées (types de déchets): 0 / 17 (0%) 12032025 21327104 Nombre de photos taguées (volume) : 0 / 17 (0%) [{'photo_id': 1343296797, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3c4faa5460cf8447f7453276fd4cd991.jpg', 'username': None, 'uploaded_at': 1741748500, 'text': 'image_12032025_04_00_14_10143.jpg'}, {'photo_id': 1343296763, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/72627ec86c1f6804c2051922cea15d26.jpg', 'username': None, 'uploaded_at': 1741748500, 'text': 'image_12032025_04_00_44_10134.jpg'}, {'photo_id': 1343297241, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5ded28373750860c829e44739b9e3e0c.jpg', 'username': None, 'uploaded_at': 1741748570, 'text': 'image_12032025_04_00_54_10135.jpg'}, {'photo_id': 1343297140, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3abf401dbed95ceebcad6c333379d502.jpg', 'username': None, 'uploaded_at': 1741748555, 'text': 'image_12032025_04_01_04_10145.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.291534423828125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0013580322265625e-05 ????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008578300476074219 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21327104, '2025-03-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1660967,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022622346878051758 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= 1660967 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668953, 'mtr_portfolio_id': 21325713, 'dashboard_result_id': 9377059, '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_P21325713_12-03-2025_03_19_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21325775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21325776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21325777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21325778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21325779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21325780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21325781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21325782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21325783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21325784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21325785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21325786, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668953, 'mtr_portfolio_id': 21326309, 'dashboard_result_id': 9377060, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326394, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668953, 'mtr_portfolio_id': 21326595, 'dashboard_result_id': 9377061, '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_P21326595_12-03-2025_04_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326619, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668953, 'mtr_portfolio_id': 21327104, 'dashboard_result_id': 9377062, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 21325713 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': 2660639, 'mtr_portfolio_id': 21325713, 'created_at': datetime.datetime(2025, 3, 12, 3, 32, 58), 'result': '0.07128346317187652', 'result_long': None, 'result_double': None}] Qualite : 0.07128346317187652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21325713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21325713_12-03-2025_03_19_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21325713 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_P21325713_12-03-2025_03_19_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21325775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21325776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21325777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21325778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21325779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21325780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21325781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21325782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21325783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21325784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21325785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21325786, 'pht': 3726}}" where mtr_portfolio_id = 21325713 and dashboard_run_id = 1668953 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`=21325713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9377059, 0.07128346317187652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21325713_12-03-2025_03_19_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21325775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21325776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21325777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21325778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21325779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21325780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21325781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21325782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21325783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21325784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21325785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21325786, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21326309 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': 2660682, 'mtr_portfolio_id': 21326309, 'created_at': datetime.datetime(2025, 3, 12, 3, 48, 7), 'result': '0.057940724705173315', 'result_long': None, 'result_double': None}] Qualite : 0.057940724705173315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21326309 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21326309%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21326309 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326394, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21326309 and dashboard_run_id = 1668953 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`=21326309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9377060, 0.057940724705173315, "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326394, 'pht': 3726}, 'url_report': ''}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21326595 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': 2660705, 'mtr_portfolio_id': 21326595, 'created_at': datetime.datetime(2025, 3, 12, 4, 3), 'result': '0.08015330301259196', 'result_long': None, 'result_double': None}] Qualite : 0.08015330301259196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21326595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21326595_12-03-2025_04_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21326595 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_P21326595_12-03-2025_04_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326619, 'pht': 3726}}" where mtr_portfolio_id = 21326595 and dashboard_run_id = 1668953 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`=21326595 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9377061, 0.08015330301259196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21326595_12-03-2025_04_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326619, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21327104 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': 2660753, 'mtr_portfolio_id': 21327104, 'created_at': datetime.datetime(2025, 3, 12, 4, 6, 1), 'result': '0.052079797904656625', 'result_long': None, 'result_double': None}] Qualite : 0.052079797904656625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21327104 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21327104%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21327104 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21327104 and dashboard_run_id = 1668953 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`=21327104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9377062, 0.052079797904656625, "{'max_time_prod_two_photos': 0, 'url_report': '', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21327106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21327107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21327108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21327109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21327110, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21327111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21327112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21327113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21327114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21327115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21327116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21327117, '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 (21325713,21326309,21326595,21327104) result : ((1343293077,), (1343293116,), (1343293140,), (1343293154,), (1343293157,), (1343293196,), (1343293222,), (1343293243,), (1343293245,), (1343293256,), (1343293288,), (1343293290,), (1343293294,), (1343293299,), (1343293337,), (1343293343,), (1343293345,), (1343293457,), (1343293463,), (1343293503,), (1343293506,), (1343293510,), (1343293578,), (1343293580,), (1343293592,), (1343293595,), (1343293617,), (1343293619,), (1343293624,), (1343293625,), (1343293644,), (1343293646,), (1343293650,), (1343293656,), (1343293659,), (1343293678,), (1343293681,), (1343293684,), (1343293713,), (1343293717,), (1343293721,), (1343293723,), (1343293725,), (1343293741,), (1343293745,), (1343293748,), (1343293750,), (1343293754,), (1343293756,), (1343293769,), (1343293773,), (1343293777,), (1343293788,), (1343293790,), (1343293840,), (1343293845,), (1343293848,), (1343293850,), (1343293873,), (1343293876,), (1343293878,), (1343293884,), (1343293950,), (1343293937,), (1343293945,), (1343293947,), (1343293978,), (1343293989,), (1343294004,), (1343294007,), (1343294041,), (1343294045,), (1343294050,), (1343294052,), (1343294095,), (1343294107,), (1343294127,), (1343294235,), (1343294543,), (1343294574,), (1343294578,), (1343294582,), (1343294690,), (1343294693,), (1343294694,), (1343294734,), (1343294737,), (1343294757,), (1343294759,), (1343294760,), (1343294783,), (1343294785,), (1343294787,), (1343294790,), (1343294792,), (1343294831,), (1343294835,), (1343294837,), (1343294882,), (1343294863,), (1343294868,), (1343294876,), (1343295048,), (1343295069,), (1343295075,), (1343295077,), (1343295079,), (1343295120,), (1343295124,), (1343295131,), (1343295154,), (1343295159,), (1343295164,), (1343295167,), (1343295186,), (1343295190,), (1343295200,), (1343295222,), (1343295226,), (1343295234,), (1343295238,), (1343295240,), (1343295288,), (1343295292,), (1343295295,), (1343295335,), (1343295339,), (1343295342,), (1343295346,), (1343295349,), (1343295366,), (1343295369,), (1343295374,), (1343295378,), (1343295410,), (1343295412,), (1343295414,), (1343295418,), (1343295441,), (1343295443,), (1343295451,), (1343295463,), (1343295482,), (1343295518,), (1343295524,), (1343295533,), (1343295535,), (1343295596,), (1343295598,), (1343295604,), (1343295626,), (1343295651,), (1343296305,), (1343296362,), (1343296424,), (1343296454,), (1343296526,), (1343296848,), (1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12032025': {'nb_upload': 17, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21327104]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763] map_info['map_portfolio_photo'] : {21327104: [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763]} final : True mtd_id 4302 list_pids : [1343297414, 1343297412, 1343297403, 1343297392, 1343297389, 1343297364, 1343297362, 1343297359, 1343297356, 1343297354, 1343297241, 1343297219, 1343297218, 1343297216, 1343297140, 1343296797, 1343296763] Looping around the photos to save general results len do output : 1 /21327104Didn'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, '2660753') ('4302', '21327104', '1343297414', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297412', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297403', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297392', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297389', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297364', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297362', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297359', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297356', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297354', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297241', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297219', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297218', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297216', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343297140', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343296797', None, None, None, None, None, '2660753') ('4302', None, None, None, None, None, None, None, '2660753') ('4302', '21327104', '1343296763', None, None, None, None, None, '2660753') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '21327104', 'None', None, None, None, None, '2660753'), ('4302', '21327104', '1343297414', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297412', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297403', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297392', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297389', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297364', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297362', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297359', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297356', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297354', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297241', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297219', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297218', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297216', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343297140', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343296797', None, None, None, None, None, '2660753'), ('4302', '21327104', '1343296763', None, None, None, None, None, '2660753')] time used for this insertion : 0.01488494873046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.952631950378418 time spend to save output : 0.015238285064697266 total time spend for step 5 : 1.9678702354431152 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 (2660753) 1.95user 1.70system 0:09.49elapsed 38%CPU (0avgtext+0avgdata 153408maxresident)k 208inputs+12424outputs (22major+60805minor)pagefaults 0swaps