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 : 3429958 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 (3993079) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3993079) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131240 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3993079'] with mtr_portfolio_ids : ['28131240'] and first list_photo_ids : [] new path : /proc/3429958/ Name: python3 Umask: 0002 State: R (running) Tgid: 3429958 Ngid: 0 Pid: 3429958 PPid: 3429957 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3429958 NSpid: 3429958 NSpgid: 3428314 NSsid: 3428314 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98736 kB VmRSS: 98736 kB RssAnon: 59912 kB RssFile: 38824 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3429958', 'Ngid': '0', 'Pid': '3429958', 'PPid': '3429957', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3429958', 'NSpid': '3429958', 'NSpgid': '3428314', 'NSsid': '3428314', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98736 kB', 'VmRSS': '98736 kB', 'RssAnon': '59912 kB', 'RssFile': '38824 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '3429958', '1106908', '0', '1106884', '865636', '98736', b'', 'marlene', '3993079') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28131240) 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 (3993079 ) ) 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 (28131240) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1392263998, 'portfolio_id': 28131240}, {'photo_id': 1392263995, 'portfolio_id': 28131240}, {'photo_id': 1392263994, 'portfolio_id': 28131240}, {'photo_id': 1392263993, 'portfolio_id': 28131240}, {'photo_id': 1392263990, 'portfolio_id': 28131240}, {'photo_id': 1392263923, 'portfolio_id': 28131240}, {'photo_id': 1392263911, 'portfolio_id': 28131240}, {'photo_id': 1392263877, 'portfolio_id': 28131240}, {'photo_id': 1392263876, 'portfolio_id': 28131240}, {'photo_id': 1392263874, 'portfolio_id': 28131240}, {'photo_id': 1392263870, 'portfolio_id': 28131240}, {'photo_id': 1392263869, 'portfolio_id': 28131240}, {'photo_id': 1392263832, 'portfolio_id': 28131240}, {'photo_id': 1392263830, 'portfolio_id': 28131240}, {'photo_id': 1392263828, 'portfolio_id': 28131240}, {'photo_id': 1392263826, 'portfolio_id': 28131240}, {'photo_id': 1392263802, 'portfolio_id': 28131240}, {'photo_id': 1392263798, 'portfolio_id': 28131240}, {'photo_id': 1392263794, 'portfolio_id': 28131240}, {'photo_id': 1392263790, 'portfolio_id': 28131240}, {'photo_id': 1392263787, 'portfolio_id': 28131240}, {'photo_id': 1392263759, 'portfolio_id': 28131240}] map_portfolio_id_photo_id: {28131240: [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759]} ##### 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.04564809799194336 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Nov 4 03:36:57 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 (28131240) 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 : 28131240 get user id for portfolio 28131240 get sub ptf for main ptf 28131240, type 3726 and hashtags ['Carton_brun', 'flou', 'environnement', 'plastique', 'papier', 'metal', 'autre_refus', 'kraft', 'cartonnette', 'Carton_gris', 'Teint_Dans_La_Masse', 'mal_croppe'] 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`=28131240 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','plastique','papier','metal','autre_refus','kraft','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) 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`=28131240 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','plastique','papier','metal','autre_refus','kraft','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_3726_mal_croppe_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)[[28131240, 28131244, 3726, 0.5, 2107753024, 979], [28131240, 28131245, 3726, 0.5, 492777938, 979], [28131240, 28131246, 3726, 0.5, 493012381, 979], [28131240, 28131247, 3726, 0.5, 492725882, 979], [28131240, 28131248, 3726, 0.5, 492668766, 979], [28131240, 28131249, 3726, 0.5, 492628673, 979], [28131240, 28131250, 3726, 0.5, 2107752406, 979], [28131240, 28131251, 3726, 0.5, 493202403, 979], [28131240, 28131252, 3726, 0.5, 702398920, 979], [28131240, 28131253, 3726, 0.5, 2107753020, 979], [28131240, 28131254, 3726, 0.5, 2107752385, 979], [28131240, 28131255, 3726, 0.5, 2107755527, 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`=28131240 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','plastique','papier','metal','autre_refus','kraft','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) 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`=28131240 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','plastique','papier','metal','autre_refus','kraft','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28131240, 'sub_port_id': 28131244, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018080, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'flou': {'main_port_id': 28131240, 'sub_port_id': 28131245, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018081, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'environnement': {'main_port_id': 28131240, 'sub_port_id': 28131246, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018082, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'plastique': {'main_port_id': 28131240, 'sub_port_id': 28131247, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018083, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'papier': {'main_port_id': 28131240, 'sub_port_id': 28131248, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018084, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'metal': {'main_port_id': 28131240, 'sub_port_id': 28131249, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018085, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'autre_refus': {'main_port_id': 28131240, 'sub_port_id': 28131250, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018086, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'kraft': {'main_port_id': 28131240, 'sub_port_id': 28131251, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018087, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'cartonnette': {'main_port_id': 28131240, 'sub_port_id': 28131252, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018088, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'Carton_gris': {'main_port_id': 28131240, 'sub_port_id': 28131253, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018089, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 28131240, 'sub_port_id': 28131254, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018090, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}, 'mal_croppe': {'main_port_id': 28131240, 'sub_port_id': 28131255, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018091, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28131244 , 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=28131240 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 (28131244) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131245 , 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=28131240 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 (28131245) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131246 , 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=28131240 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 (28131246) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131247 , 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=28131240 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 (28131247) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131248 , 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=28131240 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 (28131248) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131249 , 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=28131240 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 (28131249) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131250 , 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=28131240 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 (28131250) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131251 , 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=28131240 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 (28131251) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131252 , 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=28131240 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 (28131252) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131253 , 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=28131240 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 (28131253) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131254 , 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=28131240 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 (28131254) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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 28131255 , 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=28131240 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 (28131255) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28131240) result : ((1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) 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`=28131240 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','plastique','papier','metal','autre_refus','kraft','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) 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`=28131240 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','plastique','papier','metal','autre_refus','kraft','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_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__04112025_03_30_04_9140_4417_mal_croppe_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)[[28131240, 28131256, 4417, 0.5, 2107753024, 979], [28131240, 28131257, 4417, 0.5, 492777938, 979], [28131240, 28131258, 4417, 0.5, 493012381, 979], [28131240, 28131259, 4417, 0.5, 492725882, 979], [28131240, 28131260, 4417, 0.5, 492668766, 979], [28131240, 28131261, 4417, 0.5, 492628673, 979], [28131240, 28131262, 4417, 0.5, 2107752406, 979], [28131240, 28131263, 4417, 0.5, 493202403, 979], [28131240, 28131264, 4417, 0.5, 702398920, 979], [28131240, 28131265, 4417, 0.5, 2107753020, 979], [28131240, 28131266, 4417, 0.5, 2107752385, 979], [28131240, 28131267, 4417, 0.5, 2107755527, 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`=28131240 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','plastique','papier','metal','autre_refus','kraft','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) 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`=28131240 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','environnement','plastique','papier','metal','autre_refus','kraft','cartonnette','Carton_gris','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28131240, 'sub_port_id': 28131256, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018092, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'flou': {'main_port_id': 28131240, 'sub_port_id': 28131257, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018093, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'environnement': {'main_port_id': 28131240, 'sub_port_id': 28131258, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018094, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'plastique': {'main_port_id': 28131240, 'sub_port_id': 28131259, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018095, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'papier': {'main_port_id': 28131240, 'sub_port_id': 28131260, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018096, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'metal': {'main_port_id': 28131240, 'sub_port_id': 28131261, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018097, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'autre_refus': {'main_port_id': 28131240, 'sub_port_id': 28131262, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018098, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'kraft': {'main_port_id': 28131240, 'sub_port_id': 28131263, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018099, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'cartonnette': {'main_port_id': 28131240, 'sub_port_id': 28131264, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018100, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'Carton_gris': {'main_port_id': 28131240, 'sub_port_id': 28131265, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018101, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28131240, 'sub_port_id': 28131266, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018102, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}, 'mal_croppe': {'main_port_id': 28131240, 'sub_port_id': 28131267, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19018103, 'last_updated_at': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 3, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131244 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131257,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131245 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131258,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131246 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131259,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131247 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131260,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131248 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131261,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131249 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131262,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131250 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131263,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131251 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131264,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131252 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131265,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131253 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131266,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131254 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28131267,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28131255 lien utilise dans velours : https://marlene.fotonower.com/velours/28131256,28131257,28131258,28131259,28131260,28131261,28131262,28131263,28131264,28131265,28131266,28131267?tags=Carton_brun,flou,environnement,plastique,papier,metal,autre_refus,kraft,cartonnette,Carton_gris,Teint_Dans_La_Masse,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28131240]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759] map_info['map_portfolio_photo'] : {28131240: [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759]} final : False mtd_id 4302 list_pids : [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759] Looping around the photos to save general results len do output : 1 /28131240. 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, '3993079') ('4302', '28131240', '1392263998', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263995', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263994', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263993', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263990', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263923', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263911', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263877', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263876', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263874', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263870', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263869', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263832', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263830', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263828', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263826', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263802', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263798', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263794', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263790', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263787', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263759', None, None, None, None, None, '3993079') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '28131240', "{'Carton_brun': 28131244, 'flou': 28131245, 'environnement': 28131246, 'plastique': 28131247, 'papier': 28131248, 'metal': 28131249, 'autre_refus': 28131250, 'kraft': 28131251, 'cartonnette': 28131252, 'Carton_gris': 28131253, 'Teint_Dans_La_Masse': 28131254, 'mal_croppe': 28131255}", None, None, None, None, '3993079'), ('4302', '28131240', '1392263998', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263995', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263994', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263993', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263990', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263923', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263911', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263877', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263876', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263874', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263870', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263869', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263832', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263830', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263828', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263826', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263802', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263798', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263794', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263790', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263787', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263759', None, None, None, None, None, '3993079')] time used for this insertion : 0.016032695770263672 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.109863758087158 time spend to save output : 0.016403913497924805 total time spend for step 1 : 2.126267671585083 step2:final Tue Nov 4 03:36:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (28131240) 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 28131240 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1392263759,1392263802,1392263798,1392263794,1392263790,1392263787,1392263832,1392263830,1392263828,1392263826,1392263877,1392263876,1392263874,1392263870,1392263869,1392263923,1392263911,1392263998,1392263995,1392263994,1392263993,1392263990); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28131240]) Inside saveOutput : final : False verbose : True original output for save of step final : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} new output for save of step final : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759] map_info['map_portfolio_photo'] : {28131240: [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759]} final : False mtd_id 4302 list_pids : [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759] Looping around the photos to save general results len do output : 22 /1392263998.Didn't retrieve data . /1392263995.Didn't retrieve data . /1392263994.Didn't retrieve data . /1392263993.Didn't retrieve data . /1392263990.Didn't retrieve data . /1392263923.Didn't retrieve data . /1392263911.Didn't retrieve data . /1392263877.Didn't retrieve data . /1392263876.Didn't retrieve data . /1392263874.Didn't retrieve data . /1392263870.Didn't retrieve data . /1392263869.Didn't retrieve data . /1392263832.Didn't retrieve data . /1392263830.Didn't retrieve data . /1392263828.Didn't retrieve data . /1392263826.Didn't retrieve data . /1392263802.Didn't retrieve data . /1392263798.Didn't retrieve data . /1392263794.Didn't retrieve data . /1392263790.Didn't retrieve data . /1392263787.Didn't retrieve data . /1392263759.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, '3993079') ('4302', '28131240', '1392263998', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263995', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263994', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263993', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263990', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263923', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263911', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263877', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263876', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263874', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263870', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263869', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263832', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263830', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263828', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263826', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263802', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263798', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263794', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263790', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263787', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263759', None, None, None, None, None, '3993079') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 66 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', '28131240', '1392263998', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263995', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263994', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263993', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263990', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263923', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263911', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263877', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263876', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263874', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263870', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263869', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263832', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263830', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263828', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263826', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263802', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263798', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263794', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263790', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263787', '0.0', None, None, None, None, '3993079'), ('4302', '28131240', '1392263759', '0.0', None, None, None, None, '3993079')] time used for this insertion : 0.015295982360839844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.015401601791381836 time spend to save output : 0.01627802848815918 total time spend for step 2 : 0.031679630279541016 step3:velours_tree Tue Nov 4 03:36:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28131240: [{'Carton_brun': 28131244, 'flou': 28131245, 'environnement': 28131246, 'plastique': 28131247, 'papier': 28131248, 'metal': 28131249, 'autre_refus': 28131250, 'kraft': 28131251, 'cartonnette': 28131252, 'Carton_gris': 28131253, 'Teint_Dans_La_Masse': 28131254, 'mal_croppe': 28131255}]} input_args_next_step : {28131240: ()} output_args : {28131240: [{'Carton_brun': 28131244, 'flou': 28131245, 'environnement': 28131246, 'plastique': 28131247, 'papier': 28131248, 'metal': 28131249, 'autre_refus': 28131250, 'kraft': 28131251, 'cartonnette': 28131252, 'Carton_gris': 28131253, 'Teint_Dans_La_Masse': 28131254, 'mal_croppe': 28131255}]} args : 28131240 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 28131244, 'flou': 28131245, 'environnement': 28131246, 'plastique': 28131247, 'papier': 28131248, 'metal': 28131249, 'autre_refus': 28131250, 'kraft': 28131251, 'cartonnette': 28131252, 'Carton_gris': 28131253, 'Teint_Dans_La_Masse': 28131254, 'mal_croppe': 28131255},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28131240) 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([28131240]) 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.34410834312438965 time spend to save output : 6.0558319091796875e-05 total time spend for step 3 : 0.34416890144348145 step4:send_mail_cod Tue Nov 4 03:36:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} input_args_next_step : {1392263998: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263998 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263995 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263994 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263993 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263990 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263923 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263911 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263877 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263876 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263874 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263870 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263869 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263832 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263830 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263828 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263826 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263802 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263798 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263794 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263790 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263787 depend.output_id : 0 input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ()} output_args : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',)} args : 1392263759 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 : {28131240: [{'Carton_brun': 28131244, 'flou': 28131245, 'environnement': 28131246, 'plastique': 28131247, 'papier': 28131248, 'metal': 28131249, 'autre_refus': 28131250, 'kraft': 28131251, 'cartonnette': 28131252, 'Carton_gris': 28131253, 'Teint_Dans_La_Masse': 28131254, 'mal_croppe': 28131255}]} input_args_next_step : {1392263998: ('0.0',), 1392263995: ('0.0',), 1392263994: ('0.0',), 1392263993: ('0.0',), 1392263990: ('0.0',), 1392263923: ('0.0',), 1392263911: ('0.0',), 1392263877: ('0.0',), 1392263876: ('0.0',), 1392263874: ('0.0',), 1392263870: ('0.0',), 1392263869: ('0.0',), 1392263832: ('0.0',), 1392263830: ('0.0',), 1392263828: ('0.0',), 1392263826: ('0.0',), 1392263802: ('0.0',), 1392263798: ('0.0',), 1392263794: ('0.0',), 1392263790: ('0.0',), 1392263787: ('0.0',), 1392263759: ('0.0',), 28131240: ()} output_args : {28131240: [{'Carton_brun': 28131244, 'flou': 28131245, 'environnement': 28131246, 'plastique': 28131247, 'papier': 28131248, 'metal': 28131249, 'autre_refus': 28131250, 'kraft': 28131251, 'cartonnette': 28131252, 'Carton_gris': 28131253, 'Teint_Dans_La_Masse': 28131254, 'mal_croppe': 28131255}]} args : 28131240 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 :23, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28131240) 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_view ph WHERE photo_id IN (1392263998,1392263995,1392263994,1392263993,1392263990,1392263923,1392263911,1392263877,1392263876,1392263874,1392263870,1392263869,1392263832,1392263830,1392263828,1392263826,1392263802,1392263798,1392263794,1392263790,1392263787,1392263759) Found this number of photos: 22 ##### Call download_photos : nb_thread : 5 begin to download photo : 1392263759 begin to download photo : 1392263802 begin to download photo : 1392263869 begin to download photo : 1392263911 begin to download photo : 1392263995 download finish for photo 1392263911 begin to download photo : 1392263923 download finish for photo 1392263759 begin to download photo : 1392263787 download finish for photo 1392263802 begin to download photo : 1392263826 download finish for photo 1392263869 begin to download photo : 1392263870 download finish for photo 1392263995 begin to download photo : 1392263998 download finish for photo 1392263870 begin to download photo : 1392263874 download finish for photo 1392263923 begin to download photo : 1392263990 download finish for photo 1392263998 download finish for photo 1392263826 begin to download photo : 1392263828 download finish for photo 1392263787 begin to download photo : 1392263790 download finish for photo 1392263990 begin to download photo : 1392263993 download finish for photo 1392263874 begin to download photo : 1392263876 download finish for photo 1392263828 begin to download photo : 1392263830 download finish for photo 1392263790 begin to download photo : 1392263794 download finish for photo 1392263993 begin to download photo : 1392263994 download finish for photo 1392263876 begin to download photo : 1392263877 download finish for photo 1392263830 begin to download photo : 1392263832 download finish for photo 1392263794 begin to download photo : 1392263798 download finish for photo 1392263994 download finish for photo 1392263877 download finish for photo 1392263832 download finish for photo 1392263798 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette281312451762223820/ imagette281312471762223820/ imagette281312491762223820/ imagette281312501762223820/ imagette281312511762223820/ imagette281312521762223820/ imagette281312551762223820/ imagette281312441762223820/ imagette281312531762223820/ imagette281312541762223820/ length of list_filenames : 22 ; length of list_pids : 22 ; length of list_args : 22 results_Auto_P28131240_04-11-2025_03_37_00.pdf 28131245 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281312451762223820 28131247 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131247 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281312471762223820 28131249 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131249 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281312491762223820 28131250 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131250 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281312501762223820 28131251 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131251 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281312511762223820 28131252 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131252 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281312521762223820 28131255 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131255 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281312551762223820 28131244 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131244 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281312441762223820 28131253 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131253 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281312531762223820 28131254 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131254 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281312541762223820 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28131240 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28131256,28131257,28131258,28131259,28131260,28131261,28131262,28131263,28131264,28131265,28131266,28131267?tags=Carton_brun,flou,environnement,plastique,papier,metal,autre_refus,kraft,cartonnette,Carton_gris,Teint_Dans_La_Masse,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1392263998] : ('0.0',) no score found for photo 1392263998 We are sending mail with results at report@fotonower.com args[1392263995] : ('0.0',) no score found for photo 1392263995 We are sending mail with results at report@fotonower.com args[1392263994] : ('0.0',) no score found for photo 1392263994 We are sending mail with results at report@fotonower.com args[1392263993] : ('0.0',) no score found for photo 1392263993 We are sending mail with results at report@fotonower.com args[1392263990] : ('0.0',) no score found for photo 1392263990 We are sending mail with results at report@fotonower.com args[1392263923] : ('0.0',) no score found for photo 1392263923 We are sending mail with results at report@fotonower.com args[1392263911] : ('0.0',) no score found for photo 1392263911 We are sending mail with results at report@fotonower.com args[1392263877] : ('0.0',) no score found for photo 1392263877 We are sending mail with results at report@fotonower.com args[1392263876] : ('0.0',) no score found for photo 1392263876 We are sending mail with results at report@fotonower.com args[1392263874] : ('0.0',) no score found for photo 1392263874 We are sending mail with results at report@fotonower.com args[1392263870] : ('0.0',) no score found for photo 1392263870 We are sending mail with results at report@fotonower.com args[1392263869] : ('0.0',) no score found for photo 1392263869 We are sending mail with results at report@fotonower.com args[1392263832] : ('0.0',) no score found for photo 1392263832 We are sending mail with results at report@fotonower.com args[1392263830] : ('0.0',) no score found for photo 1392263830 We are sending mail with results at report@fotonower.com args[1392263828] : ('0.0',) no score found for photo 1392263828 We are sending mail with results at report@fotonower.com args[1392263826] : ('0.0',) no score found for photo 1392263826 We are sending mail with results at report@fotonower.com args[1392263802] : ('0.0',) no score found for photo 1392263802 We are sending mail with results at report@fotonower.com args[1392263798] : ('0.0',) no score found for photo 1392263798 We are sending mail with results at report@fotonower.com args[1392263794] : ('0.0',) no score found for photo 1392263794 We are sending mail with results at report@fotonower.com args[1392263790] : ('0.0',) no score found for photo 1392263790 We are sending mail with results at report@fotonower.com args[1392263787] : ('0.0',) no score found for photo 1392263787 We are sending mail with results at report@fotonower.com args[1392263759] : ('0.0',) no score found for photo 1392263759 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28131240_04-11-2025_03_37_00.pdf results_Auto_P28131240_04-11-2025_03_37_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28131240_04-11-2025_03_37_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28131240','results_Auto_P28131240_04-11-2025_03_37_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28131240_04-11-2025_03_37_00.pdf','pdf','','0.18','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28131240]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759] map_info['map_portfolio_photo'] : {28131240: [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759]} final : False mtd_id 4302 list_pids : [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759] 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, '3993079') ('4302', '28131240', '1392263998', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263995', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263994', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263993', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263990', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263923', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263911', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263877', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263876', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263874', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263870', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263869', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263832', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263830', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263828', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263826', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263802', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263798', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263794', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263790', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263787', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263759', None, None, None, None, None, '3993079') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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', '28131240', '1392263998', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263995', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263994', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263993', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263990', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263923', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263911', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263877', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263876', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263874', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263870', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263869', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263832', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263830', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263828', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263826', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263802', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263798', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263794', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263790', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263787', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263759', None, None, None, None, None, '3993079')] time used for this insertion : 0.01591801643371582 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2896432876586914 time spend to save output : 0.016160964965820312 total time spend for step 4 : 2.3058042526245117 step5:split_time_score Tue Nov 4 03:37:02 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 : ['28131240'] 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 : [('28131240',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28131240) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1392263995: {'path': 'temp/1762223819_3429958_1392263995_2ba6211826ba356bb5dd75f22465dbe5.jpg', 'extension': 'jpg'}, 1392263998: {'path': 'temp/1762223819_3429958_1392263998_cb50b02a1bc26d2f89abbb216ac6eb25.jpg', 'extension': 'jpg'}, 1392263911: {'path': 'temp/1762223819_3429958_1392263911_6548c32fb658d63317e3d86bfb03a94b.jpg', 'extension': 'jpg'}, 1392263923: {'path': 'temp/1762223819_3429958_1392263923_4d2e10ff74e22be10605234fab539bb7.jpg', 'extension': 'jpg'}, 1392263990: {'path': 'temp/1762223819_3429958_1392263990_fb998d27d3e65395f70fd5ec2d391c48.jpg', 'extension': 'jpg'}, 1392263993: {'path': 'temp/1762223819_3429958_1392263993_044bc9ce371a0c616a260d93553621b9.jpg', 'extension': 'jpg'}, 1392263994: {'path': 'temp/1762223819_3429958_1392263994_7e7409bdca2cfde5ce068a568ef280a5.jpg', 'extension': 'jpg'}, 1392263869: {'path': 'temp/1762223819_3429958_1392263869_28dba94fbde8028b975d59af8d862809.jpg', 'extension': 'jpg'}, 1392263870: {'path': 'temp/1762223819_3429958_1392263870_d8972053c032fb5129fb3dc0c759cebc.jpg', 'extension': 'jpg'}, 1392263874: {'path': 'temp/1762223819_3429958_1392263874_b838927c0062a07a0d9608521ad51755.jpg', 'extension': 'jpg'}, 1392263876: {'path': 'temp/1762223819_3429958_1392263876_6cde7365af5253c04b0c462e71c999df.jpg', 'extension': 'jpg'}, 1392263877: {'path': 'temp/1762223819_3429958_1392263877_2286c0196d7c04b85eaecb7ff9ff99b3.jpg', 'extension': 'jpg'}, 1392263802: {'path': 'temp/1762223819_3429958_1392263802_de0c44977f098d5702e0976ed2a3fd6b.jpg', 'extension': 'jpg'}, 1392263826: {'path': 'temp/1762223819_3429958_1392263826_d182e45582cd2f6cf87c81b59844488e.jpg', 'extension': 'jpg'}, 1392263828: {'path': 'temp/1762223819_3429958_1392263828_4e0e68994600b2e922c381231b55e867.jpg', 'extension': 'jpg'}, 1392263830: {'path': 'temp/1762223819_3429958_1392263830_db0c5282c68acf2ed758c187c4653761.jpg', 'extension': 'jpg'}, 1392263832: {'path': 'temp/1762223819_3429958_1392263832_f3d67509893ddb5f5af452cc0a983da3.jpg', 'extension': 'jpg'}, 1392263759: {'path': 'temp/1762223819_3429958_1392263759_d6327a67fb073a9ffd1daafc2809b747.jpg', 'extension': 'jpg'}, 1392263787: {'path': 'temp/1762223819_3429958_1392263787_99ce3b193e8016531b68b041cf6424f6.jpg', 'extension': 'jpg'}, 1392263790: {'path': 'temp/1762223819_3429958_1392263790_25128bcf78eb09d3dfbcd8cfdf2b6e9b.jpg', 'extension': 'jpg'}, 1392263794: {'path': 'temp/1762223819_3429958_1392263794_952a88e458e46ef33b24e07543cc7d52.jpg', 'extension': 'jpg'}, 1392263798: {'path': 'temp/1762223819_3429958_1392263798_002dd76a74e69550a84db9357e57eed5.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 = 28131240; (('arc_en_ciel_jrm_live',),) 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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28131240 group by h (('03', 22),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28131240 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 (28131240) 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 (28131240) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04112025 28131240 Nombre de photos uploadées : 22 / 23040 (0%) 04112025 28131240 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 04112025 28131240 Nombre de photos taguées (volume) : 0 / 22 (0%) [{'photo_id': 1392263759, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/d6327a67fb073a9ffd1daafc2809b747.jpg', 'username': None, 'uploaded_at': 1762223473, 'text': 'image_04112025_03_30_04_9138.jpg'}, {'photo_id': 1392263802, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/de0c44977f098d5702e0976ed2a3fd6b.jpg', 'username': None, 'uploaded_at': 1762223527, 'text': 'image_04112025_03_30_44_10133.jpg'}, {'photo_id': 1392263798, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/002dd76a74e69550a84db9357e57eed5.jpg', 'username': None, 'uploaded_at': 1762223527, 'text': 'image_04112025_03_31_04_10140.jpg'}, {'photo_id': 1392263794, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/952a88e458e46ef33b24e07543cc7d52.jpg', 'username': None, 'uploaded_at': 1762223527, 'text': 'image_04112025_03_31_14_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001928091049194336 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 28131240, '2025-11-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-11-04' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2502996,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21482110023498535 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= 2502996 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2502996, 'dashboard_run_id': 2511565, 'mtr_portfolio_id': 28129163, 'dashboard_result_id': 16746988, '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_P28129163_04-11-2025_03_04_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28129164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129170, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28129174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129175, 'pht': 3726}}"}, {'dashboat_entry_day': 2502996, 'dashboard_run_id': 2511565, 'mtr_portfolio_id': 28129705, 'dashboard_result_id': 16746989, '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_P28129705_04-11-2025_03_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28129749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28129753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129760, 'pht': 3726}}"}, {'dashboat_entry_day': 2502996, 'dashboard_run_id': 2511565, 'mtr_portfolio_id': 28130392, 'dashboard_result_id': 16746990, '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_P28130392_04-11-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28130417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28130418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28130419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28130420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28130421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28130422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28130423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28130424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28130425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28130426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28130427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28130428, 'pht': 3726}}"}, {'dashboat_entry_day': 2502996, 'dashboard_run_id': 2511565, 'mtr_portfolio_id': 28131240, 'dashboard_result_id': 16746992, '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 = 28129163 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': 3992587, 'mtr_portfolio_id': 28129163, 'created_at': datetime.datetime(2025, 11, 4, 3, 4, 57), 'result': '0.032857827715161596', 'result_long': None, 'result_double': None}] Qualite : 0.032857827715161596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28129163 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28129163_04-11-2025_03_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28129163 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_P28129163_04-11-2025_03_04_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28129164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129170, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28129174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129175, 'pht': 3726}}" where mtr_portfolio_id = 28129163 and dashboard_run_id = 2511565 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`=28129163 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16746988, 0.032857827715161596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28129163_04-11-2025_03_04_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28129164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129170, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28129174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129175, '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 = 28129705 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': 3992718, 'mtr_portfolio_id': 28129705, 'created_at': datetime.datetime(2025, 11, 4, 3, 16, 58), 'result': '0.05409086087474541', 'result_long': None, 'result_double': None}] Qualite : 0.05409086087474541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28129705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28129705_04-11-2025_03_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28129705 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_P28129705_04-11-2025_03_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28129749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28129753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129760, 'pht': 3726}}" where mtr_portfolio_id = 28129705 and dashboard_run_id = 2511565 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`=28129705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16746989, 0.05409086087474541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28129705_04-11-2025_03_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28129749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28129753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129760, '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 = 28130392 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': 3992873, 'mtr_portfolio_id': 28130392, 'created_at': datetime.datetime(2025, 11, 4, 3, 32, 58), 'result': '0.07114199785874997', 'result_long': None, 'result_double': None}] Qualite : 0.07114199785874997 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28130392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28130392_04-11-2025_03_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28130392 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_P28130392_04-11-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28130417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28130418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28130419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28130420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28130421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28130422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28130423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28130424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28130425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28130426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28130427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28130428, 'pht': 3726}}" where mtr_portfolio_id = 28130392 and dashboard_run_id = 2511565 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`=28130392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16746990, 0.07114199785874997, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28130392_04-11-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28130417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28130418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28130419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28130420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28130421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28130422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28130423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28130424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28130425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28130426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28130427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28130428, '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 = 28131240 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 28131240 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28131240 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28131240 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28131240 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28131240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28131240_04-11-2025_03_37_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28131240 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_P28131240_04-11-2025_03_37_00.pdf'}" where mtr_portfolio_id = 28131240 and dashboard_run_id = 2511565 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28129163,28129705,28130392,28131240) result : ((1392251832,), (1392251866,), (1392251901,), (1392251936,), (1392251972,), (1392252290,), (1392252301,), (1392252305,), (1392252455,), (1392252487,), (1392252519,), (1392252552,), (1392252742,), (1392252743,), (1392252744,), (1392252746,), (1392252750,), (1392252753,), (1392252773,), (1392252777,), (1392252781,), (1392252831,), (1392252832,), (1392252844,), (1392252877,), (1392252914,), (1392252954,), (1392253073,), (1392253110,), (1392253242,), (1392253277,), (1392253310,), (1392253346,), (1392253369,), (1392253373,), (1392253545,), (1392253547,), (1392253548,), (1392253850,), (1392253876,), (1392253878,), (1392253982,), (1392253985,), (1392253988,), (1392254013,), (1392254014,), (1392254016,), (1392254019,), (1392254024,), (1392254200,), (1392254212,), (1392254214,), (1392254217,), (1392254221,), (1392254224,), (1392254232,), (1392254235,), (1392254237,), (1392254275,), (1392254278,), (1392254283,), (1392254285,), (1392254288,), (1392254298,), (1392254332,), (1392254368,), (1392254403,), (1392254438,), (1392254972,), (1392255004,), (1392255038,), (1392255070,), (1392255692,), (1392255880,), (1392254904,), (1392254939,), (1392255308,), (1392255405,), (1392255494,), (1392255560,), (1392255623,), (1392256068,), (1392256132,), (1392256192,), (1392256268,), (1392256804,), (1392256816,), (1392256848,), (1392256875,), (1392256901,), (1392256958,), (1392257026,), (1392257096,), (1392257164,), (1392257503,), (1392257536,), (1392257540,), (1392257543,), (1392257561,), (1392257602,), (1392257639,), (1392257666,), (1392257691,), (1392257694,), (1392257739,), (1392257755,), (1392257769,), (1392257775,), (1392257788,), (1392257790,), (1392257805,), (1392257807,), (1392257809,), (1392257812,), (1392257816,), (1392257820,), (1392257853,), (1392257888,), (1392257920,), (1392258349,), (1392258383,), (1392258417,), (1392258427,), (1392258431,), (1392258436,), (1392258646,), (1392258699,), (1392258740,), (1392258775,), (1392258843,), (1392258880,), (1392259141,), (1392259148,), (1392259187,), (1392259219,), (1392259243,), (1392259292,), (1392259293,), (1392259294,), (1392259296,), (1392259300,), (1392259304,), (1392259319,), (1392259323,), (1392259325,), (1392259327,), (1392259760,), (1392259655,), (1392259692,), (1392259726,), (1392259880,), (1392259917,), (1392259987,), (1392260066,), (1392260138,), (1392260433,), (1392260444,), (1392260447,), (1392260452,), (1392260475,), (1392260478,), (1392260482,), (1392260540,), (1392260546,), (1392260547,), (1392260550,), (1392260553,), (1392260573,), (1392260576,), (1392260579,), (1392260583,), (1392260587,), (1392260590,), (1392260596,), (1392260600,), (1392260607,), (1392260613,), (1392260614,), (1392260615,), (1392260617,), (1392260620,), (1392260676,), (1392260689,), (1392260691,), (1392260693,), (1392260697,), (1392260698,), (1392261048,), (1392261114,), (1392261188,), (1392261793,), (1392261839,), (1392261886,), (1392261941,), (1392261978,), (1392262016,), (1392262336,), (1392262341,), (1392262346,), (1392262349,), (1392262352,), (1392262404,), (1392262410,), (1392262453,), (1392262491,), (1392263163,), (1392263231,), (1392263437,), (1392263473,), (1392263509,), (1392263545,), (1392263724,), (1392263726,), (1392263727,), (1392263730,), (1392263760,), (1392263762,), (1392263765,), (1392263768,), (1392263771,), (1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04112025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28131240]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759] map_info['map_portfolio_photo'] : {28131240: [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759]} final : True mtd_id 4302 list_pids : [1392263998, 1392263995, 1392263994, 1392263993, 1392263990, 1392263923, 1392263911, 1392263877, 1392263876, 1392263874, 1392263870, 1392263869, 1392263832, 1392263830, 1392263828, 1392263826, 1392263802, 1392263798, 1392263794, 1392263790, 1392263787, 1392263759] Looping around the photos to save general results len do output : 1 /28131240Didn'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, '3993079') ('4302', '28131240', '1392263998', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263995', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263994', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263993', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263990', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263923', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263911', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263877', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263876', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263874', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263870', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263869', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263832', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263830', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263828', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263826', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263802', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263798', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263794', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263790', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263787', None, None, None, None, None, '3993079') ('4302', None, None, None, None, None, None, None, '3993079') ('4302', '28131240', '1392263759', None, None, None, None, None, '3993079') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '28131240', 'None', None, None, None, None, '3993079'), ('4302', '28131240', '1392263998', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263995', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263994', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263993', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263990', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263923', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263911', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263877', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263876', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263874', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263870', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263869', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263832', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263830', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263828', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263826', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263802', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263798', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263794', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263790', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263787', None, None, None, None, None, '3993079'), ('4302', '28131240', '1392263759', None, None, None, None, None, '3993079')] time used for this insertion : 0.016803979873657227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5099413394927979 time spend to save output : 0.01712346076965332 total time spend for step 5 : 0.5270648002624512 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 (3993079) 2.27user 1.90system 0:07.31elapsed 57%CPU (0avgtext+0avgdata 161128maxresident)k 1152inputs+11848outputs (14major+79506minor)pagefaults 0swaps