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 : 449214 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 (2745057) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2745057) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280602 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2745057'] with mtr_portfolio_ids : ['22280602'] and first list_photo_ids : [] new path : /proc/449214/ Name: python3 Umask: 0002 State: R (running) Tgid: 449214 Ngid: 0 Pid: 449214 PPid: 449212 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 449214 NSpid: 449214 NSpgid: 439816 NSsid: 439816 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97568 kB VmRSS: 97568 kB RssAnon: 59768 kB RssFile: 37800 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '449214', 'Ngid': '0', 'Pid': '449214', 'PPid': '449212', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '449214', 'NSpid': '449214', 'NSpgid': '439816', 'NSsid': '439816', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97568 kB', 'VmRSS': '97568 kB', 'RssAnon': '59768 kB', 'RssFile': '37800 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '449214', '1106936', '0', '1106936', '865684', '97568', b'', 'marlene', '2745057') 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 (22280602) 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 (2745057 ) ) 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 (22280602) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351713083, 'portfolio_id': 22280602}, {'photo_id': 1351713056, 'portfolio_id': 22280602}, {'photo_id': 1351713031, 'portfolio_id': 22280602}, {'photo_id': 1351712903, 'portfolio_id': 22280602}, {'photo_id': 1351712859, 'portfolio_id': 22280602}, {'photo_id': 1351712820, 'portfolio_id': 22280602}, {'photo_id': 1351712781, 'portfolio_id': 22280602}, {'photo_id': 1351712703, 'portfolio_id': 22280602}, {'photo_id': 1351712651, 'portfolio_id': 22280602}, {'photo_id': 1351712178, 'portfolio_id': 22280602}, {'photo_id': 1351712110, 'portfolio_id': 22280602}, {'photo_id': 1351712051, 'portfolio_id': 22280602}, {'photo_id': 1351711989, 'portfolio_id': 22280602}, {'photo_id': 1351711940, 'portfolio_id': 22280602}, {'photo_id': 1351711652, 'portfolio_id': 22280602}, {'photo_id': 1351711563, 'portfolio_id': 22280602}, {'photo_id': 1351711536, 'portfolio_id': 22280602}, {'photo_id': 1351711294, 'portfolio_id': 22280602}, {'photo_id': 1351711262, 'portfolio_id': 22280602}, {'photo_id': 1351711227, 'portfolio_id': 22280602}, {'photo_id': 1351711198, 'portfolio_id': 22280602}, {'photo_id': 1351711148, 'portfolio_id': 22280602}, {'photo_id': 1351711120, 'portfolio_id': 22280602}, {'photo_id': 1351710735, 'portfolio_id': 22280602}, {'photo_id': 1351710683, 'portfolio_id': 22280602}, {'photo_id': 1351710651, 'portfolio_id': 22280602}, {'photo_id': 1351710601, 'portfolio_id': 22280602}, {'photo_id': 1351710571, 'portfolio_id': 22280602}, {'photo_id': 1351710250, 'portfolio_id': 22280602}, {'photo_id': 1351710211, 'portfolio_id': 22280602}, {'photo_id': 1351710158, 'portfolio_id': 22280602}, {'photo_id': 1351710128, 'portfolio_id': 22280602}, {'photo_id': 1351710080, 'portfolio_id': 22280602}, {'photo_id': 1351709668, 'portfolio_id': 22280602}, {'photo_id': 1351709580, 'portfolio_id': 22280602}, {'photo_id': 1351709495, 'portfolio_id': 22280602}, {'photo_id': 1351709443, 'portfolio_id': 22280602}, {'photo_id': 1351709269, 'portfolio_id': 22280602}, {'photo_id': 1351709203, 'portfolio_id': 22280602}, {'photo_id': 1351709155, 'portfolio_id': 22280602}, {'photo_id': 1351709038, 'portfolio_id': 22280602}, {'photo_id': 1351708992, 'portfolio_id': 22280602}, {'photo_id': 1351708766, 'portfolio_id': 22280602}, {'photo_id': 1351708737, 'portfolio_id': 22280602}, {'photo_id': 1351708723, 'portfolio_id': 22280602}, {'photo_id': 1351708694, 'portfolio_id': 22280602}, {'photo_id': 1351708422, 'portfolio_id': 22280602}, {'photo_id': 1351708398, 'portfolio_id': 22280602}, {'photo_id': 1351708368, 'portfolio_id': 22280602}, {'photo_id': 1351708341, 'portfolio_id': 22280602}, {'photo_id': 1351708010, 'portfolio_id': 22280602}, {'photo_id': 1351707966, 'portfolio_id': 22280602}, {'photo_id': 1351707932, 'portfolio_id': 22280602}, {'photo_id': 1351707898, 'portfolio_id': 22280602}, {'photo_id': 1351707864, 'portfolio_id': 22280602}] map_portfolio_id_photo_id: {22280602: [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940, 1351711652, 1351711563, 1351711536, 1351711294, 1351711262, 1351711227, 1351711198, 1351711148, 1351711120, 1351710735, 1351710683, 1351710651, 1351710601, 1351710571, 1351710250, 1351710211, 1351710158, 1351710128, 1351710080, 1351709668, 1351709580, 1351709495, 1351709443, 1351709269, 1351709203, 1351709155, 1351709038, 1351708992, 1351708766, 1351708737, 1351708723, 1351708694, 1351708422, 1351708398, 1351708368, 1351708341, 1351708010, 1351707966, 1351707932, 1351707898, 1351707864]} ##### 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.02046036720275879 #### 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 Fri Apr 11 15:27:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22280602) 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 : 22280602 get user id for portfolio 22280602 get sub ptf for main ptf 22280602, type 3726 and hashtags ['papier', 'flou', 'kraft', 'metal', 'Carton_brun', 'cartonnette', 'mal_croppe', 'environnement', 'plastique', 'autre_refus', 'Teint_Dans_La_Masse', 'Carton_gris'] 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`=22280602 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','metal','Carton_brun','cartonnette','mal_croppe','environnement','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris')) 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`=22280602 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','metal','Carton_brun','cartonnette','mal_croppe','environnement','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22280602, 'sub_port_id': 22280664, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746184, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'kraft': {'main_port_id': 22280602, 'sub_port_id': 22280665, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746185, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'autre_refus': {'main_port_id': 22280602, 'sub_port_id': 22280666, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746186, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'Carton_brun': {'main_port_id': 22280602, 'sub_port_id': 22280667, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746187, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'cartonnette': {'main_port_id': 22280602, 'sub_port_id': 22280668, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746188, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22280602, 'sub_port_id': 22280669, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746189, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'flou': {'main_port_id': 22280602, 'sub_port_id': 22280670, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746190, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'mal_croppe': {'main_port_id': 22280602, 'sub_port_id': 22280671, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746191, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'environnement': {'main_port_id': 22280602, 'sub_port_id': 22280672, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746192, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'Carton_gris': {'main_port_id': 22280602, 'sub_port_id': 22280673, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746193, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'plastique': {'main_port_id': 22280602, 'sub_port_id': 22280674, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746194, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}, 'metal': {'main_port_id': 22280602, 'sub_port_id': 22280675, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746195, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22280664 , 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=22280602 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 (22280664) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280665 , 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=22280602 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 (22280665) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280666 , 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=22280602 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 (22280666) result : ((1351711411,), (1351713222,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280667 , 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=22280602 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 (22280667) result : ((1351712811,), (1351712814,), (1351712818,), (1351713265,), (1351713269,), (1351713272,), (1351713275,), (1351713278,), (1351713282,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280668 , 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=22280602 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 (22280668) result : ((1351711178,), (1351711890,), (1351713111,), (1351713230,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280669 , 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=22280602 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 (22280669) result : ((1351710532,), (1351711138,), (1351711139,), (1351711140,), (1351711141,), (1351711397,), (1351711398,), (1351711399,), (1351711852,), (1351711853,), (1351711854,), (1351711855,), (1351711857,), (1351712768,), (1351712771,), (1351713086,), (1351713088,), (1351713089,), (1351713090,), (1351713213,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280670 , 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=22280602 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 (22280670) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280671 , 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=22280602 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 (22280671) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280672 , 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=22280602 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 (22280672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280673 , 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=22280602 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 (22280673) result : ((1351710538,), (1351711165,), (1351711422,), (1351711878,), (1351712788,), (1351712791,), (1351713100,), (1351713102,), (1351713103,), (1351713104,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280674 , 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=22280602 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 (22280674) result : ((1351711183,), (1351711899,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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 22280675 , 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=22280602 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 (22280675) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22280602) result : ((1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) 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`=22280602 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','metal','Carton_brun','cartonnette','mal_croppe','environnement','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris')) 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`=22280602 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','metal','Carton_brun','cartonnette','mal_croppe','environnement','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22280602, 'sub_port_id': 22280676, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746196, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'kraft': {'main_port_id': 22280602, 'sub_port_id': 22280677, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746197, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'autre_refus': {'main_port_id': 22280602, 'sub_port_id': 22280678, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746198, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'Carton_brun': {'main_port_id': 22280602, 'sub_port_id': 22280679, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746199, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'cartonnette': {'main_port_id': 22280602, 'sub_port_id': 22280680, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746200, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'Teint_Dans_La_Masse': {'main_port_id': 22280602, 'sub_port_id': 22280681, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746201, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'flou': {'main_port_id': 22280602, 'sub_port_id': 22280682, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746202, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'mal_croppe': {'main_port_id': 22280602, 'sub_port_id': 22280683, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746203, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'environnement': {'main_port_id': 22280602, 'sub_port_id': 22280684, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746204, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'Carton_gris': {'main_port_id': 22280602, 'sub_port_id': 22280685, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746205, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'plastique': {'main_port_id': 22280602, 'sub_port_id': 22280686, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746206, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 19), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}, 'metal': {'main_port_id': 22280602, 'sub_port_id': 22280687, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14746207, 'last_updated_at': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 15, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 15, 19)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280686,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280674 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22280687,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22280675 lien utilise dans velours : https://www.fotonower.com/velours/22280676,22280677,22280678,22280679,22280680,22280681,22280682,22280683,22280684,22280685,22280686,22280687?tags=papier,kraft,autre_refus,Carton_brun,cartonnette,Teint_Dans_La_Masse,flou,mal_croppe,environnement,Carton_gris,plastique,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22280602]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940] map_info['map_portfolio_photo'] : {22280602: [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940, 1351711652, 1351711563, 1351711536, 1351711294, 1351711262, 1351711227, 1351711198, 1351711148, 1351711120, 1351710735, 1351710683, 1351710651, 1351710601, 1351710571, 1351710250, 1351710211, 1351710158, 1351710128, 1351710080, 1351709668, 1351709580, 1351709495, 1351709443, 1351709269, 1351709203, 1351709155, 1351709038, 1351708992, 1351708766, 1351708737, 1351708723, 1351708694, 1351708422, 1351708398, 1351708368, 1351708341, 1351708010, 1351707966, 1351707932, 1351707898, 1351707864]} final : False mtd_id 4302 list_pids : [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940] Looping around the photos to save general results len do output : 1 /22280602. 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, '2745057') ('4302', '22280602', '1351713083', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351713056', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351713031', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712903', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712859', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712820', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712781', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712703', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712651', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712178', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712110', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712051', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351711989', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351711940', None, None, None, None, None, '2745057') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22280602', "{'papier': 22280664, 'kraft': 22280665, 'autre_refus': 22280666, 'Carton_brun': 22280667, 'cartonnette': 22280668, 'Teint_Dans_La_Masse': 22280669, 'flou': 22280670, 'mal_croppe': 22280671, 'environnement': 22280672, 'Carton_gris': 22280673, 'plastique': 22280674, 'metal': 22280675}", None, None, None, None, '2745057'), ('4302', '22280602', '1351713083', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351713056', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351713031', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712903', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712859', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712820', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712781', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712703', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712651', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712178', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712110', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712051', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351711989', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351711940', None, None, None, None, None, '2745057')] time used for this insertion : 1.1347999572753906 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.296574592590332 time spend to save output : 1.1352403163909912 total time spend for step 1 : 9.431814908981323 step2:final Fri Apr 11 15:28:08 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 (22280602) 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 22280602 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351708010,1351707966,1351707932,1351707898,1351707864,1351708422,1351708398,1351708368,1351708341,1351708766,1351708737,1351708723,1351708694,1351709269,1351709203,1351709155,1351709038,1351708992,1351709668,1351709580,1351709495,1351709443,1351710250,1351710211,1351710158,1351710128,1351710080,1351710735,1351710683,1351710651,1351710601,1351710571,1351711294,1351711262,1351711227,1351711198,1351711148,1351711120,1351711652,1351711563,1351711536,1351712178,1351712110,1351712051,1351711989,1351711940,1351712903,1351712859,1351712820,1351712781,1351712703,1351712651,1351713083,1351713056,1351713031); 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([22280602]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} new output for save of step final : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940] map_info['map_portfolio_photo'] : {22280602: [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940, 1351711652, 1351711563, 1351711536, 1351711294, 1351711262, 1351711227, 1351711198, 1351711148, 1351711120, 1351710735, 1351710683, 1351710651, 1351710601, 1351710571, 1351710250, 1351710211, 1351710158, 1351710128, 1351710080, 1351709668, 1351709580, 1351709495, 1351709443, 1351709269, 1351709203, 1351709155, 1351709038, 1351708992, 1351708766, 1351708737, 1351708723, 1351708694, 1351708422, 1351708398, 1351708368, 1351708341, 1351708010, 1351707966, 1351707932, 1351707898, 1351707864]} final : False mtd_id 4302 list_pids : [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940] Looping around the photos to save general results len do output : 14 /1351713083.Didn't retrieve data . /1351713056.Didn't retrieve data . /1351713031.Didn't retrieve data . /1351712903.Didn't retrieve data . /1351712859.Didn't retrieve data . /1351712820.Didn't retrieve data . /1351712781.Didn't retrieve data . /1351712703.Didn't retrieve data . /1351712651.Didn't retrieve data . /1351712178.Didn't retrieve data . /1351712110.Didn't retrieve data . /1351712051.Didn't retrieve data . /1351711989.Didn't retrieve data . /1351711940.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, '2745057') ('4302', '22280602', '1351713083', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351713056', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351713031', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712903', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712859', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712820', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712781', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712703', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712651', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712178', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712110', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712051', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351711989', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351711940', None, None, None, None, None, '2745057') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '22280602', '1351713083', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351713056', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351713031', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351712903', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351712859', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351712820', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351712781', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351712703', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351712651', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351712178', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351712110', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351712051', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351711989', '0.04223120027920025', None, None, None, None, '2745057'), ('4302', '22280602', '1351711940', '0.04223120027920025', None, None, None, None, '2745057')] time used for this insertion : 0.013602018356323242 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06739950180053711 time spend to save output : 0.014133691787719727 total time spend for step 2 : 0.08153319358825684 step3:velours_tree Fri Apr 11 15:28:08 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 : {22280602: [{'papier': 22280664, 'kraft': 22280665, 'autre_refus': 22280666, 'Carton_brun': 22280667, 'cartonnette': 22280668, 'Teint_Dans_La_Masse': 22280669, 'flou': 22280670, 'mal_croppe': 22280671, 'environnement': 22280672, 'Carton_gris': 22280673, 'plastique': 22280674, 'metal': 22280675}]} input_args_next_step : {22280602: ()} output_args : {22280602: [{'papier': 22280664, 'kraft': 22280665, 'autre_refus': 22280666, 'Carton_brun': 22280667, 'cartonnette': 22280668, 'Teint_Dans_La_Masse': 22280669, 'flou': 22280670, 'mal_croppe': 22280671, 'environnement': 22280672, 'Carton_gris': 22280673, 'plastique': 22280674, 'metal': 22280675}]} args : 22280602 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 : ({'papier': 22280664, 'kraft': 22280665, 'autre_refus': 22280666, 'Carton_brun': 22280667, 'cartonnette': 22280668, 'Teint_Dans_La_Masse': 22280669, 'flou': 22280670, 'mal_croppe': 22280671, 'environnement': 22280672, 'Carton_gris': 22280673, 'plastique': 22280674, 'metal': 22280675},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22280602) 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([22280602]) 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.5901205539703369 time spend to save output : 7.963180541992188e-05 total time spend for step 3 : 0.5902001857757568 step4:send_mail_cod Fri Apr 11 15:28:09 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 : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} input_args_next_step : {1351713083: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351713083 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351713056 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351713031 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351712903 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351712859 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351712820 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351712781 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351712703 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351712651 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351712178 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351712110 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351712051 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351711989 depend.output_id : 0 input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ()} output_args : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',)} args : 1351711940 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 : {22280602: [{'papier': 22280664, 'kraft': 22280665, 'autre_refus': 22280666, 'Carton_brun': 22280667, 'cartonnette': 22280668, 'Teint_Dans_La_Masse': 22280669, 'flou': 22280670, 'mal_croppe': 22280671, 'environnement': 22280672, 'Carton_gris': 22280673, 'plastique': 22280674, 'metal': 22280675}]} input_args_next_step : {1351713083: ('0.04223120027920025',), 1351713056: ('0.04223120027920025',), 1351713031: ('0.04223120027920025',), 1351712903: ('0.04223120027920025',), 1351712859: ('0.04223120027920025',), 1351712820: ('0.04223120027920025',), 1351712781: ('0.04223120027920025',), 1351712703: ('0.04223120027920025',), 1351712651: ('0.04223120027920025',), 1351712178: ('0.04223120027920025',), 1351712110: ('0.04223120027920025',), 1351712051: ('0.04223120027920025',), 1351711989: ('0.04223120027920025',), 1351711940: ('0.04223120027920025',), 22280602: ()} output_args : {22280602: [{'papier': 22280664, 'kraft': 22280665, 'autre_refus': 22280666, 'Carton_brun': 22280667, 'cartonnette': 22280668, 'Teint_Dans_La_Masse': 22280669, 'flou': 22280670, 'mal_croppe': 22280671, 'environnement': 22280672, 'Carton_gris': 22280673, 'plastique': 22280674, 'metal': 22280675}]} args : 22280602 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 :15, first value : ('0.04223120027920025',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22280602) 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 (1351713083,1351713056,1351713031,1351712903,1351712859,1351712820,1351712781,1351712703,1351712651,1351712178,1351712110,1351712051,1351711989,1351711940) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351711940 begin to download photo : 1351712110 begin to download photo : 1351712703 begin to download photo : 1351712859 begin to download photo : 1351713056 download finish for photo 1351713056 begin to download photo : 1351713083 download finish for photo 1351712859 begin to download photo : 1351712903 download finish for photo 1351712110 begin to download photo : 1351712178 download finish for photo 1351712703 begin to download photo : 1351712781 download finish for photo 1351711940 begin to download photo : 1351711989 download finish for photo 1351712178 begin to download photo : 1351712651 download finish for photo 1351712903 begin to download photo : 1351713031 download finish for photo 1351713083 download finish for photo 1351712781 begin to download photo : 1351712820 download finish for photo 1351711989 begin to download photo : 1351712051 download finish for photo 1351713031 download finish for photo 1351712651 download finish for photo 1351712820 download finish for photo 1351712051 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222806651744378089/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22280602_11-04-2025_15_28_09.pdf 22280665 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=22280665 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222806651744378089 22280666 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=22280666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351711411: '1744377731_1844417_1351709269_be00a4d33ca59a2011327b8d9ca72abc_rle_crop_3757655564_0.png', 1351713222: '1744377947_51843_1351709495_e87f43203117fe153710701cec59c2c0_rle_crop_3757673741_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/92efd09cb417e4e95bd381ed23aff644_66008931.png change filename to text .imagette222806661744378089/ imagette222806661744378089/1744377731_1844417_1351709269_be00a4d33ca59a2011327b8d9ca72abc_rle_crop_3757655564_0.png.png imagette222806661744378089/1744377947_51843_1351709495_e87f43203117fe153710701cec59c2c0_rle_crop_3757673741_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9b14f374dbd7367dd55d62278a1bbaa6_10287665.png imagette222806661744378089 22280668 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=22280668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351711178: '1744377672_1843678_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757651490_0.png', 1351711890: '1744377796_1844918_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757651490_0.png', 1351713111: '1744377913_1846599_1351710735_863d9cf5ea1637854fdcbd0272c36095_rle_crop_3757670060_0.png', 1351713230: '1744377947_51843_1351709443_8fa7a50d3099a225852b946726d49e99_rle_crop_3757673769_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/26a464aa41b232002221561994d7f04a_80372733.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/26a464aa41b232002221561994d7f04a_70990048.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/89dc6d26eb93696aaa4125b991863df7_65991281.png change filename to text .imagette222806681744378089/ imagette222806681744378089/1744377796_1844918_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757651490_0.png.png imagette222806681744378089/1744377672_1843678_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757651490_0.png.png imagette222806681744378089/1744377947_51843_1351709443_8fa7a50d3099a225852b946726d49e99_rle_crop_3757673769_0.png.png imagette222806681744378089/1744377913_1846599_1351710735_863d9cf5ea1637854fdcbd0272c36095_rle_crop_3757670060_0.png.png imagette222806701744378090/ imagette222806711744378090/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f99690cc6b809477c300fa7f361eb1af_30364367.png imagette222806681744378089 22280670 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=22280670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222806701744378090 22280671 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=22280671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222806711744378090 22280674 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=22280674 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351711183: '1744377672_1843678_1351708341_29b4e94f165d845339dc06f6f61ff21c_rle_crop_3757653701_0.png', 1351711899: '1744377796_1844918_1351708341_29b4e94f165d845339dc06f6f61ff21c_rle_crop_3757653701_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6c865ae06e869845df076a480587d503_42921827.png change filename to text .imagette222806741744378090/ imagette222806741744378090/1744377672_1843678_1351708341_29b4e94f165d845339dc06f6f61ff21c_rle_crop_3757653701_0.png.png imagette222806741744378090/1744377796_1844918_1351708341_29b4e94f165d845339dc06f6f61ff21c_rle_crop_3757653701_0.png.png imagette222806751744378090/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6c865ae06e869845df076a480587d503_52916324.png imagette222806741744378090 22280675 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=22280675 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222806751744378090 22280667 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=22280667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351712811: '1744377821_50982_1351707966_fd713145375784429e9019b327b01d8c_rle_crop_3757665982_0.png', 1351712814: '1744377821_50982_1351707932_2b2e0da72a49700f4599c71624b83e16_rle_crop_3757666135_0.png', 1351712818: '1744377821_50982_1351707898_3388b86926ad68eef15bd707e9070d0c_rle_crop_3757666790_0.png', 1351713265: '1744377947_51843_1351709580_b21e369e9ef71a66d8c0083da097e522_rle_crop_3757672632_0.png', 1351713269: '1744377947_51843_1351709495_e87f43203117fe153710701cec59c2c0_rle_crop_3757673739_0.png', 1351713272: '1744377947_51843_1351709495_e87f43203117fe153710701cec59c2c0_rle_crop_3757673742_0.png', 1351713275: '1744377947_51843_1351709443_8fa7a50d3099a225852b946726d49e99_rle_crop_3757673773_0.png', 1351713278: '1744377947_51843_1351709443_8fa7a50d3099a225852b946726d49e99_rle_crop_3757673770_0.png', 1351713282: '1744377947_51843_1351709443_8fa7a50d3099a225852b946726d49e99_rle_crop_3757673774_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/51b2f8cc86328737fb33a90a398b528e_48004466.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f4dd6b47d91646662ecb3af09b234749_69122765.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/653db18586b0b98b0f18fee69b32d7d6_5364441.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/eb37a35e2fadab898b2975d665a89f26_71028901.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/fa426531360e3462463486a1d6192888_38329131.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/befed485a69cb1a350a6f324878172ae_38567861.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8880a58895a8c119872cc75b1d06dcdb_35375266.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4c348b4335c0b95ffb55570261c74a6f_12647483.png change filename to text .imagette222806671744378090/ imagette222806671744378090/1744377947_51843_1351709495_e87f43203117fe153710701cec59c2c0_rle_crop_3757673739_0.png.png imagette222806671744378090/1744377821_50982_1351707932_2b2e0da72a49700f4599c71624b83e16_rle_crop_3757666135_0.png.png imagette222806671744378090/1744377821_50982_1351707966_fd713145375784429e9019b327b01d8c_rle_crop_3757665982_0.png.png imagette222806671744378090/1744377947_51843_1351709443_8fa7a50d3099a225852b946726d49e99_rle_crop_3757673773_0.png.png imagette222806671744378090/1744377821_50982_1351707898_3388b86926ad68eef15bd707e9070d0c_rle_crop_3757666790_0.png.png imagette222806671744378090/1744377947_51843_1351709495_e87f43203117fe153710701cec59c2c0_rle_crop_3757673742_0.png.png imagette222806671744378090/1744377947_51843_1351709443_8fa7a50d3099a225852b946726d49e99_rle_crop_3757673770_0.png.png imagette222806671744378090/1744377947_51843_1351709443_8fa7a50d3099a225852b946726d49e99_rle_crop_3757673774_0.png.png imagette222806671744378090/1744377947_51843_1351709580_b21e369e9ef71a66d8c0083da097e522_rle_crop_3757672632_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d661880abc927f7bc9930628b03e9085_83597530.png imagette222806671744378090 22280669 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=22280669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351711854: '1744377796_1844918_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757651492_0.png', 1351713213: '1744377947_51843_1351709580_b21e369e9ef71a66d8c0083da097e522_rle_crop_3757672634_0.png', 1351713090: '1744377913_1846599_1351710080_5e7d45f4cf29da0f3fcb4dfcf90d05b8_rle_crop_3757672959_0.png', 1351713089: '1744377913_1846599_1351710128_b77c44db1dc952e3a5219638e7186f20_rle_crop_3757672584_0.png', 1351713088: '1744377913_1846599_1351710735_863d9cf5ea1637854fdcbd0272c36095_rle_crop_3757670062_0.png', 1351713086: '1744377913_1846599_1351710735_863d9cf5ea1637854fdcbd0272c36095_rle_crop_3757670069_0.png', 1351712771: '1744377821_50982_1351708422_0b76d8eb3bd535c03c20e742fbd6d23c_rle_crop_3757664925_0.png', 1351712768: '1744377821_50982_1351708422_0b76d8eb3bd535c03c20e742fbd6d23c_rle_crop_3757664921_0.png', 1351711857: '1744377796_1844918_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757664118_0.png', 1351711855: '1744377796_1844918_1351708368_0ff3aa5e0e061e383ce3b826414874d0_bib_crop_3757651494_0.jpg', 1351710532: '1744377611_1842991_1351708723_b4106a2d0b6f3af7c1548fbc68d0a7a0_rle_crop_3757643266_0.png', 1351711853: '1744377796_1844918_1351708398_2e731fcef6ef6e3c3d1bb0283a6ddf2a_rle_crop_3757649792_0.png', 1351711852: '1744377796_1844918_1351708398_2e731fcef6ef6e3c3d1bb0283a6ddf2a_rle_crop_3757649789_0.png', 1351711399: '1744377731_1844417_1351708723_b4106a2d0b6f3af7c1548fbc68d0a7a0_rle_crop_3757643266_0.png', 1351711398: '1744377731_1844417_1351709269_be00a4d33ca59a2011327b8d9ca72abc_rle_crop_3757655568_0.png', 1351711397: '1744377731_1844417_1351709269_be00a4d33ca59a2011327b8d9ca72abc_rle_crop_3757655572_0.png', 1351711141: '1744377672_1843678_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757651494_0.png', 1351711140: '1744377672_1843678_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757651492_0.png', 1351711139: '1744377672_1843678_1351708398_2e731fcef6ef6e3c3d1bb0283a6ddf2a_rle_crop_3757649792_0.png', 1351711138: '1744377672_1843678_1351708398_2e731fcef6ef6e3c3d1bb0283a6ddf2a_rle_crop_3757649789_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2346cf5ec417f55b3caf15366a9c476c_18808736.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/726f87a15d1f7b51b29d6c33f61e85e6_59419546.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/983b92826fa3dc00c67e0568794bfa46_25214120.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/763450f7f0cfe26002b4fff30a049a0f_89695445.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/031e0ef5bf001e57841a19aa12395f17_76669225.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/921a1c6367111052d07d87226dea0e5c_22306404.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/702e7b010adeb3ae1d2b6a2a109c8864_47102685.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/96476451f3b9692d571feebdba545c85_64639009.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e76c669c77065ba46feee0d61b18bc76_3504488.png change filename to text .wget -O 10.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/443f1da6f5068ca495e9a93f567d5c45_95014792.jpg change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6901f0782f940990e5454dbf550b728d_9240286.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/eb68d0cb6cb4021ae74126dd890095f4_47295634.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0e2092cd513f4e9210a3ec1a483c6eb5_3119662.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6901f0782f940990e5454dbf550b728d_40939189.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f8f8f8f0afdf3b8d65ad6dc59738547c_64883269.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/34d65f61c9e4efd956309d069268bacc_39103375.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/79bd30ae84f550319e5a63cfdba3b4ea_47693040.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2346cf5ec417f55b3caf15366a9c476c_5531299.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/eb68d0cb6cb4021ae74126dd890095f4_4188070.png change filename to text .imagette222806691744378090/ imagette222806691744378090/1744377731_1844417_1351708723_b4106a2d0b6f3af7c1548fbc68d0a7a0_rle_crop_3757643266_0.png.png imagette222806691744378090/1744377731_1844417_1351709269_be00a4d33ca59a2011327b8d9ca72abc_rle_crop_3757655568_0.png.png imagette222806691744378090/1744377672_1843678_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757651492_0.png.png imagette222806691744378090/1744377731_1844417_1351709269_be00a4d33ca59a2011327b8d9ca72abc_rle_crop_3757655572_0.png.png imagette222806691744378090/1744377913_1846599_1351710128_b77c44db1dc952e3a5219638e7186f20_rle_crop_3757672584_0.png.png imagette222806691744378090/1744377796_1844918_1351708398_2e731fcef6ef6e3c3d1bb0283a6ddf2a_rle_crop_3757649792_0.png.png imagette222806691744378090/1744377672_1843678_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757651494_0.png.png imagette222806691744378090/1744377796_1844918_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757664118_0.png.png imagette222806691744378090/1744377913_1846599_1351710735_863d9cf5ea1637854fdcbd0272c36095_rle_crop_3757670069_0.png.png imagette222806691744378090/1744377947_51843_1351709580_b21e369e9ef71a66d8c0083da097e522_rle_crop_3757672634_0.png.png imagette222806691744378090/1744377796_1844918_1351708368_0ff3aa5e0e061e383ce3b826414874d0_rle_crop_3757651492_0.png.png imagette222806691744378090/1744377672_1843678_1351708398_2e731fcef6ef6e3c3d1bb0283a6ddf2a_rle_crop_3757649789_0.png.png imagette222806691744378090/1744377913_1846599_1351710080_5e7d45f4cf29da0f3fcb4dfcf90d05b8_rle_crop_3757672959_0.png.png imagette222806691744378090/1744377821_50982_1351708422_0b76d8eb3bd535c03c20e742fbd6d23c_rle_crop_3757664921_0.png.png imagette222806691744378090/1744377611_1842991_1351708723_b4106a2d0b6f3af7c1548fbc68d0a7a0_rle_crop_3757643266_0.png.png imagette222806691744378090/1744377913_1846599_1351710735_863d9cf5ea1637854fdcbd0272c36095_rle_crop_3757670062_0.png.png imagette222806691744378090/1744377672_1843678_1351708398_2e731fcef6ef6e3c3d1bb0283a6ddf2a_rle_crop_3757649792_0.png.png imagette222806691744378090/1744377821_50982_1351708422_0b76d8eb3bd535c03c20e742fbd6d23c_rle_crop_3757664925_0.png.png imagette222806691744378090/1744377796_1844918_1351708398_2e731fcef6ef6e3c3d1bb0283a6ddf2a_rle_crop_3757649789_0.png.png imagette222806691744378090/1744377796_1844918_1351708368_0ff3aa5e0e061e383ce3b826414874d0_bib_crop_3757651494_0.jpg.jpg wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0e2092cd513f4e9210a3ec1a483c6eb5_81163304.png imagette222806691744378090 22280673 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=22280673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351710538: '1744377611_1842991_1351708694_7da29ef5898b51752569ea09c6c3038a_rle_crop_3757644799_0.png', 1351711165: '1744377672_1843678_1351708341_29b4e94f165d845339dc06f6f61ff21c_rle_crop_3757653704_0.png', 1351711422: '1744377731_1844417_1351708694_7da29ef5898b51752569ea09c6c3038a_rle_crop_3757644799_0.png', 1351711878: '1744377796_1844918_1351708341_29b4e94f165d845339dc06f6f61ff21c_rle_crop_3757653704_0.png', 1351712788: '1744377821_50982_1351707932_2b2e0da72a49700f4599c71624b83e16_rle_crop_3757666126_0.png', 1351712791: '1744377821_50982_1351707898_3388b86926ad68eef15bd707e9070d0c_rle_crop_3757666780_0.png', 1351713100: '1744377913_1846599_1351710735_863d9cf5ea1637854fdcbd0272c36095_rle_crop_3757670066_0.png', 1351713102: '1744377913_1846599_1351710735_863d9cf5ea1637854fdcbd0272c36095_rle_crop_3757670068_0.png', 1351713103: '1744377913_1846599_1351710128_b77c44db1dc952e3a5219638e7186f20_rle_crop_3757672581_0.png', 1351713104: '1744377913_1846599_1351710080_5e7d45f4cf29da0f3fcb4dfcf90d05b8_rle_crop_3757672955_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ca36b3c27735ba7abcb8ddfa8a2e60b9_11444609.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9b7ab916c24b7ae7f5ecf26eab5b4487_20835206.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ca36b3c27735ba7abcb8ddfa8a2e60b9_56362191.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1590e3f582543d40e250d8a92b8fe8dd_46962316.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/15b0b464483e037fbfcb86c6c43208ec_23095028.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b47378df811fdb81ccbeead26df46ea1_38244983.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/96ae53b0673627e7125c33610449673a_6710812.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/38ba2b80536fcb25bfbd6b552b7682d7_88064591.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/900981a626f826c3695cbd717ab2270a_33603092.png change filename to text .imagette222806731744378092/ imagette222806731744378092/1744377913_1846599_1351710128_b77c44db1dc952e3a5219638e7186f20_rle_crop_3757672581_0.png.png imagette222806731744378092/1744377731_1844417_1351708694_7da29ef5898b51752569ea09c6c3038a_rle_crop_3757644799_0.png.png imagette222806731744378092/1744377821_50982_1351707898_3388b86926ad68eef15bd707e9070d0c_rle_crop_3757666780_0.png.png imagette222806731744378092/1744377821_50982_1351707932_2b2e0da72a49700f4599c71624b83e16_rle_crop_3757666126_0.png.png imagette222806731744378092/1744377611_1842991_1351708694_7da29ef5898b51752569ea09c6c3038a_rle_crop_3757644799_0.png.png imagette222806731744378092/1744377913_1846599_1351710735_863d9cf5ea1637854fdcbd0272c36095_rle_crop_3757670066_0.png.png imagette222806731744378092/1744377913_1846599_1351710735_863d9cf5ea1637854fdcbd0272c36095_rle_crop_3757670068_0.png.png imagette222806731744378092/1744377913_1846599_1351710080_5e7d45f4cf29da0f3fcb4dfcf90d05b8_rle_crop_3757672955_0.png.png imagette222806731744378092/1744377796_1844918_1351708341_29b4e94f165d845339dc06f6f61ff21c_rle_crop_3757653704_0.png.png imagette222806731744378092/1744377672_1843678_1351708341_29b4e94f165d845339dc06f6f61ff21c_rle_crop_3757653704_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b2f5052798250eac36ed8a02b6041259_88979324.png imagette222806731744378092 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22280602 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22280676,22280677,22280678,22280679,22280680,22280681,22280682,22280683,22280684,22280685,22280686,22280687?tags=papier,kraft,autre_refus,Carton_brun,cartonnette,Teint_Dans_La_Masse,flou,mal_croppe,environnement,Carton_gris,plastique,metal your option no_mail is active, we will not send the real mail to your client args[1351713083] : ('0.04223120027920025',) no score found for photo 1351713083 We are sending mail with results at report@fotonower.com args[1351713056] : ('0.04223120027920025',) no score found for photo 1351713056 We are sending mail with results at report@fotonower.com args[1351713031] : ('0.04223120027920025',) no score found for photo 1351713031 We are sending mail with results at report@fotonower.com args[1351712903] : ('0.04223120027920025',) no score found for photo 1351712903 We are sending mail with results at report@fotonower.com args[1351712859] : ('0.04223120027920025',) no score found for photo 1351712859 We are sending mail with results at report@fotonower.com args[1351712820] : ('0.04223120027920025',) no score found for photo 1351712820 We are sending mail with results at report@fotonower.com args[1351712781] : ('0.04223120027920025',) no score found for photo 1351712781 We are sending mail with results at report@fotonower.com args[1351712703] : ('0.04223120027920025',) no score found for photo 1351712703 We are sending mail with results at report@fotonower.com args[1351712651] : ('0.04223120027920025',) no score found for photo 1351712651 We are sending mail with results at report@fotonower.com args[1351712178] : ('0.04223120027920025',) no score found for photo 1351712178 We are sending mail with results at report@fotonower.com args[1351712110] : ('0.04223120027920025',) no score found for photo 1351712110 We are sending mail with results at report@fotonower.com args[1351712051] : ('0.04223120027920025',) no score found for photo 1351712051 We are sending mail with results at report@fotonower.com args[1351711989] : ('0.04223120027920025',) no score found for photo 1351711989 We are sending mail with results at report@fotonower.com args[1351711940] : ('0.04223120027920025',) no score found for photo 1351711940 We are sending mail with results at report@fotonower.com refus_total : 0.04223120027920025 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=22280602 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_P22280602_11-04-2025_15_28_09.pdf results_Auto_P22280602_11-04-2025_15_28_09.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22280602_11-04-2025_15_28_09.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','22280602','results_Auto_P22280602_11-04-2025_15_28_09.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22280602_11-04-2025_15_28_09.pdf','pdf','','0.27','0.04223120027920025') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22280602]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940] map_info['map_portfolio_photo'] : {22280602: [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940, 1351711652, 1351711563, 1351711536, 1351711294, 1351711262, 1351711227, 1351711198, 1351711148, 1351711120, 1351710735, 1351710683, 1351710651, 1351710601, 1351710571, 1351710250, 1351710211, 1351710158, 1351710128, 1351710080, 1351709668, 1351709580, 1351709495, 1351709443, 1351709269, 1351709203, 1351709155, 1351709038, 1351708992, 1351708766, 1351708737, 1351708723, 1351708694, 1351708422, 1351708398, 1351708368, 1351708341, 1351708010, 1351707966, 1351707932, 1351707898, 1351707864]} final : False mtd_id 4302 list_pids : [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940] 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, '2745057') ('4302', '22280602', '1351713083', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351713056', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351713031', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712903', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712859', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712820', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712781', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712703', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712651', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712178', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712110', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712051', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351711989', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351711940', None, None, None, None, None, '2745057') 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', '22280602', '1351713083', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351713056', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351713031', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712903', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712859', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712820', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712781', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712703', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712651', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712178', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712110', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712051', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351711989', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351711940', None, None, None, None, None, '2745057')] time used for this insertion : 0.027264833450317383 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.003618001937866 time spend to save output : 0.027605533599853516 total time spend for step 4 : 5.03122353553772 step5:split_time_score Fri Apr 11 15:28:14 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 : ['22280602'] 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 : [('22280602',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22280602) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351713056: {'path': 'temp/1744378089_449214_1351713056_666b3af9b03f326572065e045861b1d2.jpg', 'extension': 'jpg'}, 1351713083: {'path': 'temp/1744378089_449214_1351713083_d1f852b2cc2ed2199ec8db2b5d240d67.jpg', 'extension': 'jpg'}, 1351712859: {'path': 'temp/1744378089_449214_1351712859_5f10e757d42d6f9588bb9cf74948424e.jpg', 'extension': 'jpg'}, 1351712903: {'path': 'temp/1744378089_449214_1351712903_ae334e7b127f347b1ee67a24bb2743f9.jpg', 'extension': 'jpg'}, 1351713031: {'path': 'temp/1744378089_449214_1351713031_f78560ed837dfa8725e9bde5c69741a6.jpg', 'extension': 'jpg'}, 1351712110: {'path': 'temp/1744378089_449214_1351712110_8524200d2d5e73b3274baa6219e35a8a.jpg', 'extension': 'jpg'}, 1351712178: {'path': 'temp/1744378089_449214_1351712178_07a8f764b98d8ff233327796d37874c4.jpg', 'extension': 'jpg'}, 1351712651: {'path': 'temp/1744378089_449214_1351712651_ae2ad01da0004163006b094ba228a15e.jpg', 'extension': 'jpg'}, 1351712703: {'path': 'temp/1744378089_449214_1351712703_6b411260225381074c25851480fd02aa.jpg', 'extension': 'jpg'}, 1351712781: {'path': 'temp/1744378089_449214_1351712781_4ad66dfe49c67c026f1fe20a462e4a90.jpg', 'extension': 'jpg'}, 1351712820: {'path': 'temp/1744378089_449214_1351712820_d9045887966f2b0856d46a2e244141bf.jpg', 'extension': 'jpg'}, 1351711940: {'path': 'temp/1744378089_449214_1351711940_d215326215f6ffc9cc5abbd009d6064e.jpg', 'extension': 'jpg'}, 1351711989: {'path': 'temp/1744378089_449214_1351711989_67168443e89f2c12e16571f8339c766c.jpg', 'extension': 'jpg'}, 1351712051: {'path': 'temp/1744378089_449214_1351712051_fa3bafd6cb599f780ea19c53164c3216.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 = 22280602; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22280602 group by h (('15', 55),) 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=22280602 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 (22280602) 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 (22280602) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22280602 Nombre de photos uploadées : 55 / 23040 (0%) 11042025 22280602 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 11042025 22280602 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1351708010, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e6126491b77245a54b93cca63ea17aa1.jpg', 'username': None, 'uploaded_at': 1744377367, 'text': 'image_11042025_15_15_04_009131m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351707966, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/fd713145375784429e9019b327b01d8c.jpg', 'username': None, 'uploaded_at': 1744377367, 'text': 'image_11042025_15_15_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351707932, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2b2e0da72a49700f4599c71624b83e16.jpg', 'username': None, 'uploaded_at': 1744377367, 'text': 'image_11042025_15_15_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351707898, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3388b86926ad68eef15bd707e9070d0c.jpg', 'username': None, 'uploaded_at': 1744377367, 'text': 'image_11042025_15_15_34_010141m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023620128631591797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22280602, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 1.282414197921753 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1743711, 'mtr_portfolio_id': 22278478, 'dashboard_result_id': 10026848, '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_P22278478_11-04-2025_14_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22278510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278521, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1743711, 'mtr_portfolio_id': 22278867, 'dashboard_result_id': 10026849, '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_P22278867_11-04-2025_15_03_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22278901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278909, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1743711, 'mtr_portfolio_id': 22279715, 'dashboard_result_id': 10026851, '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_P22279715_11-04-2025_15_17_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22279801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22279802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22279803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22279804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22279805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22279806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22279807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22279808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22279809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22279810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22279811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22279812, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1743711, 'mtr_portfolio_id': 22280602, 'dashboard_result_id': 10026852, '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_P22280602_11-04-2025_15_25_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22280664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22280665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22280666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22280667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22280668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22280669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22280670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22280671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22280672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22280673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22280674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22280675, '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 = 22278478 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': 2744808, 'mtr_portfolio_id': 22278478, 'created_at': datetime.datetime(2025, 4, 11, 14, 48, 59), 'result': '0.04746497418787983', 'result_long': None, 'result_double': None}] Qualite : 0.04746497418787983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22278478 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278478_11-04-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22278478 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_P22278478_11-04-2025_14_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22278510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278521, 'pht': 3726}}" where mtr_portfolio_id = 22278478 and dashboard_run_id = 1743711 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`=22278478 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10026848, 0.04746497418787983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278478_11-04-2025_14_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22278510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278521, '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 = 22278867 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': 2744884, 'mtr_portfolio_id': 22278867, 'created_at': datetime.datetime(2025, 4, 11, 15, 3, 37), 'result': '0.027517227350423862', 'result_long': None, 'result_double': None}] Qualite : 0.027517227350423862 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22278867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278867_11-04-2025_15_03_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22278867 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_P22278867_11-04-2025_15_03_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22278901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278909, 'pht': 3726}}" where mtr_portfolio_id = 22278867 and dashboard_run_id = 1743711 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`=22278867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10026849, 0.027517227350423862, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278867_11-04-2025_15_03_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22278901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278909, '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 = 22279715 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': 2744985, 'mtr_portfolio_id': 22279715, 'created_at': datetime.datetime(2025, 4, 11, 15, 17, 31), 'result': '0.03821175810453171', 'result_long': None, 'result_double': None}] Qualite : 0.03821175810453171 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22279715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22279715_11-04-2025_15_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22279715 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_P22279715_11-04-2025_15_17_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22279801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22279802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22279803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22279804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22279805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22279806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22279807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22279808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22279809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22279810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22279811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22279812, 'pht': 3726}}" where mtr_portfolio_id = 22279715 and dashboard_run_id = 1743711 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`=22279715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10026851, 0.03821175810453171, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22279715_11-04-2025_15_17_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22279801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22279802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22279803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22279804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22279805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22279806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22279807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22279808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22279809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22279810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22279811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22279812, '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 = 22280602 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': 2745057, 'mtr_portfolio_id': 22280602, 'created_at': datetime.datetime(2025, 4, 11, 15, 28, 8), 'result': '0.04223120027920025', 'result_long': None, 'result_double': None}] Qualite : 0.04223120027920025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22280602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22280602_11-04-2025_15_28_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22280602 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_P22280602_11-04-2025_15_28_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22280664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22280665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22280666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22280667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22280668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22280669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22280670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22280671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22280672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22280673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22280674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22280675, 'pht': 3726}}" where mtr_portfolio_id = 22280602 and dashboard_run_id = 1743711 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`=22280602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10026852, 0.04223120027920025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22280602_11-04-2025_15_28_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22280664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22280665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22280666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22280667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22280668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22280669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22280670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22280671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22280672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22280673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22280674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22280675, '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 (22278478,22278867,22279715,22280602) result : ((1351684049,), (1351684368,), (1351685083,), (1351685105,), (1351685208,), (1351685213,), (1351685217,), (1351685227,), (1351685332,), (1351685337,), (1351685340,), (1351685346,), (1351685356,), (1351685465,), (1351685470,), (1351685476,), (1351685481,), (1351685729,), (1351685780,), (1351685818,), (1351685860,), (1351686426,), (1351686501,), (1351686548,), (1351686594,), (1351686643,), (1351686685,), (1351687016,), (1351687073,), (1351687080,), (1351687111,), (1351687135,), (1351687217,), (1351687500,), (1351687852,), (1351687905,), (1351687961,), (1351688978,), (1351689083,), (1351689112,), (1351689137,), (1351689167,), (1351689404,), (1351689473,), (1351689529,), (1351689607,), (1351689668,), (1351690598,), (1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,), (1351699053,), (1351699086,), (1351699118,), (1351699129,), (1351699176,), (1351699180,), (1351699293,), (1351699255,), (1351699282,), (1351699288,), (1351699527,), (1351699613,), (1351699739,), (1351699836,), (1351699865,), (1351700243,), (1351700276,), (1351700296,), (1351700311,), (1351700333,), (1351700667,), (1351700718,), (1351700755,), (1351700799,), (1351700878,), (1351700921,), (1351701412,), (1351701464,), (1351701510,), (1351701559,), (1351701815,), (1351701862,), (1351701911,), (1351701958,), (1351702010,), (1351702064,), (1351702690,), (1351702797,), (1351702917,), (1351703016,), (1351703274,), (1351703382,), (1351703474,), (1351703560,), (1351703604,), (1351703681,), (1351703949,), (1351704012,), (1351704047,), (1351704058,), (1351704086,), (1351704139,), (1351704408,), (1351704448,), (1351704510,), (1351704554,), (1351704978,), (1351705056,), (1351705111,), (1351705205,), (1351705258,), (1351705282,), (1351705451,), (1351705495,), (1351705555,), (1351705609,), (1351705641,), (1351705952,), (1351705999,), (1351706016,), (1351706574,), (1351706652,), (1351706728,), (1351706809,), (1351707243,), (1351707319,), (1351707380,), (1351708081,), (1351707864,), (1351707898,), (1351707932,), (1351707966,), (1351708010,), (1351708341,), (1351708368,), (1351708398,), (1351708422,), (1351708694,), (1351708723,), (1351708737,), (1351708766,), (1351708992,), (1351709038,), (1351709155,), (1351709203,), (1351709269,), (1351709443,), (1351709495,), (1351709580,), (1351709668,), (1351710080,), (1351710128,), (1351710158,), (1351710211,), (1351710250,), (1351710571,), (1351710601,), (1351710651,), (1351710683,), (1351710735,), (1351711120,), (1351711148,), (1351711198,), (1351711227,), (1351711262,), (1351711294,), (1351711536,), (1351711563,), (1351711652,), (1351711940,), (1351711989,), (1351712051,), (1351712110,), (1351712178,), (1351712651,), (1351712703,), (1351712781,), (1351712820,), (1351712859,), (1351712903,), (1351713031,), (1351713056,), (1351713083,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22280602]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940] map_info['map_portfolio_photo'] : {22280602: [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940, 1351711652, 1351711563, 1351711536, 1351711294, 1351711262, 1351711227, 1351711198, 1351711148, 1351711120, 1351710735, 1351710683, 1351710651, 1351710601, 1351710571, 1351710250, 1351710211, 1351710158, 1351710128, 1351710080, 1351709668, 1351709580, 1351709495, 1351709443, 1351709269, 1351709203, 1351709155, 1351709038, 1351708992, 1351708766, 1351708737, 1351708723, 1351708694, 1351708422, 1351708398, 1351708368, 1351708341, 1351708010, 1351707966, 1351707932, 1351707898, 1351707864]} final : True mtd_id 4302 list_pids : [1351713083, 1351713056, 1351713031, 1351712903, 1351712859, 1351712820, 1351712781, 1351712703, 1351712651, 1351712178, 1351712110, 1351712051, 1351711989, 1351711940] Looping around the photos to save general results len do output : 1 /22280602Didn'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, '2745057') ('4302', '22280602', '1351713083', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351713056', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351713031', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712903', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712859', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712820', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712781', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712703', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712651', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712178', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712110', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351712051', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351711989', None, None, None, None, None, '2745057') ('4302', None, None, None, None, None, None, None, '2745057') ('4302', '22280602', '1351711940', None, None, None, None, None, '2745057') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22280602', 'None', None, None, None, None, '2745057'), ('4302', '22280602', '1351713083', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351713056', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351713031', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712903', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712859', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712820', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712781', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712703', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712651', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712178', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712110', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351712051', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351711989', None, None, None, None, None, '2745057'), ('4302', '22280602', '1351711940', None, None, None, None, None, '2745057')] time used for this insertion : 0.01647210121154785 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7743704319000244 time spend to save output : 0.01671004295349121 total time spend for step 5 : 1.7910804748535156 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 (2745057) 2.57user 2.18system 0:20.57elapsed 23%CPU (0avgtext+0avgdata 159964maxresident)k 68984inputs+16512outputs (297major+78115minor)pagefaults 0swaps