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 : 3601525 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 (3392510) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3392510) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480144 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3392510'] with mtr_portfolio_ids : ['25480144'] and first list_photo_ids : [] new path : /proc/3601525/ Name: python3 Umask: 0002 State: R (running) Tgid: 3601525 Ngid: 0 Pid: 3601525 PPid: 3601524 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3601525 NSpid: 3601525 NSpgid: 3600492 NSsid: 3600492 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99452 kB VmRSS: 99452 kB RssAnon: 59824 kB RssFile: 39628 kB RssShmem: 0 kB VmData: 865716 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 49 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3601525', 'Ngid': '0', 'Pid': '3601525', 'PPid': '3601524', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3601525', 'NSpid': '3601525', 'NSpgid': '3600492', 'NSsid': '3600492', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99452 kB', 'VmRSS': '99452 kB', 'RssAnon': '59824 kB', 'RssFile': '39628 kB', 'RssShmem': '0 kB', 'VmData': '865716 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '49', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '3601525', '1106964', '0', '1106964', '865716', '99452', b'', 'marlene', '3392510') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25480144) 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 (3392510 ) ) 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 (25480144) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374373682, 'portfolio_id': 25480144}, {'photo_id': 1374373680, 'portfolio_id': 25480144}, {'photo_id': 1374373679, 'portfolio_id': 25480144}, {'photo_id': 1374373678, 'portfolio_id': 25480144}, {'photo_id': 1374373671, 'portfolio_id': 25480144}, {'photo_id': 1374373665, 'portfolio_id': 25480144}, {'photo_id': 1374373647, 'portfolio_id': 25480144}, {'photo_id': 1374373646, 'portfolio_id': 25480144}, {'photo_id': 1374373644, 'portfolio_id': 25480144}, {'photo_id': 1374373643, 'portfolio_id': 25480144}, {'photo_id': 1374373642, 'portfolio_id': 25480144}, {'photo_id': 1374373641, 'portfolio_id': 25480144}, {'photo_id': 1374373635, 'portfolio_id': 25480144}, {'photo_id': 1374373633, 'portfolio_id': 25480144}, {'photo_id': 1374373630, 'portfolio_id': 25480144}, {'photo_id': 1374373629, 'portfolio_id': 25480144}, {'photo_id': 1374373628, 'portfolio_id': 25480144}, {'photo_id': 1374373627, 'portfolio_id': 25480144}, {'photo_id': 1374373591, 'portfolio_id': 25480144}, {'photo_id': 1374373574, 'portfolio_id': 25480144}, {'photo_id': 1374373571, 'portfolio_id': 25480144}, {'photo_id': 1374373569, 'portfolio_id': 25480144}, {'photo_id': 1374373568, 'portfolio_id': 25480144}, {'photo_id': 1374373567, 'portfolio_id': 25480144}, {'photo_id': 1374373562, 'portfolio_id': 25480144}, {'photo_id': 1374373542, 'portfolio_id': 25480144}, {'photo_id': 1374373540, 'portfolio_id': 25480144}, {'photo_id': 1374373539, 'portfolio_id': 25480144}, {'photo_id': 1374373538, 'portfolio_id': 25480144}, {'photo_id': 1374373537, 'portfolio_id': 25480144}, {'photo_id': 1374373535, 'portfolio_id': 25480144}, {'photo_id': 1374373519, 'portfolio_id': 25480144}, {'photo_id': 1374373518, 'portfolio_id': 25480144}, {'photo_id': 1374373516, 'portfolio_id': 25480144}, {'photo_id': 1374373515, 'portfolio_id': 25480144}, {'photo_id': 1374373508, 'portfolio_id': 25480144}, {'photo_id': 1374373502, 'portfolio_id': 25480144}, {'photo_id': 1374373486, 'portfolio_id': 25480144}, {'photo_id': 1374373484, 'portfolio_id': 25480144}, {'photo_id': 1374373483, 'portfolio_id': 25480144}, {'photo_id': 1374373482, 'portfolio_id': 25480144}, {'photo_id': 1374373480, 'portfolio_id': 25480144}, {'photo_id': 1374373479, 'portfolio_id': 25480144}, {'photo_id': 1374373457, 'portfolio_id': 25480144}, {'photo_id': 1374373455, 'portfolio_id': 25480144}, {'photo_id': 1374373454, 'portfolio_id': 25480144}, {'photo_id': 1374373453, 'portfolio_id': 25480144}, {'photo_id': 1374373452, 'portfolio_id': 25480144}, {'photo_id': 1374373448, 'portfolio_id': 25480144}] map_portfolio_id_photo_id: {25480144: [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627, 1374373591, 1374373574, 1374373571, 1374373569, 1374373568, 1374373567, 1374373562, 1374373542, 1374373540, 1374373539, 1374373538, 1374373537, 1374373535, 1374373519, 1374373518, 1374373516, 1374373515, 1374373508, 1374373502, 1374373486, 1374373484, 1374373483, 1374373482, 1374373480, 1374373479, 1374373457, 1374373455, 1374373454, 1374373453, 1374373452, 1374373448]} ##### 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.016214370727539062 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jul 30 00:24:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25480144) 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 : 25480144 get user id for portfolio 25480144 get sub ptf for main ptf 25480144, type 3726 and hashtags ['kraft', 'mal_croppe', 'flou', 'plastique', 'Carton_gris', 'cartonnette', 'Carton_brun', 'papier', 'metal', 'Teint_Dans_La_Masse', 'autre_refus', 'environnement'] 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`=25480144 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','flou','plastique','Carton_gris','cartonnette','Carton_brun','papier','metal','Teint_Dans_La_Masse','autre_refus','environnement')) 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`=25480144 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','flou','plastique','Carton_gris','cartonnette','Carton_brun','papier','metal','Teint_Dans_La_Masse','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 25480144, 'sub_port_id': 25480178, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181519, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'Carton_gris': {'main_port_id': 25480144, 'sub_port_id': 25480179, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181520, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 25480144, 'sub_port_id': 25480180, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181521, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'environnement': {'main_port_id': 25480144, 'sub_port_id': 25480181, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181522, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'plastique': {'main_port_id': 25480144, 'sub_port_id': 25480182, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181523, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'metal': {'main_port_id': 25480144, 'sub_port_id': 25480183, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181524, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'flou': {'main_port_id': 25480144, 'sub_port_id': 25480184, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181525, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'mal_croppe': {'main_port_id': 25480144, 'sub_port_id': 25480185, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181526, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'kraft': {'main_port_id': 25480144, 'sub_port_id': 25480186, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181527, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'papier': {'main_port_id': 25480144, 'sub_port_id': 25480187, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181528, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'autre_refus': {'main_port_id': 25480144, 'sub_port_id': 25480188, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181529, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}, 'cartonnette': {'main_port_id': 25480144, 'sub_port_id': 25480189, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181530, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25480178 , 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=25480144 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 (25480178) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480179 , 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=25480144 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 (25480179) result : ((1374373621,), (1374373622,), (1374373623,), (1374373624,), (1374373625,), (1374373626,), (1374373670,), (1374373672,), (1374373673,), (1374373674,), (1374373675,), (1374373676,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480180 , 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=25480144 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 (25480180) result : ((1374373612,), (1374373613,), (1374373614,), (1374373615,), (1374373616,), (1374373617,), (1374373659,), (1374373660,), (1374373661,), (1374373662,), (1374373663,), (1374373664,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480181 , 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=25480144 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 (25480181) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480182 , 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=25480144 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 (25480182) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480183 , 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=25480144 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 (25480183) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480184 , 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=25480144 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 (25480184) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480185 , 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=25480144 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 (25480185) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480186 , 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=25480144 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 (25480186) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480187 , 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=25480144 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 (25480187) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480188 , 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=25480144 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 (25480188) result : ((1374373618,), (1374373619,), (1374373620,), (1374373666,), (1374373667,), (1374373668,), (1374373669,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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 25480189 , 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=25480144 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 (25480189) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25480144) result : ((1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) 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`=25480144 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','flou','plastique','Carton_gris','cartonnette','Carton_brun','papier','metal','Teint_Dans_La_Masse','autre_refus','environnement')) 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`=25480144 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','flou','plastique','Carton_gris','cartonnette','Carton_brun','papier','metal','Teint_Dans_La_Masse','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 25480144, 'sub_port_id': 25480190, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181531, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'Carton_gris': {'main_port_id': 25480144, 'sub_port_id': 25480191, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181532, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25480144, 'sub_port_id': 25480192, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181533, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'environnement': {'main_port_id': 25480144, 'sub_port_id': 25480193, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181534, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'plastique': {'main_port_id': 25480144, 'sub_port_id': 25480194, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181535, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'metal': {'main_port_id': 25480144, 'sub_port_id': 25480195, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181536, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'flou': {'main_port_id': 25480144, 'sub_port_id': 25480196, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181537, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'mal_croppe': {'main_port_id': 25480144, 'sub_port_id': 25480197, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181538, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'kraft': {'main_port_id': 25480144, 'sub_port_id': 25480198, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181539, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'papier': {'main_port_id': 25480144, 'sub_port_id': 25480199, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181540, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'autre_refus': {'main_port_id': 25480144, 'sub_port_id': 25480200, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181541, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 17, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}, 'cartonnette': {'main_port_id': 25480144, 'sub_port_id': 25480201, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17181542, 'last_updated_at': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 0, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 0, 17, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480190,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480178 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480191,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480179 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480192,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480180 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480193,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480181 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480194,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480182 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480195,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480183 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480196,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480184 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480197,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480185 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480198,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480186 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480199,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480187 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480200,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480188 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25480201,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25480189 lien utilise dans velours : https://www.fotonower.com/velours/25480190,25480191,25480192,25480193,25480194,25480195,25480196,25480197,25480198,25480199,25480200,25480201?tags=Carton_brun,Carton_gris,Teint_Dans_La_Masse,environnement,plastique,metal,flou,mal_croppe,kraft,papier,autre_refus,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25480144]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627] map_info['map_portfolio_photo'] : {25480144: [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627, 1374373591, 1374373574, 1374373571, 1374373569, 1374373568, 1374373567, 1374373562, 1374373542, 1374373540, 1374373539, 1374373538, 1374373537, 1374373535, 1374373519, 1374373518, 1374373516, 1374373515, 1374373508, 1374373502, 1374373486, 1374373484, 1374373483, 1374373482, 1374373480, 1374373479, 1374373457, 1374373455, 1374373454, 1374373453, 1374373452, 1374373448]} final : False mtd_id 4302 list_pids : [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627] Looping around the photos to save general results len do output : 1 /25480144. 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, '3392510') ('4302', '25480144', '1374373682', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373680', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373679', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373678', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373671', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373665', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373647', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373646', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373644', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373643', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373642', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373641', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373635', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373633', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373630', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373629', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373628', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373627', None, None, None, None, None, '3392510') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '25480144', "{'Carton_brun': 25480178, 'Carton_gris': 25480179, 'Teint_Dans_La_Masse': 25480180, 'environnement': 25480181, 'plastique': 25480182, 'metal': 25480183, 'flou': 25480184, 'mal_croppe': 25480185, 'kraft': 25480186, 'papier': 25480187, 'autre_refus': 25480188, 'cartonnette': 25480189}", None, None, None, None, '3392510'), ('4302', '25480144', '1374373682', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373680', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373679', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373678', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373671', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373665', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373647', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373646', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373644', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373643', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373642', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373641', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373635', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373633', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373630', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373629', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373628', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373627', None, None, None, None, None, '3392510')] time used for this insertion : 0.04661059379577637 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.628877878189087 time spend to save output : 0.04691052436828613 total time spend for step 1 : 1.675788402557373 step2:final Wed Jul 30 00:25:00 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 (25480144) 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 25480144 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374373457,1374373455,1374373454,1374373453,1374373452,1374373448,1374373486,1374373484,1374373483,1374373482,1374373480,1374373479,1374373519,1374373518,1374373516,1374373515,1374373508,1374373502,1374373542,1374373540,1374373539,1374373538,1374373537,1374373535,1374373574,1374373591,1374373571,1374373569,1374373568,1374373567,1374373562,1374373635,1374373633,1374373630,1374373629,1374373628,1374373627,1374373647,1374373646,1374373644,1374373643,1374373642,1374373641,1374373682,1374373680,1374373679,1374373678,1374373671,1374373665); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25480144]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} new output for save of step final : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627] map_info['map_portfolio_photo'] : {25480144: [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627, 1374373591, 1374373574, 1374373571, 1374373569, 1374373568, 1374373567, 1374373562, 1374373542, 1374373540, 1374373539, 1374373538, 1374373537, 1374373535, 1374373519, 1374373518, 1374373516, 1374373515, 1374373508, 1374373502, 1374373486, 1374373484, 1374373483, 1374373482, 1374373480, 1374373479, 1374373457, 1374373455, 1374373454, 1374373453, 1374373452, 1374373448]} final : False mtd_id 4302 list_pids : [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627] Looping around the photos to save general results len do output : 18 /1374373682.Didn't retrieve data . /1374373680.Didn't retrieve data . /1374373679.Didn't retrieve data . /1374373678.Didn't retrieve data . /1374373671.Didn't retrieve data . /1374373665.Didn't retrieve data . /1374373647.Didn't retrieve data . /1374373646.Didn't retrieve data . /1374373644.Didn't retrieve data . /1374373643.Didn't retrieve data . /1374373642.Didn't retrieve data . /1374373641.Didn't retrieve data . /1374373635.Didn't retrieve data . /1374373633.Didn't retrieve data . /1374373630.Didn't retrieve data . /1374373629.Didn't retrieve data . /1374373628.Didn't retrieve data . /1374373627.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, '3392510') ('4302', '25480144', '1374373682', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373680', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373679', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373678', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373671', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373665', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373647', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373646', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373644', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373643', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373642', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373641', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373635', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373633', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373630', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373629', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373628', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373627', None, None, None, None, None, '3392510') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '25480144', '1374373682', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373680', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373679', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373678', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373671', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373665', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373647', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373646', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373644', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373643', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373642', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373641', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373635', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373633', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373630', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373629', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373628', '0.038832361822893624', None, None, None, None, '3392510'), ('4302', '25480144', '1374373627', '0.038832361822893624', None, None, None, None, '3392510')] time used for this insertion : 0.034870147705078125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09593081474304199 time spend to save output : 0.0356600284576416 total time spend for step 2 : 0.1315908432006836 step3:velours_tree Wed Jul 30 00:25:00 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 : {25480144: [{'Carton_brun': 25480178, 'Carton_gris': 25480179, 'Teint_Dans_La_Masse': 25480180, 'environnement': 25480181, 'plastique': 25480182, 'metal': 25480183, 'flou': 25480184, 'mal_croppe': 25480185, 'kraft': 25480186, 'papier': 25480187, 'autre_refus': 25480188, 'cartonnette': 25480189}]} input_args_next_step : {25480144: ()} output_args : {25480144: [{'Carton_brun': 25480178, 'Carton_gris': 25480179, 'Teint_Dans_La_Masse': 25480180, 'environnement': 25480181, 'plastique': 25480182, 'metal': 25480183, 'flou': 25480184, 'mal_croppe': 25480185, 'kraft': 25480186, 'papier': 25480187, 'autre_refus': 25480188, 'cartonnette': 25480189}]} args : 25480144 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': 25480178, 'Carton_gris': 25480179, 'Teint_Dans_La_Masse': 25480180, 'environnement': 25480181, 'plastique': 25480182, 'metal': 25480183, 'flou': 25480184, 'mal_croppe': 25480185, 'kraft': 25480186, 'papier': 25480187, 'autre_refus': 25480188, 'cartonnette': 25480189},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25480144) 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([25480144]) 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.2670280933380127 time spend to save output : 5.030632019042969e-05 total time spend for step 3 : 0.2670783996582031 step4:send_mail_cod Wed Jul 30 00:25:00 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 : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} input_args_next_step : {1374373682: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373682 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373680 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373679 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373678 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373671 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373665 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373647 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373646 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373644 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373643 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373642 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373641 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373635 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373633 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373630 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373629 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373628 depend.output_id : 0 input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ()} output_args : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',)} args : 1374373627 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 : {25480144: [{'Carton_brun': 25480178, 'Carton_gris': 25480179, 'Teint_Dans_La_Masse': 25480180, 'environnement': 25480181, 'plastique': 25480182, 'metal': 25480183, 'flou': 25480184, 'mal_croppe': 25480185, 'kraft': 25480186, 'papier': 25480187, 'autre_refus': 25480188, 'cartonnette': 25480189}]} input_args_next_step : {1374373682: ('0.038832361822893624',), 1374373680: ('0.038832361822893624',), 1374373679: ('0.038832361822893624',), 1374373678: ('0.038832361822893624',), 1374373671: ('0.038832361822893624',), 1374373665: ('0.038832361822893624',), 1374373647: ('0.038832361822893624',), 1374373646: ('0.038832361822893624',), 1374373644: ('0.038832361822893624',), 1374373643: ('0.038832361822893624',), 1374373642: ('0.038832361822893624',), 1374373641: ('0.038832361822893624',), 1374373635: ('0.038832361822893624',), 1374373633: ('0.038832361822893624',), 1374373630: ('0.038832361822893624',), 1374373629: ('0.038832361822893624',), 1374373628: ('0.038832361822893624',), 1374373627: ('0.038832361822893624',), 25480144: ()} output_args : {25480144: [{'Carton_brun': 25480178, 'Carton_gris': 25480179, 'Teint_Dans_La_Masse': 25480180, 'environnement': 25480181, 'plastique': 25480182, 'metal': 25480183, 'flou': 25480184, 'mal_croppe': 25480185, 'kraft': 25480186, 'papier': 25480187, 'autre_refus': 25480188, 'cartonnette': 25480189}]} args : 25480144 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 :19, first value : ('0.038832361822893624',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25480144) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1374373682,1374373680,1374373679,1374373678,1374373671,1374373665,1374373647,1374373646,1374373644,1374373643,1374373642,1374373641,1374373635,1374373633,1374373630,1374373629,1374373628,1374373627) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374373627 begin to download photo : 1374373633 begin to download photo : 1374373643 begin to download photo : 1374373665 begin to download photo : 1374373680 download finish for photo 1374373633 begin to download photo : 1374373635 download finish for photo 1374373643 begin to download photo : 1374373644 download finish for photo 1374373680 begin to download photo : 1374373682 download finish for photo 1374373665 begin to download photo : 1374373671 download finish for photo 1374373627 begin to download photo : 1374373628 download finish for photo 1374373635 begin to download photo : 1374373641 download finish for photo 1374373644 begin to download photo : 1374373646 download finish for photo 1374373682 download finish for photo 1374373671 begin to download photo : 1374373678 download finish for photo 1374373628 begin to download photo : 1374373629 download finish for photo 1374373646 begin to download photo : 1374373647 download finish for photo 1374373641 begin to download photo : 1374373642 download finish for photo 1374373678 begin to download photo : 1374373679 download finish for photo 1374373629 begin to download photo : 1374373630 download finish for photo 1374373647 download finish for photo 1374373642 download finish for photo 1374373630 download finish for photo 1374373679 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette254801821753827901/ imagette254801831753827901/ imagette254801841753827901/ imagette254801851753827901/ imagette254801861753827901/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P25480144_30-07-2025_00_25_01.pdf 25480182 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480182 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254801821753827901 25480183 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480183 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254801831753827901 25480184 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480184 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254801841753827901 25480185 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480185 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254801851753827901 25480186 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480186 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254801861753827901 25480188 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480188 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374373618: '1753827685_1295725_1374373455_f2dd3cca541bf279be218e7c337c06f6_rle_crop_3897840002_0.png', 1374373619: '1753827685_1295725_1374373453_7a31b50a990f61a087259d86bf88c373_rle_crop_3897840024_0.png', 1374373620: '1753827685_1295725_1374373448_2a8242a566d2711dc18015ac9209eb06_rle_crop_3897840046_0.png', 1374373666: '1753827807_1298481_1374373542_97cd3fa0d8a88f40c81d4ba36799ab64_rle_crop_3897840172_0.png', 1374373667: '1753827807_1298481_1374373539_a9ede9957038ad403814e7b0a7acda09_rle_crop_3897840195_0.png', 1374373668: '1753827807_1298481_1374373538_96750f1e4866191ed095acaf3364920f_rle_crop_3897840209_0.png', 1374373669: '1753827807_1298481_1374373537_bf3f6398f3be3bc6ba3e2cfeb45d51e5_rle_crop_3897840220_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/dca84616efbba3b2560a9ba977dd7f0c_24588688.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/bc6459e1118cad73e36ddc8895c6a855_1649985.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/fc9d2be5e167b68744f15727ef78f487_55732388.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/05ca050384ad252fc6017037423361e7_93108716.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/17de135142f6405e9743e6f926ca782d_51458217.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/a97bb87550b68edad57889a218ebdcb1_16034575.png change filename to text .imagette254801881753827901/ imagette254801881753827901/1753827807_1298481_1374373537_bf3f6398f3be3bc6ba3e2cfeb45d51e5_rle_crop_3897840220_0.png.png imagette254801881753827901/1753827807_1298481_1374373542_97cd3fa0d8a88f40c81d4ba36799ab64_rle_crop_3897840172_0.png.png imagette254801881753827901/1753827685_1295725_1374373455_f2dd3cca541bf279be218e7c337c06f6_rle_crop_3897840002_0.png.png imagette254801881753827901/1753827807_1298481_1374373538_96750f1e4866191ed095acaf3364920f_rle_crop_3897840209_0.png.png imagette254801881753827901/1753827807_1298481_1374373539_a9ede9957038ad403814e7b0a7acda09_rle_crop_3897840195_0.png.png imagette254801881753827901/1753827685_1295725_1374373448_2a8242a566d2711dc18015ac9209eb06_rle_crop_3897840046_0.png.png imagette254801881753827901/1753827685_1295725_1374373453_7a31b50a990f61a087259d86bf88c373_rle_crop_3897840024_0.png.png imagette254801891753827901/ imagette254801781753827901/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/452d09c7d7932bcc84bb61f31d075433_43730521.png imagette254801881753827901 25480189 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480189 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254801891753827901 25480178 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480178 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254801781753827901 25480179 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480179 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374373621: '1753827685_1295725_1374373457_059411237bc540eef2c7e0a72046613d_rle_crop_3897839995_0.png', 1374373622: '1753827685_1295725_1374373455_f2dd3cca541bf279be218e7c337c06f6_rle_crop_3897840005_0.png', 1374373623: '1753827685_1295725_1374373454_aefa4af781207c0efef5aba87be1d53a_rle_crop_3897840015_0.png', 1374373624: '1753827685_1295725_1374373453_7a31b50a990f61a087259d86bf88c373_rle_crop_3897840023_0.png', 1374373625: '1753827685_1295725_1374373452_fb9623b0ee0f33fefd2d856e80379847_rle_crop_3897840038_0.png', 1374373626: '1753827685_1295725_1374373448_2a8242a566d2711dc18015ac9209eb06_rle_crop_3897840044_0.png', 1374373670: '1753827807_1298481_1374373542_97cd3fa0d8a88f40c81d4ba36799ab64_rle_crop_3897840174_0.png', 1374373672: '1753827807_1298481_1374373540_7d919415fa930403a4c51ef0afe48cbd_rle_crop_3897840185_0.png', 1374373673: '1753827807_1298481_1374373539_a9ede9957038ad403814e7b0a7acda09_rle_crop_3897840200_0.png', 1374373674: '1753827807_1298481_1374373538_96750f1e4866191ed095acaf3364920f_rle_crop_3897840205_0.png', 1374373675: '1753827807_1298481_1374373537_bf3f6398f3be3bc6ba3e2cfeb45d51e5_rle_crop_3897840215_0.png', 1374373676: '1753827807_1298481_1374373535_991a03e596f4001da67e22c5da796b09_rle_crop_3897840224_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/765635ab74bc7aeed3cb639d3096a499_173338.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/652504f27c07e3ca26030d6e525715ca_41861112.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/344f52c6bd8b50d53002d4e73fdbbc80_57515517.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/6a1f20edcd1b567e10bdf1434faf3725_44667269.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/84fe736d62fb7a9589f68fe58828587d_76956447.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/c86d595e96cf24a5d79e037a0c6f4f9d_5354415.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/2695a3d964549fc8b81da406682f371e_8624153.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/5b91c80f624da5b1452911c665c45934_90047429.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/22cc89321a323df05b091540148807c8_63151335.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/4e548bff3d274f73ad081c6d54fe1431_58973060.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/73a9b3cf6b9e564ba1a7afeb83a983c4_13047813.png change filename to text .imagette254801791753827901/ imagette254801791753827901/1753827807_1298481_1374373535_991a03e596f4001da67e22c5da796b09_rle_crop_3897840224_0.png.png imagette254801791753827901/1753827685_1295725_1374373453_7a31b50a990f61a087259d86bf88c373_rle_crop_3897840023_0.png.png imagette254801791753827901/1753827685_1295725_1374373448_2a8242a566d2711dc18015ac9209eb06_rle_crop_3897840044_0.png.png imagette254801791753827901/1753827685_1295725_1374373454_aefa4af781207c0efef5aba87be1d53a_rle_crop_3897840015_0.png.png imagette254801791753827901/1753827807_1298481_1374373540_7d919415fa930403a4c51ef0afe48cbd_rle_crop_3897840185_0.png.png imagette254801791753827901/1753827685_1295725_1374373457_059411237bc540eef2c7e0a72046613d_rle_crop_3897839995_0.png.png imagette254801791753827901/1753827807_1298481_1374373542_97cd3fa0d8a88f40c81d4ba36799ab64_rle_crop_3897840174_0.png.png imagette254801791753827901/1753827807_1298481_1374373539_a9ede9957038ad403814e7b0a7acda09_rle_crop_3897840200_0.png.png imagette254801791753827901/1753827685_1295725_1374373455_f2dd3cca541bf279be218e7c337c06f6_rle_crop_3897840005_0.png.png imagette254801791753827901/1753827807_1298481_1374373537_bf3f6398f3be3bc6ba3e2cfeb45d51e5_rle_crop_3897840215_0.png.png imagette254801791753827901/1753827685_1295725_1374373452_fb9623b0ee0f33fefd2d856e80379847_rle_crop_3897840038_0.png.png imagette254801791753827901/1753827807_1298481_1374373538_96750f1e4866191ed095acaf3364920f_rle_crop_3897840205_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/91104bec24d45eb25a4db81d36bfe175_25606247.png imagette254801791753827901 25480180 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480180 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374373612: '1753827685_1295725_1374373457_059411237bc540eef2c7e0a72046613d_rle_crop_3897839996_0.png', 1374373613: '1753827685_1295725_1374373455_f2dd3cca541bf279be218e7c337c06f6_rle_crop_3897840004_0.png', 1374373614: '1753827685_1295725_1374373454_aefa4af781207c0efef5aba87be1d53a_rle_crop_3897840016_0.png', 1374373615: '1753827685_1295725_1374373453_7a31b50a990f61a087259d86bf88c373_rle_crop_3897840025_0.png', 1374373616: '1753827685_1295725_1374373452_fb9623b0ee0f33fefd2d856e80379847_rle_crop_3897840037_0.png', 1374373617: '1753827685_1295725_1374373448_2a8242a566d2711dc18015ac9209eb06_rle_crop_3897840043_0.png', 1374373659: '1753827807_1298481_1374373542_97cd3fa0d8a88f40c81d4ba36799ab64_rle_crop_3897840175_0.png', 1374373660: '1753827807_1298481_1374373540_7d919415fa930403a4c51ef0afe48cbd_rle_crop_3897840186_0.png', 1374373661: '1753827807_1298481_1374373539_a9ede9957038ad403814e7b0a7acda09_rle_crop_3897840194_0.png', 1374373662: '1753827807_1298481_1374373538_96750f1e4866191ed095acaf3364920f_rle_crop_3897840207_0.png', 1374373663: '1753827807_1298481_1374373537_bf3f6398f3be3bc6ba3e2cfeb45d51e5_rle_crop_3897840216_0.png', 1374373664: '1753827807_1298481_1374373535_991a03e596f4001da67e22c5da796b09_rle_crop_3897840228_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/68ae605770ddac73ea05f4161e67fa6b_5440671.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/7b307a8e4890d8dc5fd83fa8df8bfe9b_47571369.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/d2fb9faf5f26fb68b3c6c68a6753a931_9025325.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/dfd8c0942c23e1cbf2600c4930f7dee8_8296074.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/d01fa20e10dc14ce852de31593ef19ea_3151960.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/21a81f8dac8cbb53401809a0b09ad49e_84084321.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/8299e7d240602aa07c9d00d075609ddb_55936054.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/a583ac01fb1e4583829b88d1e9ddfcbf_21334973.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/260bb070c87d6bf695c9ea2216d17953_59862490.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/450ca6a1ab59a513e7c449874a16f6e5_78173618.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/1ecb732c597fd9a1e68029d68b67d44b_3890953.png change filename to text .imagette254801801753827902/ imagette254801801753827902/1753827807_1298481_1374373537_bf3f6398f3be3bc6ba3e2cfeb45d51e5_rle_crop_3897840216_0.png.png imagette254801801753827902/1753827807_1298481_1374373538_96750f1e4866191ed095acaf3364920f_rle_crop_3897840207_0.png.png imagette254801801753827902/1753827685_1295725_1374373448_2a8242a566d2711dc18015ac9209eb06_rle_crop_3897840043_0.png.png imagette254801801753827902/1753827685_1295725_1374373453_7a31b50a990f61a087259d86bf88c373_rle_crop_3897840025_0.png.png imagette254801801753827902/1753827685_1295725_1374373454_aefa4af781207c0efef5aba87be1d53a_rle_crop_3897840016_0.png.png imagette254801801753827902/1753827807_1298481_1374373540_7d919415fa930403a4c51ef0afe48cbd_rle_crop_3897840186_0.png.png imagette254801801753827902/1753827685_1295725_1374373455_f2dd3cca541bf279be218e7c337c06f6_rle_crop_3897840004_0.png.png imagette254801801753827902/1753827685_1295725_1374373452_fb9623b0ee0f33fefd2d856e80379847_rle_crop_3897840037_0.png.png imagette254801801753827902/1753827685_1295725_1374373457_059411237bc540eef2c7e0a72046613d_rle_crop_3897839996_0.png.png imagette254801801753827902/1753827807_1298481_1374373542_97cd3fa0d8a88f40c81d4ba36799ab64_rle_crop_3897840175_0.png.png imagette254801801753827902/1753827807_1298481_1374373535_991a03e596f4001da67e22c5da796b09_rle_crop_3897840228_0.png.png imagette254801801753827902/1753827807_1298481_1374373539_a9ede9957038ad403814e7b0a7acda09_rle_crop_3897840194_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/51af82d03bba80088243c9d13cf1b646_95386304.png imagette254801801753827902 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25480144 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25480190,25480191,25480192,25480193,25480194,25480195,25480196,25480197,25480198,25480199,25480200,25480201?tags=Carton_brun,Carton_gris,Teint_Dans_La_Masse,environnement,plastique,metal,flou,mal_croppe,kraft,papier,autre_refus,cartonnette your option no_mail is active, we will not send the real mail to your client args[1374373682] : ('0.038832361822893624',) no score found for photo 1374373682 We are sending mail with results at report@fotonower.com args[1374373680] : ('0.038832361822893624',) no score found for photo 1374373680 We are sending mail with results at report@fotonower.com args[1374373679] : ('0.038832361822893624',) no score found for photo 1374373679 We are sending mail with results at report@fotonower.com args[1374373678] : ('0.038832361822893624',) no score found for photo 1374373678 We are sending mail with results at report@fotonower.com args[1374373671] : ('0.038832361822893624',) no score found for photo 1374373671 We are sending mail with results at report@fotonower.com args[1374373665] : ('0.038832361822893624',) no score found for photo 1374373665 We are sending mail with results at report@fotonower.com args[1374373647] : ('0.038832361822893624',) no score found for photo 1374373647 We are sending mail with results at report@fotonower.com args[1374373646] : ('0.038832361822893624',) no score found for photo 1374373646 We are sending mail with results at report@fotonower.com args[1374373644] : ('0.038832361822893624',) no score found for photo 1374373644 We are sending mail with results at report@fotonower.com args[1374373643] : ('0.038832361822893624',) no score found for photo 1374373643 We are sending mail with results at report@fotonower.com args[1374373642] : ('0.038832361822893624',) no score found for photo 1374373642 We are sending mail with results at report@fotonower.com args[1374373641] : ('0.038832361822893624',) no score found for photo 1374373641 We are sending mail with results at report@fotonower.com args[1374373635] : ('0.038832361822893624',) no score found for photo 1374373635 We are sending mail with results at report@fotonower.com args[1374373633] : ('0.038832361822893624',) no score found for photo 1374373633 We are sending mail with results at report@fotonower.com args[1374373630] : ('0.038832361822893624',) no score found for photo 1374373630 We are sending mail with results at report@fotonower.com args[1374373629] : ('0.038832361822893624',) no score found for photo 1374373629 We are sending mail with results at report@fotonower.com args[1374373628] : ('0.038832361822893624',) no score found for photo 1374373628 We are sending mail with results at report@fotonower.com args[1374373627] : ('0.038832361822893624',) no score found for photo 1374373627 We are sending mail with results at report@fotonower.com refus_total : 0.038832361822893624 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480144 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_P25480144_30-07-2025_00_25_01.pdf results_Auto_P25480144_30-07-2025_00_25_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_00_25_01.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','25480144','results_Auto_P25480144_30-07-2025_00_25_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_00_25_01.pdf','pdf','','0.23','0.038832361822893624') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25480144]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627] map_info['map_portfolio_photo'] : {25480144: [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627, 1374373591, 1374373574, 1374373571, 1374373569, 1374373568, 1374373567, 1374373562, 1374373542, 1374373540, 1374373539, 1374373538, 1374373537, 1374373535, 1374373519, 1374373518, 1374373516, 1374373515, 1374373508, 1374373502, 1374373486, 1374373484, 1374373483, 1374373482, 1374373480, 1374373479, 1374373457, 1374373455, 1374373454, 1374373453, 1374373452, 1374373448]} final : False mtd_id 4302 list_pids : [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627] 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, '3392510') ('4302', '25480144', '1374373682', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373680', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373679', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373678', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373671', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373665', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373647', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373646', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373644', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373643', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373642', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373641', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373635', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373633', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373630', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373629', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373628', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373627', None, None, None, None, None, '3392510') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25480144', '1374373682', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373680', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373679', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373678', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373671', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373665', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373647', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373646', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373644', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373643', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373642', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373641', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373635', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373633', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373630', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373629', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373628', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373627', None, None, None, None, None, '3392510')] time used for this insertion : 0.047283172607421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.039912223815918 time spend to save output : 0.04755282402038574 total time spend for step 4 : 4.087465047836304 step5:split_time_score Wed Jul 30 00:25:04 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 : ['25480144'] 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 : [('25480144',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25480144) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374373680: {'path': 'temp/1753827900_3601525_1374373680_71bc0e555aece983c59cd89b7eb45e0b.jpg', 'extension': 'jpg'}, 1374373682: {'path': 'temp/1753827900_3601525_1374373682_379944a579ed7244c18d3cd4b65a3751.jpg', 'extension': 'jpg'}, 1374373643: {'path': 'temp/1753827900_3601525_1374373643_03bb608496787cd206e953595a902338.jpg', 'extension': 'jpg'}, 1374373644: {'path': 'temp/1753827900_3601525_1374373644_78bcb55ea72305c29408fef653a48bb2.jpg', 'extension': 'jpg'}, 1374373646: {'path': 'temp/1753827900_3601525_1374373646_9c3d2ec14e6581d8ffa3083d5a035f41.jpg', 'extension': 'jpg'}, 1374373647: {'path': 'temp/1753827900_3601525_1374373647_41df331ad749816cf23fca5358e544e1.jpg', 'extension': 'jpg'}, 1374373633: {'path': 'temp/1753827900_3601525_1374373633_1316059625adeacb1c15444bb5db6946.jpg', 'extension': 'jpg'}, 1374373635: {'path': 'temp/1753827900_3601525_1374373635_bef46394cc1f8f15c553bd874782ec66.jpg', 'extension': 'jpg'}, 1374373641: {'path': 'temp/1753827900_3601525_1374373641_84e08ebd1ff8f54cde0fcaae4342ef3d.jpg', 'extension': 'jpg'}, 1374373642: {'path': 'temp/1753827900_3601525_1374373642_9926f4ae4e0464b9834b09e0151b24a0.jpg', 'extension': 'jpg'}, 1374373627: {'path': 'temp/1753827900_3601525_1374373627_9b975d706a4330a43f335ae9ddf08f6f.jpg', 'extension': 'jpg'}, 1374373628: {'path': 'temp/1753827900_3601525_1374373628_e01a58cff7a95c26e387355e7c620e6b.jpg', 'extension': 'jpg'}, 1374373629: {'path': 'temp/1753827900_3601525_1374373629_a7b324ea699c5ef6a5b01c63ca63fbd3.jpg', 'extension': 'jpg'}, 1374373630: {'path': 'temp/1753827900_3601525_1374373630_35000d2b21c52c016311a04eb6a88ea8.jpg', 'extension': 'jpg'}, 1374373665: {'path': 'temp/1753827900_3601525_1374373665_c466cdcd549ed802ec63f0676c7a668f.jpg', 'extension': 'jpg'}, 1374373671: {'path': 'temp/1753827900_3601525_1374373671_3b012438124e74dd70f960d3c803295a.jpg', 'extension': 'jpg'}, 1374373678: {'path': 'temp/1753827900_3601525_1374373678_b63998440922414c207e5407ae61e282.jpg', 'extension': 'jpg'}, 1374373679: {'path': 'temp/1753827900_3601525_1374373679_8f5a0abb48c9530b4dbc16000c9e6f37.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 = 25480144; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25480144 group by h (('00', 49),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25480144 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 (25480144) 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 (25480144) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30072025 25480144 Nombre de photos uploadées : 49 / 23040 (0%) 30072025 25480144 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 30072025 25480144 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1374373457, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/059411237bc540eef2c7e0a72046613d.jpg', 'username': None, 'uploaded_at': 1753827362, 'text': 'image_30072025_00_15_04_009148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374373455, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/f2dd3cca541bf279be218e7c337c06f6.jpg', 'username': None, 'uploaded_at': 1753827362, 'text': 'image_30072025_00_15_14_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374373454, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/aefa4af781207c0efef5aba87be1d53a.jpg', 'username': None, 'uploaded_at': 1753827362, 'text': 'image_30072025_00_15_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374373453, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/7a31b50a990f61a087259d86bf88c373.jpg', 'username': None, 'uploaded_at': 1753827362, 'text': 'image_30072025_00_15_34_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002155780792236328 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 25480144, '2025-07-30' ) 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-07-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2027123,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21647310256958008 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= 2027123 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2027123, 'dashboard_run_id': 2034647, 'mtr_portfolio_id': 25479976, 'dashboard_result_id': 13334281, '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_P25479976_30-07-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, 'pht': 3726}}"}, {'dashboat_entry_day': 2027123, 'dashboard_run_id': 2034647, 'mtr_portfolio_id': 25480144, 'dashboard_result_id': 13334282, '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_P25480144_30-07-2025_00_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25479976 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': 3392471, 'mtr_portfolio_id': 25479976, 'created_at': datetime.datetime(2025, 7, 30, 0, 17), 'result': '0.03378535365462426', 'result_long': None, 'result_double': None}] Qualite : 0.03378535365462426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25479976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25479976 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_P25479976_30-07-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, 'pht': 3726}}" where mtr_portfolio_id = 25479976 and dashboard_run_id = 2034647 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`=25479976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13334281, 0.03378535365462426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, '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 = 25480144 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': 3392510, 'mtr_portfolio_id': 25480144, 'created_at': datetime.datetime(2025, 7, 30, 0, 25), 'result': '0.038832361822893624', 'result_long': None, 'result_double': None}] Qualite : 0.038832361822893624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_00_25_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480144 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_P25480144_30-07-2025_00_25_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}" where mtr_portfolio_id = 25480144 and dashboard_run_id = 2034647 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`=25480144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13334282, 0.038832361822893624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_00_25_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25479976,25480144) result : ((1374372764,), (1374372795,), (1374372823,), (1374372841,), (1374372865,), (1374373025,), (1374373026,), (1374373027,), (1374373028,), (1374373029,), (1374373031,), (1374373050,), (1374373051,), (1374373052,), (1374373053,), (1374373055,), (1374373057,), (1374373069,), (1374373070,), (1374373071,), (1374373072,), (1374373073,), (1374373075,), (1374373102,), (1374373108,), (1374373109,), (1374373110,), (1374373112,), (1374373114,), (1374373138,), (1374373140,), (1374373142,), (1374373145,), (1374373149,), (1374373151,), (1374373154,), (1374373156,), (1374373157,), (1374373158,), (1374373159,), (1374373162,), (1374373166,), (1374373176,), (1374373177,), (1374373178,), (1374373179,), (1374373181,), (1374373182,), (1374373221,), (1374373240,), (1374373241,), (1374373243,), (1374373245,), (1374373248,), (1374373252,), (1374373332,), (1374373334,), (1374373335,), (1374373350,), (1374373364,), (1374373366,), (1374373391,), (1374373397,), (1374373403,), (1374373404,), (1374373405,), (1374373408,), (1374373417,), (1374373418,), (1374373419,), (1374373420,), (1374373422,), (1374373424,), (1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30072025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25480144]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627] map_info['map_portfolio_photo'] : {25480144: [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627, 1374373591, 1374373574, 1374373571, 1374373569, 1374373568, 1374373567, 1374373562, 1374373542, 1374373540, 1374373539, 1374373538, 1374373537, 1374373535, 1374373519, 1374373518, 1374373516, 1374373515, 1374373508, 1374373502, 1374373486, 1374373484, 1374373483, 1374373482, 1374373480, 1374373479, 1374373457, 1374373455, 1374373454, 1374373453, 1374373452, 1374373448]} final : True mtd_id 4302 list_pids : [1374373682, 1374373680, 1374373679, 1374373678, 1374373671, 1374373665, 1374373647, 1374373646, 1374373644, 1374373643, 1374373642, 1374373641, 1374373635, 1374373633, 1374373630, 1374373629, 1374373628, 1374373627] Looping around the photos to save general results len do output : 1 /25480144Didn'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, '3392510') ('4302', '25480144', '1374373682', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373680', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373679', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373678', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373671', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373665', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373647', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373646', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373644', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373643', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373642', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373641', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373635', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373633', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373630', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373629', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373628', None, None, None, None, None, '3392510') ('4302', None, None, None, None, None, None, None, '3392510') ('4302', '25480144', '1374373627', None, None, None, None, None, '3392510') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '25480144', 'None', None, None, None, None, '3392510'), ('4302', '25480144', '1374373682', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373680', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373679', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373678', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373671', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373665', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373647', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373646', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373644', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373643', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373642', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373641', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373635', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373633', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373630', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373629', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373628', None, None, None, None, None, '3392510'), ('4302', '25480144', '1374373627', None, None, None, None, None, '3392510')] time used for this insertion : 0.01899409294128418 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.435244083404541 time spend to save output : 0.019297122955322266 total time spend for step 5 : 0.4545412063598633 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 (3392510) 2.11user 2.65system 0:09.11elapsed 52%CPU (0avgtext+0avgdata 167868maxresident)k 0inputs+14992outputs (3major+76149minor)pagefaults 0swaps