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 : 1341845 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 (3403094) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3403094) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516552 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3403094'] with mtr_portfolio_ids : ['25516552'] and first list_photo_ids : [] new path : /proc/1341845/ Name: python3 Umask: 0002 State: R (running) Tgid: 1341845 Ngid: 0 Pid: 1341845 PPid: 1341844 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1341845 NSpid: 1341845 NSpgid: 1340121 NSsid: 1340121 VmPeak: 1106860 kB VmSize: 1106860 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99980 kB VmRSS: 99980 kB RssAnon: 59816 kB RssFile: 40164 kB RssShmem: 0 kB VmData: 865612 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 86 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1341845', 'Ngid': '0', 'Pid': '1341845', 'PPid': '1341844', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1341845', 'NSpid': '1341845', 'NSpgid': '1340121', 'NSsid': '1340121', 'VmPeak': '1106860 kB', 'VmSize': '1106860 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99980 kB', 'VmRSS': '99980 kB', 'RssAnon': '59816 kB', 'RssFile': '40164 kB', 'RssShmem': '0 kB', 'VmData': '865612 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '86', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '1341845', '1106860', '0', '1106860', '865612', '99980', b'', 'marlene', '3403094') 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 (25516552) 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 (3403094 ) ) 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 (25516552) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374519945, 'portfolio_id': 25516552}, {'photo_id': 1374519942, 'portfolio_id': 25516552}, {'photo_id': 1374519938, 'portfolio_id': 25516552}, {'photo_id': 1374519936, 'portfolio_id': 25516552}, {'photo_id': 1374519934, 'portfolio_id': 25516552}, {'photo_id': 1374519930, 'portfolio_id': 25516552}, {'photo_id': 1374519906, 'portfolio_id': 25516552}, {'photo_id': 1374519896, 'portfolio_id': 25516552}, {'photo_id': 1374519887, 'portfolio_id': 25516552}, {'photo_id': 1374519877, 'portfolio_id': 25516552}, {'photo_id': 1374519873, 'portfolio_id': 25516552}, {'photo_id': 1374519871, 'portfolio_id': 25516552}, {'photo_id': 1374519867, 'portfolio_id': 25516552}, {'photo_id': 1374519856, 'portfolio_id': 25516552}, {'photo_id': 1374519853, 'portfolio_id': 25516552}, {'photo_id': 1374519851, 'portfolio_id': 25516552}, {'photo_id': 1374519848, 'portfolio_id': 25516552}, {'photo_id': 1374519845, 'portfolio_id': 25516552}, {'photo_id': 1374519843, 'portfolio_id': 25516552}, {'photo_id': 1374519823, 'portfolio_id': 25516552}, {'photo_id': 1374519801, 'portfolio_id': 25516552}, {'photo_id': 1374519781, 'portfolio_id': 25516552}, {'photo_id': 1374519759, 'portfolio_id': 25516552}, {'photo_id': 1374519739, 'portfolio_id': 25516552}, {'photo_id': 1374519715, 'portfolio_id': 25516552}, {'photo_id': 1374519688, 'portfolio_id': 25516552}, {'photo_id': 1374519686, 'portfolio_id': 25516552}, {'photo_id': 1374519684, 'portfolio_id': 25516552}, {'photo_id': 1374519679, 'portfolio_id': 25516552}, {'photo_id': 1374519673, 'portfolio_id': 25516552}, {'photo_id': 1374519657, 'portfolio_id': 25516552}, {'photo_id': 1374519648, 'portfolio_id': 25516552}, {'photo_id': 1374519646, 'portfolio_id': 25516552}, {'photo_id': 1374519643, 'portfolio_id': 25516552}, {'photo_id': 1374519636, 'portfolio_id': 25516552}, {'photo_id': 1374519633, 'portfolio_id': 25516552}, {'photo_id': 1374519632, 'portfolio_id': 25516552}, {'photo_id': 1374519617, 'portfolio_id': 25516552}, {'photo_id': 1374519615, 'portfolio_id': 25516552}, {'photo_id': 1374519612, 'portfolio_id': 25516552}, {'photo_id': 1374519609, 'portfolio_id': 25516552}, {'photo_id': 1374519606, 'portfolio_id': 25516552}, {'photo_id': 1374519603, 'portfolio_id': 25516552}, {'photo_id': 1374519596, 'portfolio_id': 25516552}, {'photo_id': 1374519586, 'portfolio_id': 25516552}, {'photo_id': 1374519578, 'portfolio_id': 25516552}, {'photo_id': 1374519558, 'portfolio_id': 25516552}, {'photo_id': 1374519557, 'portfolio_id': 25516552}, {'photo_id': 1374519555, 'portfolio_id': 25516552}, {'photo_id': 1374519471, 'portfolio_id': 25516552}, {'photo_id': 1374519357, 'portfolio_id': 25516552}, {'photo_id': 1374519241, 'portfolio_id': 25516552}, {'photo_id': 1374519221, 'portfolio_id': 25516552}, {'photo_id': 1374519211, 'portfolio_id': 25516552}, {'photo_id': 1374519209, 'portfolio_id': 25516552}, {'photo_id': 1374519207, 'portfolio_id': 25516552}, {'photo_id': 1374519205, 'portfolio_id': 25516552}, {'photo_id': 1374519166, 'portfolio_id': 25516552}, {'photo_id': 1374519147, 'portfolio_id': 25516552}, {'photo_id': 1374519145, 'portfolio_id': 25516552}, {'photo_id': 1374519138, 'portfolio_id': 25516552}, {'photo_id': 1374519137, 'portfolio_id': 25516552}, {'photo_id': 1374519125, 'portfolio_id': 25516552}, {'photo_id': 1374519115, 'portfolio_id': 25516552}, {'photo_id': 1374519113, 'portfolio_id': 25516552}, {'photo_id': 1374519111, 'portfolio_id': 25516552}, {'photo_id': 1374519108, 'portfolio_id': 25516552}, {'photo_id': 1374519105, 'portfolio_id': 25516552}, {'photo_id': 1374519103, 'portfolio_id': 25516552}, {'photo_id': 1374519098, 'portfolio_id': 25516552}, {'photo_id': 1374519095, 'portfolio_id': 25516552}, {'photo_id': 1374519089, 'portfolio_id': 25516552}, {'photo_id': 1374519082, 'portfolio_id': 25516552}, {'photo_id': 1374519079, 'portfolio_id': 25516552}, {'photo_id': 1374519076, 'portfolio_id': 25516552}] map_portfolio_id_photo_id: {25516552: [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867, 1374519856, 1374519853, 1374519851, 1374519848, 1374519845, 1374519843, 1374519823, 1374519801, 1374519781, 1374519759, 1374519739, 1374519715, 1374519688, 1374519686, 1374519684, 1374519679, 1374519673, 1374519657, 1374519648, 1374519646, 1374519643, 1374519636, 1374519633, 1374519632, 1374519617, 1374519615, 1374519612, 1374519609, 1374519606, 1374519603, 1374519596, 1374519586, 1374519578, 1374519558, 1374519557, 1374519555, 1374519471, 1374519357, 1374519241, 1374519221, 1374519211, 1374519209, 1374519207, 1374519205, 1374519166, 1374519147, 1374519145, 1374519138, 1374519137, 1374519125, 1374519115, 1374519113, 1374519111, 1374519108, 1374519105, 1374519103, 1374519098, 1374519095, 1374519089, 1374519082, 1374519079, 1374519076]} ##### 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.06305837631225586 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Jul 31 00:30: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 (25516552) 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 : 25516552 get user id for portfolio 25516552 get sub ptf for main ptf 25516552, type 3726 and hashtags ['plastique', 'papier', 'metal', 'Carton_brun', 'Carton_gris', 'cartonnette', 'mal_croppe', 'environnement', 'autre_refus', 'kraft', 'flou', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25516552 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','metal','Carton_brun','Carton_gris','cartonnette','mal_croppe','environnement','autre_refus','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25516552 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','metal','Carton_brun','Carton_gris','cartonnette','mal_croppe','environnement','autre_refus','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 25516552, 'sub_port_id': 25516556, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208295, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'environnement': {'main_port_id': 25516552, 'sub_port_id': 25516557, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208296, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'mal_croppe': {'main_port_id': 25516552, 'sub_port_id': 25516558, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208297, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'flou': {'main_port_id': 25516552, 'sub_port_id': 25516559, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208298, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'papier': {'main_port_id': 25516552, 'sub_port_id': 25516560, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208299, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'metal': {'main_port_id': 25516552, 'sub_port_id': 25516561, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208300, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'Carton_brun': {'main_port_id': 25516552, 'sub_port_id': 25516562, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208301, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'cartonnette': {'main_port_id': 25516552, 'sub_port_id': 25516563, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208302, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'plastique': {'main_port_id': 25516552, 'sub_port_id': 25516564, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208303, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'kraft': {'main_port_id': 25516552, 'sub_port_id': 25516565, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208304, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25516552, 'sub_port_id': 25516566, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208305, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}, 'Carton_gris': {'main_port_id': 25516552, 'sub_port_id': 25516567, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208306, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25516556 , 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=25516552 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 (25516556) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516557 , 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=25516552 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 (25516557) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516558 , 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=25516552 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 (25516558) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516559 , 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=25516552 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 (25516559) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516560 , 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=25516552 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 (25516560) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516561 , 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=25516552 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 (25516561) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516562 , 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=25516552 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 (25516562) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516563 , 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=25516552 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 (25516563) result : ((1374519410,), (1374519411,), (1374519413,), (1374519582,), (1374519583,), (1374519584,), (1374519585,), (1374519587,), (1374519588,), (1374519589,), (1374519590,), (1374519591,), (1374519592,), (1374519593,), (1374519729,), (1374519731,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516564 , 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=25516552 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 (25516564) result : ((1374519932,), (1374519933,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516565 , 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=25516552 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 (25516565) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516566 , 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=25516552 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 (25516566) result : ((1374519388,), (1374519390,), (1374519392,), (1374519394,), (1374519396,), (1374519399,), (1374519401,), (1374519403,), (1374519405,), (1374519407,), (1374519560,), (1374519562,), (1374519564,), (1374519566,), (1374519568,), (1374519570,), (1374519710,), (1374519712,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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 25516567 , 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=25516552 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 (25516567) result : ((1374519576,), (1374519579,), (1374519722,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516552) result : ((1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) 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`=25516552 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','metal','Carton_brun','Carton_gris','cartonnette','mal_croppe','environnement','autre_refus','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25516552 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','metal','Carton_brun','Carton_gris','cartonnette','mal_croppe','environnement','autre_refus','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 25516552, 'sub_port_id': 25516568, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208307, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'environnement': {'main_port_id': 25516552, 'sub_port_id': 25516569, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208308, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'mal_croppe': {'main_port_id': 25516552, 'sub_port_id': 25516570, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208309, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'flou': {'main_port_id': 25516552, 'sub_port_id': 25516571, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208310, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'papier': {'main_port_id': 25516552, 'sub_port_id': 25516572, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208311, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'metal': {'main_port_id': 25516552, 'sub_port_id': 25516573, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208312, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'Carton_brun': {'main_port_id': 25516552, 'sub_port_id': 25516574, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208313, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'cartonnette': {'main_port_id': 25516552, 'sub_port_id': 25516575, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208314, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'plastique': {'main_port_id': 25516552, 'sub_port_id': 25516576, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208315, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'kraft': {'main_port_id': 25516552, 'sub_port_id': 25516577, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208316, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 25516552, 'sub_port_id': 25516578, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208317, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 19, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}, 'Carton_gris': {'main_port_id': 25516552, 'sub_port_id': 25516579, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17208318, 'last_updated_at': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 0, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 0, 19, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516556 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516557 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516558 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516571,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516559 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516560 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516573,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516561 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516562 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516575,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516563 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516576,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516564 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516577,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516565 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516566 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25516579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25516567 lien utilise dans velours : https://www.fotonower.com/velours/25516568,25516569,25516570,25516571,25516572,25516573,25516574,25516575,25516576,25516577,25516578,25516579?tags=autre_refus,environnement,mal_croppe,flou,papier,metal,Carton_brun,cartonnette,plastique,kraft,Teint_Dans_La_Masse,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25516552]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867] map_info['map_portfolio_photo'] : {25516552: [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867, 1374519856, 1374519853, 1374519851, 1374519848, 1374519845, 1374519843, 1374519823, 1374519801, 1374519781, 1374519759, 1374519739, 1374519715, 1374519688, 1374519686, 1374519684, 1374519679, 1374519673, 1374519657, 1374519648, 1374519646, 1374519643, 1374519636, 1374519633, 1374519632, 1374519617, 1374519615, 1374519612, 1374519609, 1374519606, 1374519603, 1374519596, 1374519586, 1374519578, 1374519558, 1374519557, 1374519555, 1374519471, 1374519357, 1374519241, 1374519221, 1374519211, 1374519209, 1374519207, 1374519205, 1374519166, 1374519147, 1374519145, 1374519138, 1374519137, 1374519125, 1374519115, 1374519113, 1374519111, 1374519108, 1374519105, 1374519103, 1374519098, 1374519095, 1374519089, 1374519082, 1374519079, 1374519076]} final : False mtd_id 4302 list_pids : [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867] Looping around the photos to save general results len do output : 1 /25516552. 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, '3403094') ('4302', '25516552', '1374519945', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519942', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519938', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519936', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519934', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519930', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519906', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519896', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519887', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519877', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519873', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519871', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519867', None, None, None, None, None, '3403094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '25516552', "{'autre_refus': 25516556, 'environnement': 25516557, 'mal_croppe': 25516558, 'flou': 25516559, 'papier': 25516560, 'metal': 25516561, 'Carton_brun': 25516562, 'cartonnette': 25516563, 'plastique': 25516564, 'kraft': 25516565, 'Teint_Dans_La_Masse': 25516566, 'Carton_gris': 25516567}", None, None, None, None, '3403094'), ('4302', '25516552', '1374519945', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519942', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519938', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519936', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519934', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519930', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519906', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519896', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519887', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519877', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519873', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519871', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519867', None, None, None, None, None, '3403094')] time used for this insertion : 0.03993868827819824 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.094822645187378 time spend to save output : 0.040258169174194336 total time spend for step 1 : 4.135080814361572 step2:final Thu Jul 31 00:31:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (25516552) 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 25516552 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374519098,1374519095,1374519089,1374519082,1374519079,1374519076,1374519115,1374519113,1374519111,1374519108,1374519105,1374519103,1374519166,1374519147,1374519145,1374519138,1374519137,1374519125,1374519471,1374519241,1374519357,1374519221,1374519211,1374519209,1374519207,1374519205,1374519596,1374519586,1374519578,1374519558,1374519557,1374519555,1374519617,1374519615,1374519612,1374519609,1374519606,1374519603,1374519648,1374519646,1374519643,1374519636,1374519633,1374519632,1374519688,1374519686,1374519684,1374519679,1374519673,1374519657,1374519823,1374519801,1374519781,1374519759,1374519739,1374519715,1374519856,1374519853,1374519851,1374519848,1374519845,1374519843,1374519896,1374519887,1374519877,1374519873,1374519871,1374519867,1374519906,1374519945,1374519942,1374519938,1374519936,1374519934,1374519930); 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([25516552]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} new output for save of step final : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867] map_info['map_portfolio_photo'] : {25516552: [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867, 1374519856, 1374519853, 1374519851, 1374519848, 1374519845, 1374519843, 1374519823, 1374519801, 1374519781, 1374519759, 1374519739, 1374519715, 1374519688, 1374519686, 1374519684, 1374519679, 1374519673, 1374519657, 1374519648, 1374519646, 1374519643, 1374519636, 1374519633, 1374519632, 1374519617, 1374519615, 1374519612, 1374519609, 1374519606, 1374519603, 1374519596, 1374519586, 1374519578, 1374519558, 1374519557, 1374519555, 1374519471, 1374519357, 1374519241, 1374519221, 1374519211, 1374519209, 1374519207, 1374519205, 1374519166, 1374519147, 1374519145, 1374519138, 1374519137, 1374519125, 1374519115, 1374519113, 1374519111, 1374519108, 1374519105, 1374519103, 1374519098, 1374519095, 1374519089, 1374519082, 1374519079, 1374519076]} final : False mtd_id 4302 list_pids : [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867] Looping around the photos to save general results len do output : 13 /1374519945.Didn't retrieve data . /1374519942.Didn't retrieve data . /1374519938.Didn't retrieve data . /1374519936.Didn't retrieve data . /1374519934.Didn't retrieve data . /1374519930.Didn't retrieve data . /1374519906.Didn't retrieve data . /1374519896.Didn't retrieve data . /1374519887.Didn't retrieve data . /1374519877.Didn't retrieve data . /1374519873.Didn't retrieve data . /1374519871.Didn't retrieve data . /1374519867.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, '3403094') ('4302', '25516552', '1374519945', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519942', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519938', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519936', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519934', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519930', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519906', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519896', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519887', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519877', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519873', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519871', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519867', None, None, None, None, None, '3403094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '25516552', '1374519945', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519942', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519938', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519936', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519934', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519930', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519906', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519896', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519887', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519877', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519873', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519871', '0.048341225671871955', None, None, None, None, '3403094'), ('4302', '25516552', '1374519867', '0.048341225671871955', None, None, None, None, '3403094')] time used for this insertion : 0.037000417709350586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.20606422424316406 time spend to save output : 0.03760170936584473 total time spend for step 2 : 0.2436659336090088 step3:velours_tree Thu Jul 31 00:31:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25516552: [{'autre_refus': 25516556, 'environnement': 25516557, 'mal_croppe': 25516558, 'flou': 25516559, 'papier': 25516560, 'metal': 25516561, 'Carton_brun': 25516562, 'cartonnette': 25516563, 'plastique': 25516564, 'kraft': 25516565, 'Teint_Dans_La_Masse': 25516566, 'Carton_gris': 25516567}]} input_args_next_step : {25516552: ()} output_args : {25516552: [{'autre_refus': 25516556, 'environnement': 25516557, 'mal_croppe': 25516558, 'flou': 25516559, 'papier': 25516560, 'metal': 25516561, 'Carton_brun': 25516562, 'cartonnette': 25516563, 'plastique': 25516564, 'kraft': 25516565, 'Teint_Dans_La_Masse': 25516566, 'Carton_gris': 25516567}]} args : 25516552 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 : ({'autre_refus': 25516556, 'environnement': 25516557, 'mal_croppe': 25516558, 'flou': 25516559, 'papier': 25516560, 'metal': 25516561, 'Carton_brun': 25516562, 'cartonnette': 25516563, 'plastique': 25516564, 'kraft': 25516565, 'Teint_Dans_La_Masse': 25516566, 'Carton_gris': 25516567},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25516552) 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([25516552]) 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.31183815002441406 time spend to save output : 5.054473876953125e-05 total time spend for step 3 : 0.3118886947631836 step4:send_mail_cod Thu Jul 31 00:31:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} input_args_next_step : {1374519945: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519945 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519942 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519938 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519936 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519934 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519930 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519906 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519896 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519887 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519877 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519873 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519871 depend.output_id : 0 input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ()} output_args : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',)} args : 1374519867 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 : {25516552: [{'autre_refus': 25516556, 'environnement': 25516557, 'mal_croppe': 25516558, 'flou': 25516559, 'papier': 25516560, 'metal': 25516561, 'Carton_brun': 25516562, 'cartonnette': 25516563, 'plastique': 25516564, 'kraft': 25516565, 'Teint_Dans_La_Masse': 25516566, 'Carton_gris': 25516567}]} input_args_next_step : {1374519945: ('0.048341225671871955',), 1374519942: ('0.048341225671871955',), 1374519938: ('0.048341225671871955',), 1374519936: ('0.048341225671871955',), 1374519934: ('0.048341225671871955',), 1374519930: ('0.048341225671871955',), 1374519906: ('0.048341225671871955',), 1374519896: ('0.048341225671871955',), 1374519887: ('0.048341225671871955',), 1374519877: ('0.048341225671871955',), 1374519873: ('0.048341225671871955',), 1374519871: ('0.048341225671871955',), 1374519867: ('0.048341225671871955',), 25516552: ()} output_args : {25516552: [{'autre_refus': 25516556, 'environnement': 25516557, 'mal_croppe': 25516558, 'flou': 25516559, 'papier': 25516560, 'metal': 25516561, 'Carton_brun': 25516562, 'cartonnette': 25516563, 'plastique': 25516564, 'kraft': 25516565, 'Teint_Dans_La_Masse': 25516566, 'Carton_gris': 25516567}]} args : 25516552 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 :14, first value : ('0.048341225671871955',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25516552) 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 (1374519945,1374519942,1374519938,1374519936,1374519934,1374519930,1374519906,1374519896,1374519887,1374519877,1374519873,1374519871,1374519867) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374519867 begin to download photo : 1374519877 begin to download photo : 1374519906 begin to download photo : 1374519936 begin to download photo : 1374519945 download finish for photo 1374519877 begin to download photo : 1374519887 download finish for photo 1374519867 begin to download photo : 1374519871 download finish for photo 1374519945 download finish for photo 1374519936 begin to download photo : 1374519938 download finish for photo 1374519906 begin to download photo : 1374519930 download finish for photo 1374519938 begin to download photo : 1374519942 download finish for photo 1374519887 begin to download photo : 1374519896 download finish for photo 1374519871 begin to download photo : 1374519873 download finish for photo 1374519942 download finish for photo 1374519896 download finish for photo 1374519873 download finish for photo 1374519930 begin to download photo : 1374519934 download finish for photo 1374519934 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette255165561753914663/ imagette255165581753914663/ imagette255165591753914663/ imagette255165611753914663/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P25516552_31-07-2025_00_31_03.pdf 25516556 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=25516556 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255165561753914663 25516558 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=25516558 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255165581753914663 25516559 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=25516559 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255165591753914663 25516561 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=25516561 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255165611753914663 25516563 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=25516563 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374519410: '1753913966_3836496_1374519098_2a6ea222872c192aa531783a68c5ecad_rle_crop_3898771194_0.png', 1374519411: '1753913966_3836496_1374519076_bcb6fc25713fc30afe6f0a2762834698_rle_crop_3898771269_0.png', 1374519413: '1753913966_3836496_1374519076_bcb6fc25713fc30afe6f0a2762834698_rle_crop_3898771267_0.png', 1374519582: '1753914087_3839533_1374519115_f7a73907bb6928659868e56857cfe3f3_rle_crop_3898771641_0.png', 1374519583: '1753914087_3839533_1374519115_f7a73907bb6928659868e56857cfe3f3_rle_crop_3898771635_0.png', 1374519584: '1753914087_3839533_1374519113_5d1beeedcaa08d46c0e58ff25211667f_rle_crop_3898771666_0.png', 1374519585: '1753914087_3839533_1374519113_5d1beeedcaa08d46c0e58ff25211667f_rle_crop_3898771662_0.png', 1374519587: '1753914087_3839533_1374519111_f3e81482d2964b6858997bb58028713e_rle_crop_3898771685_0.png', 1374519588: '1753914087_3839533_1374519111_f3e81482d2964b6858997bb58028713e_rle_crop_3898771680_0.png', 1374519589: '1753914087_3839533_1374519108_9f46a78c65dcdf9ddd70a1ac335f7664_rle_crop_3898771711_0.png', 1374519590: '1753914087_3839533_1374519108_9f46a78c65dcdf9ddd70a1ac335f7664_rle_crop_3898771705_0.png', 1374519591: '1753914087_3839533_1374519105_6053084a9f91cc7ba96294696e1dd1d8_rle_crop_3898771727_0.png', 1374519592: '1753914087_3839533_1374519105_6053084a9f91cc7ba96294696e1dd1d8_rle_crop_3898771724_0.png', 1374519593: '1753914087_3839533_1374519103_44ae2ff83948bf2f93d67d538f4dccf9_rle_crop_3898771738_0.png', 1374519729: '1753914326_3846533_1374519166_4e2359d069b47dd1c1e2bb880fe484cf_rle_crop_3898772086_0.png', 1374519731: '1753914326_3846533_1374519147_8a7e0cf162d4ddbbdd4afa17e7a5ac53_rle_crop_3898772098_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/2ee82f2daee7a829a5b1eb5c208154e8_37523583.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/37f3570e24dba5e1c3db9a0f6f0fa5c4_34341904.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/1077db5c32f1a4c686e04a4b39dfbab6_26805050.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/9562214482d645223c001d543b785339_3006848.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/f8a244fca0282dda62bfd34d1374a428_2143464.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/cf7e1fa7d42e4205a873c20c56044f31_63951277.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/062126e26fafff7e7212775278d8cb28_50791707.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/260e231d382ba51c03e59434b82cd731_23798025.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/ced4be4792c5737ace984ed2a3cdcc65_67337176.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/013722776671c2598c741f137d00792b_73514696.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/ca54b83506d17d8b8fe3d72ba80c5a4e_75050966.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/e850f224b2e94989bac52fb361251751_1269423.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/eb7b19c566b29b489a02a7349a4d9151_26460611.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/be4e8311a650b71ac89cd408d9257111_46190212.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/6628576249932d2246b1897faee91493_60400845.png change filename to text .imagette255165631753914663/ imagette255165631753914663/1753914087_3839533_1374519111_f3e81482d2964b6858997bb58028713e_rle_crop_3898771680_0.png.png imagette255165631753914663/1753914087_3839533_1374519105_6053084a9f91cc7ba96294696e1dd1d8_rle_crop_3898771724_0.png.png imagette255165631753914663/1753914326_3846533_1374519166_4e2359d069b47dd1c1e2bb880fe484cf_rle_crop_3898772086_0.png.png imagette255165631753914663/1753913966_3836496_1374519076_bcb6fc25713fc30afe6f0a2762834698_rle_crop_3898771267_0.png.png imagette255165631753914663/1753914087_3839533_1374519113_5d1beeedcaa08d46c0e58ff25211667f_rle_crop_3898771662_0.png.png imagette255165631753914663/1753913966_3836496_1374519076_bcb6fc25713fc30afe6f0a2762834698_rle_crop_3898771269_0.png.png imagette255165631753914663/1753914087_3839533_1374519105_6053084a9f91cc7ba96294696e1dd1d8_rle_crop_3898771727_0.png.png imagette255165631753914663/1753914087_3839533_1374519108_9f46a78c65dcdf9ddd70a1ac335f7664_rle_crop_3898771711_0.png.png imagette255165631753914663/1753914087_3839533_1374519108_9f46a78c65dcdf9ddd70a1ac335f7664_rle_crop_3898771705_0.png.png imagette255165631753914663/1753914326_3846533_1374519147_8a7e0cf162d4ddbbdd4afa17e7a5ac53_rle_crop_3898772098_0.png.png imagette255165631753914663/1753913966_3836496_1374519098_2a6ea222872c192aa531783a68c5ecad_rle_crop_3898771194_0.png.png imagette255165631753914663/1753914087_3839533_1374519115_f7a73907bb6928659868e56857cfe3f3_rle_crop_3898771641_0.png.png imagette255165631753914663/1753914087_3839533_1374519103_44ae2ff83948bf2f93d67d538f4dccf9_rle_crop_3898771738_0.png.png imagette255165631753914663/1753914087_3839533_1374519111_f3e81482d2964b6858997bb58028713e_rle_crop_3898771685_0.png.png imagette255165631753914663/1753914087_3839533_1374519115_f7a73907bb6928659868e56857cfe3f3_rle_crop_3898771635_0.png.png imagette255165631753914663/1753914087_3839533_1374519113_5d1beeedcaa08d46c0e58ff25211667f_rle_crop_3898771666_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/eb9396eafd1a8e183575a6ef7f42df3f_67126648.png imagette255165631753914663 25516564 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=25516564 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374519932: '1753914565_3853946_1374519643_4d6b3408835ef1236a1945cfdc3990be_rle_crop_3898772497_0.png', 1374519933: '1753914565_3853946_1374519636_51645ac97427bafc2ad075c75a4a5e3c_rle_crop_3898772502_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/4d02b87c13f1d39c1f54fff13c114823_45247924.png change filename to text .imagette255165641753914664/ imagette255165641753914664/1753914565_3853946_1374519636_51645ac97427bafc2ad075c75a4a5e3c_rle_crop_3898772502_0.png.png imagette255165641753914664/1753914565_3853946_1374519643_4d6b3408835ef1236a1945cfdc3990be_rle_crop_3898772497_0.png.png imagette255165651753914664/ imagette255165621753914664/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/f51b4a0dc28db1822f98627fddaf8048_2345184.png imagette255165641753914664 25516565 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=25516565 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255165651753914664 25516562 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=25516562 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255165621753914664 25516566 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=25516566 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374519407: '1753913966_3836496_1374519076_bcb6fc25713fc30afe6f0a2762834698_rle_crop_3898771270_0.png', 1374519712: '1753914326_3846533_1374519147_8a7e0cf162d4ddbbdd4afa17e7a5ac53_rle_crop_3898772102_0.png', 1374519710: '1753914326_3846533_1374519166_4e2359d069b47dd1c1e2bb880fe484cf_rle_crop_3898772090_0.png', 1374519570: '1753914087_3839533_1374519103_44ae2ff83948bf2f93d67d538f4dccf9_rle_crop_3898771743_0.png', 1374519568: '1753914087_3839533_1374519105_6053084a9f91cc7ba96294696e1dd1d8_rle_crop_3898771725_0.png', 1374519566: '1753914087_3839533_1374519108_9f46a78c65dcdf9ddd70a1ac335f7664_rle_crop_3898771708_0.png', 1374519564: '1753914087_3839533_1374519111_f3e81482d2964b6858997bb58028713e_rle_crop_3898771684_0.png', 1374519562: '1753914087_3839533_1374519113_5d1beeedcaa08d46c0e58ff25211667f_rle_crop_3898771665_0.png', 1374519560: '1753914087_3839533_1374519115_f7a73907bb6928659868e56857cfe3f3_rle_crop_3898771639_0.png', 1374519388: '1753913966_3836496_1374519098_2a6ea222872c192aa531783a68c5ecad_rle_crop_3898771198_0.png', 1374519405: '1753913966_3836496_1374519079_faf5141ab02eed0bd7f8fe0fdc190700_rle_crop_3898771256_0.png', 1374519403: '1753913966_3836496_1374519079_faf5141ab02eed0bd7f8fe0fdc190700_rle_crop_3898771250_0.png', 1374519401: '1753913966_3836496_1374519082_eab57a82ba4587be62f99046ecb45f89_rle_crop_3898771239_0.png', 1374519399: '1753913966_3836496_1374519089_0931fbe50221985878a584aefbda7397_rle_crop_3898771228_0.png', 1374519396: '1753913966_3836496_1374519089_0931fbe50221985878a584aefbda7397_rle_crop_3898771225_0.png', 1374519394: '1753913966_3836496_1374519095_cd153dbf0965b764a822a9297eafa4bc_rle_crop_3898771215_0.png', 1374519392: '1753913966_3836496_1374519098_2a6ea222872c192aa531783a68c5ecad_rle_crop_3898771201_0.png', 1374519390: '1753913966_3836496_1374519098_2a6ea222872c192aa531783a68c5ecad_rle_crop_3898771197_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/dc469e34b1d14e9590f67a0fbd659b50_89301826.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/65a13f12d3fff124ddb826132d1a6cfd_58718932.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/b553af5890d829480a8f1734509ef0c0_33193811.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/d8f6cb73f451675eb8c764a9b7974d82_14728970.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/6ee0b3db47ceb8745b08696b4268111b_22889334.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/21939358c6bf21bb2a6588fec6513237_39371215.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/51a604f4222ee9484649da97296f91ec_2783801.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/b1eda9557c66b8b01929bae6313f0c16_33928374.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/5280478ade0c93959319ec0543e8e723_84602670.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/3c0f2eaf73583ae423e78d1306981681_86772195.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/105888ec7ecea092fab8f11786f99143_798254.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/84f24e15130e7d50df3f7e44e714471e_1559300.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/52da416f879d6b97097776eb34fb0742_15460469.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/8f7eef18fcb29e7356e262a9831153ce_85019870.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/5910a2adbb4f669f01859488a9389a91_6188337.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/a900059e6e25ad5cb3522d7f23a9c562_31777826.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/7bd8cd0a1622fa30cb6006b33e638b0d_45436924.png change filename to text .imagette255165661753914664/ imagette255165661753914664/1753914087_3839533_1374519103_44ae2ff83948bf2f93d67d538f4dccf9_rle_crop_3898771743_0.png.png imagette255165661753914664/1753913966_3836496_1374519082_eab57a82ba4587be62f99046ecb45f89_rle_crop_3898771239_0.png.png imagette255165661753914664/1753913966_3836496_1374519076_bcb6fc25713fc30afe6f0a2762834698_rle_crop_3898771270_0.png.png imagette255165661753914664/1753914087_3839533_1374519113_5d1beeedcaa08d46c0e58ff25211667f_rle_crop_3898771665_0.png.png imagette255165661753914664/1753913966_3836496_1374519098_2a6ea222872c192aa531783a68c5ecad_rle_crop_3898771198_0.png.png imagette255165661753914664/1753913966_3836496_1374519079_faf5141ab02eed0bd7f8fe0fdc190700_rle_crop_3898771256_0.png.png imagette255165661753914664/1753913966_3836496_1374519095_cd153dbf0965b764a822a9297eafa4bc_rle_crop_3898771215_0.png.png imagette255165661753914664/1753914087_3839533_1374519115_f7a73907bb6928659868e56857cfe3f3_rle_crop_3898771639_0.png.png imagette255165661753914664/1753913966_3836496_1374519098_2a6ea222872c192aa531783a68c5ecad_rle_crop_3898771197_0.png.png imagette255165661753914664/1753914087_3839533_1374519108_9f46a78c65dcdf9ddd70a1ac335f7664_rle_crop_3898771708_0.png.png imagette255165661753914664/1753914087_3839533_1374519111_f3e81482d2964b6858997bb58028713e_rle_crop_3898771684_0.png.png imagette255165661753914664/1753914087_3839533_1374519105_6053084a9f91cc7ba96294696e1dd1d8_rle_crop_3898771725_0.png.png imagette255165661753914664/1753914326_3846533_1374519166_4e2359d069b47dd1c1e2bb880fe484cf_rle_crop_3898772090_0.png.png imagette255165661753914664/1753913966_3836496_1374519079_faf5141ab02eed0bd7f8fe0fdc190700_rle_crop_3898771250_0.png.png imagette255165661753914664/1753913966_3836496_1374519089_0931fbe50221985878a584aefbda7397_rle_crop_3898771228_0.png.png imagette255165661753914664/1753913966_3836496_1374519089_0931fbe50221985878a584aefbda7397_rle_crop_3898771225_0.png.png imagette255165661753914664/1753914326_3846533_1374519147_8a7e0cf162d4ddbbdd4afa17e7a5ac53_rle_crop_3898772102_0.png.png imagette255165661753914664/1753913966_3836496_1374519098_2a6ea222872c192aa531783a68c5ecad_rle_crop_3898771201_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/adde682975c7b6f1173a2a6681bc773f_71599536.png imagette255165661753914664 25516567 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=25516567 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374519576: '1753914087_3839533_1374519115_f7a73907bb6928659868e56857cfe3f3_rle_crop_3898771632_0.png', 1374519579: '1753914087_3839533_1374519103_44ae2ff83948bf2f93d67d538f4dccf9_rle_crop_3898771737_0.png', 1374519722: '1753914326_3846533_1374519166_4e2359d069b47dd1c1e2bb880fe484cf_rle_crop_3898772083_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/ae18c23076de84a30b1525fcb7b2ae0c_62453578.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/976e6617acc1f5e857c85575c891a57c_41294932.png change filename to text .imagette255165671753914665/ imagette255165671753914665/1753914087_3839533_1374519103_44ae2ff83948bf2f93d67d538f4dccf9_rle_crop_3898771737_0.png.png imagette255165671753914665/1753914326_3846533_1374519166_4e2359d069b47dd1c1e2bb880fe484cf_rle_crop_3898772083_0.png.png imagette255165671753914665/1753914087_3839533_1374519115_f7a73907bb6928659868e56857cfe3f3_rle_crop_3898771632_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/12b905e21a5b0ed141c88d6f9e333bfa_22941217.png imagette255165671753914665 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25516552 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25516568,25516569,25516570,25516571,25516572,25516573,25516574,25516575,25516576,25516577,25516578,25516579?tags=autre_refus,environnement,mal_croppe,flou,papier,metal,Carton_brun,cartonnette,plastique,kraft,Teint_Dans_La_Masse,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1374519945] : ('0.048341225671871955',) no score found for photo 1374519945 We are sending mail with results at report@fotonower.com args[1374519942] : ('0.048341225671871955',) no score found for photo 1374519942 We are sending mail with results at report@fotonower.com args[1374519938] : ('0.048341225671871955',) no score found for photo 1374519938 We are sending mail with results at report@fotonower.com args[1374519936] : ('0.048341225671871955',) no score found for photo 1374519936 We are sending mail with results at report@fotonower.com args[1374519934] : ('0.048341225671871955',) no score found for photo 1374519934 We are sending mail with results at report@fotonower.com args[1374519930] : ('0.048341225671871955',) no score found for photo 1374519930 We are sending mail with results at report@fotonower.com args[1374519906] : ('0.048341225671871955',) no score found for photo 1374519906 We are sending mail with results at report@fotonower.com args[1374519896] : ('0.048341225671871955',) no score found for photo 1374519896 We are sending mail with results at report@fotonower.com args[1374519887] : ('0.048341225671871955',) no score found for photo 1374519887 We are sending mail with results at report@fotonower.com args[1374519877] : ('0.048341225671871955',) no score found for photo 1374519877 We are sending mail with results at report@fotonower.com args[1374519873] : ('0.048341225671871955',) no score found for photo 1374519873 We are sending mail with results at report@fotonower.com args[1374519871] : ('0.048341225671871955',) no score found for photo 1374519871 We are sending mail with results at report@fotonower.com args[1374519867] : ('0.048341225671871955',) no score found for photo 1374519867 We are sending mail with results at report@fotonower.com refus_total : 0.048341225671871955 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=25516552 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_P25516552_31-07-2025_00_31_03.pdf results_Auto_P25516552_31-07-2025_00_31_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_00_31_03.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','25516552','results_Auto_P25516552_31-07-2025_00_31_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_00_31_03.pdf','pdf','','0.22','0.048341225671871955') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25516552]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867] map_info['map_portfolio_photo'] : {25516552: [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867, 1374519856, 1374519853, 1374519851, 1374519848, 1374519845, 1374519843, 1374519823, 1374519801, 1374519781, 1374519759, 1374519739, 1374519715, 1374519688, 1374519686, 1374519684, 1374519679, 1374519673, 1374519657, 1374519648, 1374519646, 1374519643, 1374519636, 1374519633, 1374519632, 1374519617, 1374519615, 1374519612, 1374519609, 1374519606, 1374519603, 1374519596, 1374519586, 1374519578, 1374519558, 1374519557, 1374519555, 1374519471, 1374519357, 1374519241, 1374519221, 1374519211, 1374519209, 1374519207, 1374519205, 1374519166, 1374519147, 1374519145, 1374519138, 1374519137, 1374519125, 1374519115, 1374519113, 1374519111, 1374519108, 1374519105, 1374519103, 1374519098, 1374519095, 1374519089, 1374519082, 1374519079, 1374519076]} final : False mtd_id 4302 list_pids : [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867] 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, '3403094') ('4302', '25516552', '1374519945', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519942', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519938', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519936', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519934', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519930', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519906', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519896', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519887', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519877', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519873', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519871', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519867', None, None, None, None, None, '3403094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '25516552', '1374519945', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519942', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519938', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519936', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519934', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519930', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519906', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519896', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519887', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519877', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519873', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519871', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519867', None, None, None, None, None, '3403094')] time used for this insertion : 0.02808070182800293 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.418729782104492 time spend to save output : 0.028353214263916016 total time spend for step 4 : 4.447082996368408 step5:split_time_score Thu Jul 31 00:31:07 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 : ['25516552'] 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 : [('25516552',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25516552) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374519945: {'path': 'temp/1753914663_1341845_1374519945_61602b65920a396fb9aa9f8a0b333cb8.jpg', 'extension': 'jpg'}, 1374519936: {'path': 'temp/1753914663_1341845_1374519936_c9798ec380f700b18dfb12d34de1576b.jpg', 'extension': 'jpg'}, 1374519938: {'path': 'temp/1753914663_1341845_1374519938_65730f5fbe8b2519664d914547d8e9a5.jpg', 'extension': 'jpg'}, 1374519942: {'path': 'temp/1753914663_1341845_1374519942_3db87e416ec5ca6bc885deaad021a0c0.jpg', 'extension': 'jpg'}, 1374519877: {'path': 'temp/1753914663_1341845_1374519877_671b8e66d24c9efc77c25cd02343ddd2.jpg', 'extension': 'jpg'}, 1374519887: {'path': 'temp/1753914663_1341845_1374519887_6f86bd7df3ff531e3d182c768e67d8da.jpg', 'extension': 'jpg'}, 1374519896: {'path': 'temp/1753914663_1341845_1374519896_aa6f6cd4bf27843cfaac004c7a39feed.jpg', 'extension': 'jpg'}, 1374519867: {'path': 'temp/1753914663_1341845_1374519867_3265d9d8b48e65a3c44e28e095261ec5.jpg', 'extension': 'jpg'}, 1374519871: {'path': 'temp/1753914663_1341845_1374519871_48a11b7c2936832fa8e83a155a6a41ea.jpg', 'extension': 'jpg'}, 1374519873: {'path': 'temp/1753914663_1341845_1374519873_cd2ca636c78fa1f4a70bbb177391edf7.jpg', 'extension': 'jpg'}, 1374519906: {'path': 'temp/1753914663_1341845_1374519906_c9bb7bbe564627a90a90b25f2c7982f8.jpg', 'extension': 'jpg'}, 1374519930: {'path': 'temp/1753914663_1341845_1374519930_ef914863af69f7130134555c3879efbf.jpg', 'extension': 'jpg'}, 1374519934: {'path': 'temp/1753914663_1341845_1374519934_97f17891e73b0ed535838f7871fb904e.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 = 25516552; (('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 = 25516552 group by h (('00', 75),) 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=25516552 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 (25516552) 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 (25516552) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31072025 25516552 Nombre de photos uploadées : 75 / 23040 (0%) 31072025 25516552 Nombre de photos taguées (types de déchets): 0 / 75 (0%) 31072025 25516552 Nombre de photos taguées (volume) : 0 / 75 (0%) [{'photo_id': 1374519098, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/2a6ea222872c192aa531783a68c5ecad.jpg', 'username': None, 'uploaded_at': 1753913763, 'text': 'image_31072025_00_15_04_010149m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1374519095, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/cd153dbf0965b764a822a9297eafa4bc.jpg', 'username': None, 'uploaded_at': 1753913763, 'text': 'image_31072025_00_15_14_010138m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1374519089, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/0931fbe50221985878a584aefbda7397.jpg', 'username': None, 'uploaded_at': 1753913763, 'text': 'image_31072025_00_15_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1374519082, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/eab57a82ba4587be62f99046ecb45f89.jpg', 'username': None, 'uploaded_at': 1753913763, 'text': 'image_31072025_00_15_34_010134m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003305196762084961 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 25516552, '2025-07-31' ) 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-31' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2033877,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.3837580680847168 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= 2033877 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2033877, 'dashboard_run_id': 2041427, 'mtr_portfolio_id': 25516129, 'dashboard_result_id': 13384130, '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_P25516129_31-07-2025_00_16_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}"}, {'dashboat_entry_day': 2033877, 'dashboard_run_id': 2041427, 'mtr_portfolio_id': 25516552, 'dashboard_result_id': 13384131, '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_P25516552_31-07-2025_00_29_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, '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 = 25516129 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': 3403041, 'mtr_portfolio_id': 25516129, 'created_at': datetime.datetime(2025, 7, 31, 0, 16, 33), 'result': '0.09469179894006444', 'result_long': None, 'result_double': None}] Qualite : 0.09469179894006444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_31-07-2025_00_16_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516129 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_P25516129_31-07-2025_00_16_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}" where mtr_portfolio_id = 25516129 and dashboard_run_id = 2041427 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`=25516129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13384130, 0.09469179894006444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_31-07-2025_00_16_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, '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 = 25516552 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': 3403094, 'mtr_portfolio_id': 25516552, 'created_at': datetime.datetime(2025, 7, 31, 0, 31, 2), 'result': '0.048341225671871955', 'result_long': None, 'result_double': None}] Qualite : 0.048341225671871955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_00_31_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516552 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_P25516552_31-07-2025_00_31_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}" where mtr_portfolio_id = 25516552 and dashboard_run_id = 2041427 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`=25516552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13384131, 0.048341225671871955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_00_31_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, '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 (25516129,25516552) result : ((1374514567,), (1374514596,), (1374514618,), (1374514639,), (1374514661,), (1374514680,), (1374514915,), (1374514956,), (1374514988,), (1374515009,), (1374515045,), (1374515070,), (1374515272,), (1374515291,), (1374515310,), (1374515331,), (1374515334,), (1374515339,), (1374515640,), (1374515710,), (1374515787,), (1374515863,), (1374515931,), (1374515997,), (1374516495,), (1374516889,), (1374516905,), (1374516906,), (1374516918,), (1374516936,), (1374516943,), (1374517031,), (1374517055,), (1374517078,), (1374517098,), (1374517120,), (1374517139,), (1374517293,), (1374517311,), (1374517331,), (1374517349,), (1374517367,), (1374517385,), (1374517831,), (1374517884,), (1374517941,), (1374517990,), (1374518040,), (1374518091,), (1374518410,), (1374518738,), (1374518781,), (1374518785,), (1374518815,), (1374518834,), (1374518837,), (1374518849,), (1374518851,), (1374518853,), (1374518855,), (1374518857,), (1374518859,), (1374518874,), (1374518876,), (1374518879,), (1374518890,), (1374518906,), (1374518908,), (1374518919,), (1374518920,), (1374518922,), (1374518923,), (1374518925,), (1374518941,), (1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31072025': {'nb_upload': 75, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25516552]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867] map_info['map_portfolio_photo'] : {25516552: [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867, 1374519856, 1374519853, 1374519851, 1374519848, 1374519845, 1374519843, 1374519823, 1374519801, 1374519781, 1374519759, 1374519739, 1374519715, 1374519688, 1374519686, 1374519684, 1374519679, 1374519673, 1374519657, 1374519648, 1374519646, 1374519643, 1374519636, 1374519633, 1374519632, 1374519617, 1374519615, 1374519612, 1374519609, 1374519606, 1374519603, 1374519596, 1374519586, 1374519578, 1374519558, 1374519557, 1374519555, 1374519471, 1374519357, 1374519241, 1374519221, 1374519211, 1374519209, 1374519207, 1374519205, 1374519166, 1374519147, 1374519145, 1374519138, 1374519137, 1374519125, 1374519115, 1374519113, 1374519111, 1374519108, 1374519105, 1374519103, 1374519098, 1374519095, 1374519089, 1374519082, 1374519079, 1374519076]} final : True mtd_id 4302 list_pids : [1374519945, 1374519942, 1374519938, 1374519936, 1374519934, 1374519930, 1374519906, 1374519896, 1374519887, 1374519877, 1374519873, 1374519871, 1374519867] Looping around the photos to save general results len do output : 1 /25516552Didn'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, '3403094') ('4302', '25516552', '1374519945', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519942', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519938', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519936', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519934', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519930', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519906', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519896', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519887', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519877', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519873', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519871', None, None, None, None, None, '3403094') ('4302', None, None, None, None, None, None, None, '3403094') ('4302', '25516552', '1374519867', None, None, None, None, None, '3403094') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '25516552', 'None', None, None, None, None, '3403094'), ('4302', '25516552', '1374519945', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519942', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519938', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519936', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519934', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519930', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519906', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519896', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519887', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519877', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519873', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519871', None, None, None, None, None, '3403094'), ('4302', '25516552', '1374519867', None, None, None, None, None, '3403094')] time used for this insertion : 0.02571415901184082 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7987792491912842 time spend to save output : 0.02601456642150879 total time spend for step 5 : 0.824793815612793 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 (3403094) 2.27user 2.30system 0:12.10elapsed 37%CPU (0avgtext+0avgdata 161184maxresident)k 1904inputs+12104outputs (34major+64345minor)pagefaults 0swaps