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 : 131569 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 (2579997) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2579997) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482458 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2579997'] with mtr_portfolio_ids : ['20482458'] and first list_photo_ids : [] new path : /proc/131569/ Name: python3 Umask: 0002 State: R (running) Tgid: 131569 Ngid: 0 Pid: 131569 PPid: 131566 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 131569 NSpid: 131569 NSpgid: 130527 NSsid: 130527 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99508 kB VmRSS: 99508 kB RssAnon: 59748 kB RssFile: 39760 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 536 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: 37 nonvoluntary_ctxt_switches: 209 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '131569', 'Ngid': '0', 'Pid': '131569', 'PPid': '131566', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '131569', 'NSpid': '131569', 'NSpgid': '130527', 'NSsid': '130527', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99508 kB', 'VmRSS': '99508 kB', 'RssAnon': '59748 kB', 'RssFile': '39760 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '536 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': '37', 'nonvoluntary_ctxt_switches': '209'} ('datou_batch_current', '131569', '1106928', '0', '1106928', '865680', '99508', b'', 'marlene', '2579997') 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 (20482458) 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 (2579997 ) ) 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 (20482458) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1337145183, 'portfolio_id': 20482458}, {'photo_id': 1337145177, 'portfolio_id': 20482458}, {'photo_id': 1337145173, 'portfolio_id': 20482458}, {'photo_id': 1337145171, 'portfolio_id': 20482458}, {'photo_id': 1337145170, 'portfolio_id': 20482458}, {'photo_id': 1337144884, 'portfolio_id': 20482458}, {'photo_id': 1337144882, 'portfolio_id': 20482458}, {'photo_id': 1337144880, 'portfolio_id': 20482458}, {'photo_id': 1337144869, 'portfolio_id': 20482458}, {'photo_id': 1337144868, 'portfolio_id': 20482458}, {'photo_id': 1337144665, 'portfolio_id': 20482458}, {'photo_id': 1337144611, 'portfolio_id': 20482458}, {'photo_id': 1337144581, 'portfolio_id': 20482458}, {'photo_id': 1337144579, 'portfolio_id': 20482458}, {'photo_id': 1337144577, 'portfolio_id': 20482458}, {'photo_id': 1337144575, 'portfolio_id': 20482458}, {'photo_id': 1337144145, 'portfolio_id': 20482458}, {'photo_id': 1337144089, 'portfolio_id': 20482458}, {'photo_id': 1337144082, 'portfolio_id': 20482458}, {'photo_id': 1337144081, 'portfolio_id': 20482458}, {'photo_id': 1337143880, 'portfolio_id': 20482458}, {'photo_id': 1337143719, 'portfolio_id': 20482458}, {'photo_id': 1337143665, 'portfolio_id': 20482458}, {'photo_id': 1337143587, 'portfolio_id': 20482458}, {'photo_id': 1337143519, 'portfolio_id': 20482458}] map_portfolio_id_photo_id: {20482458: [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575, 1337144145, 1337144089, 1337144082, 1337144081, 1337143880, 1337143719, 1337143665, 1337143587, 1337143519]} ##### 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.014847517013549805 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Feb 12 17:20:30 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 (20482458) 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 : 20482458 get user id for portfolio 20482458 get sub ptf for main ptf 20482458, type 3726 and hashtags ['metal', 'flou', 'cartonnette', 'environnement', 'Teint_Dans_La_Masse', 'autre_refus', 'papier', 'plastique', 'Carton_brun', 'mal_croppe', 'kraft', '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`=20482458 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','cartonnette','environnement','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_brun','mal_croppe','kraft','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`=20482458 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','cartonnette','environnement','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_brun','mal_croppe','kraft','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20482458, 'sub_port_id': 20482463, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153328, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20482458, 'sub_port_id': 20482464, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153329, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'mal_croppe': {'main_port_id': 20482458, 'sub_port_id': 20482465, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153330, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'autre_refus': {'main_port_id': 20482458, 'sub_port_id': 20482466, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153331, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'Carton_brun': {'main_port_id': 20482458, 'sub_port_id': 20482467, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153332, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'kraft': {'main_port_id': 20482458, 'sub_port_id': 20482468, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153333, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'plastique': {'main_port_id': 20482458, 'sub_port_id': 20482469, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153334, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'cartonnette': {'main_port_id': 20482458, 'sub_port_id': 20482470, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153335, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'metal': {'main_port_id': 20482458, 'sub_port_id': 20482471, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153336, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'flou': {'main_port_id': 20482458, 'sub_port_id': 20482472, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153337, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'papier': {'main_port_id': 20482458, 'sub_port_id': 20482473, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153338, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}, 'environnement': {'main_port_id': 20482458, 'sub_port_id': 20482474, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153339, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20482463 , 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=20482458 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 (20482463) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482464 , 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=20482458 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 (20482464) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482465 , 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=20482458 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 (20482465) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482466 , 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=20482458 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 (20482466) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482467 , 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=20482458 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 (20482467) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482468 , 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=20482458 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 (20482468) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482469 , 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=20482458 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 (20482469) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482470 , 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=20482458 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 (20482470) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482471 , 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=20482458 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 (20482471) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482472 , 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=20482458 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 (20482472) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482473 , 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=20482458 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 (20482473) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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 20482474 , 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=20482458 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 (20482474) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20482458) result : ((1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) 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`=20482458 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','cartonnette','environnement','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_brun','mal_croppe','kraft','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`=20482458 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','cartonnette','environnement','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_brun','mal_croppe','kraft','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20482458, 'sub_port_id': 20482475, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153340, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 20482458, 'sub_port_id': 20482476, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153341, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'mal_croppe': {'main_port_id': 20482458, 'sub_port_id': 20482477, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153342, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'autre_refus': {'main_port_id': 20482458, 'sub_port_id': 20482478, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153343, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'Carton_brun': {'main_port_id': 20482458, 'sub_port_id': 20482479, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153344, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'kraft': {'main_port_id': 20482458, 'sub_port_id': 20482480, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153345, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'plastique': {'main_port_id': 20482458, 'sub_port_id': 20482481, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153346, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'cartonnette': {'main_port_id': 20482458, 'sub_port_id': 20482482, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153347, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'metal': {'main_port_id': 20482458, 'sub_port_id': 20482483, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153348, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'flou': {'main_port_id': 20482458, 'sub_port_id': 20482484, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153349, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'papier': {'main_port_id': 20482458, 'sub_port_id': 20482485, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153350, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}, 'environnement': {'main_port_id': 20482458, 'sub_port_id': 20482486, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13153351, 'last_updated_at': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 17, 19, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482472 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482473 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20482486,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20482474 lien utilise dans velours : https://www.fotonower.com/velours/20482475,20482476,20482477,20482478,20482479,20482480,20482481,20482482,20482483,20482484,20482485,20482486?tags=Carton_gris,Teint_Dans_La_Masse,mal_croppe,autre_refus,Carton_brun,kraft,plastique,cartonnette,metal,flou,papier,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20482458]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575] map_info['map_portfolio_photo'] : {20482458: [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575, 1337144145, 1337144089, 1337144082, 1337144081, 1337143880, 1337143719, 1337143665, 1337143587, 1337143519]} final : False mtd_id 4302 list_pids : [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575] Looping around the photos to save general results len do output : 1 /20482458. 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, '2579997') ('4302', '20482458', '1337145183', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145177', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145173', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145171', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145170', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144884', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144882', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144880', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144869', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144868', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144665', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144611', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144581', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144579', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144577', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144575', None, None, None, None, None, '2579997') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20482458', "{'Carton_gris': 20482463, 'Teint_Dans_La_Masse': 20482464, 'mal_croppe': 20482465, 'autre_refus': 20482466, 'Carton_brun': 20482467, 'kraft': 20482468, 'plastique': 20482469, 'cartonnette': 20482470, 'metal': 20482471, 'flou': 20482472, 'papier': 20482473, 'environnement': 20482474}", None, None, None, None, '2579997'), ('4302', '20482458', '1337145183', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145177', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145173', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145171', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145170', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144884', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144882', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144880', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144869', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144868', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144665', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144611', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144581', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144579', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144577', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144575', None, None, None, None, None, '2579997')] time used for this insertion : 0.014656305313110352 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3583557605743408 time spend to save output : 0.015011787414550781 total time spend for step 1 : 1.3733675479888916 step2:final Wed Feb 12 17:20:31 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 (20482458) 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 20482458 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1337143880,1337143719,1337143665,1337143587,1337143519,1337144145,1337144089,1337144082,1337144081,1337144665,1337144611,1337144581,1337144579,1337144577,1337144575,1337144884,1337144882,1337144880,1337144869,1337144868,1337145183,1337145177,1337145173,1337145171,1337145170); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20482458]) Inside saveOutput : final : False verbose : True original output for save of step final : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} new output for save of step final : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575] map_info['map_portfolio_photo'] : {20482458: [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575, 1337144145, 1337144089, 1337144082, 1337144081, 1337143880, 1337143719, 1337143665, 1337143587, 1337143519]} final : False mtd_id 4302 list_pids : [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575] Looping around the photos to save general results len do output : 16 /1337145183.Didn't retrieve data . /1337145177.Didn't retrieve data . /1337145173.Didn't retrieve data . /1337145171.Didn't retrieve data . /1337145170.Didn't retrieve data . /1337144884.Didn't retrieve data . /1337144882.Didn't retrieve data . /1337144880.Didn't retrieve data . /1337144869.Didn't retrieve data . /1337144868.Didn't retrieve data . /1337144665.Didn't retrieve data . /1337144611.Didn't retrieve data . /1337144581.Didn't retrieve data . /1337144579.Didn't retrieve data . /1337144577.Didn't retrieve data . /1337144575.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, '2579997') ('4302', '20482458', '1337145183', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145177', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145173', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145171', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145170', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144884', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144882', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144880', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144869', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144868', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144665', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144611', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144581', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144579', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144577', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144575', None, None, None, None, None, '2579997') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '20482458', '1337145183', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337145177', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337145173', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337145171', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337145170', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144884', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144882', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144880', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144869', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144868', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144665', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144611', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144581', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144579', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144577', '0.0', None, None, None, None, '2579997'), ('4302', '20482458', '1337144575', '0.0', None, None, None, None, '2579997')] time used for this insertion : 0.12195229530334473 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0509335994720459 time spend to save output : 0.12271451950073242 total time spend for step 2 : 0.17364811897277832 step3:velours_tree Wed Feb 12 17:20:31 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 : {20482458: [{'Carton_gris': 20482463, 'Teint_Dans_La_Masse': 20482464, 'mal_croppe': 20482465, 'autre_refus': 20482466, 'Carton_brun': 20482467, 'kraft': 20482468, 'plastique': 20482469, 'cartonnette': 20482470, 'metal': 20482471, 'flou': 20482472, 'papier': 20482473, 'environnement': 20482474}]} input_args_next_step : {20482458: ()} output_args : {20482458: [{'Carton_gris': 20482463, 'Teint_Dans_La_Masse': 20482464, 'mal_croppe': 20482465, 'autre_refus': 20482466, 'Carton_brun': 20482467, 'kraft': 20482468, 'plastique': 20482469, 'cartonnette': 20482470, 'metal': 20482471, 'flou': 20482472, 'papier': 20482473, 'environnement': 20482474}]} args : 20482458 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 20482463, 'Teint_Dans_La_Masse': 20482464, 'mal_croppe': 20482465, 'autre_refus': 20482466, 'Carton_brun': 20482467, 'kraft': 20482468, 'plastique': 20482469, 'cartonnette': 20482470, 'metal': 20482471, 'flou': 20482472, 'papier': 20482473, 'environnement': 20482474},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20482458) 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([20482458]) 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.3023960590362549 time spend to save output : 5.340576171875e-05 total time spend for step 3 : 0.30244946479797363 step4:send_mail_cod Wed Feb 12 17:20:32 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 : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} input_args_next_step : {1337145183: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337145183 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337145177 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337145173 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337145171 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337145170 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144884 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144882 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144880 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144869 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144868 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144665 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144611 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144581 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144579 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144577 depend.output_id : 0 input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ()} output_args : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',)} args : 1337144575 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 : {20482458: [{'Carton_gris': 20482463, 'Teint_Dans_La_Masse': 20482464, 'mal_croppe': 20482465, 'autre_refus': 20482466, 'Carton_brun': 20482467, 'kraft': 20482468, 'plastique': 20482469, 'cartonnette': 20482470, 'metal': 20482471, 'flou': 20482472, 'papier': 20482473, 'environnement': 20482474}]} input_args_next_step : {1337145183: ('0.0',), 1337145177: ('0.0',), 1337145173: ('0.0',), 1337145171: ('0.0',), 1337145170: ('0.0',), 1337144884: ('0.0',), 1337144882: ('0.0',), 1337144880: ('0.0',), 1337144869: ('0.0',), 1337144868: ('0.0',), 1337144665: ('0.0',), 1337144611: ('0.0',), 1337144581: ('0.0',), 1337144579: ('0.0',), 1337144577: ('0.0',), 1337144575: ('0.0',), 20482458: ()} output_args : {20482458: [{'Carton_gris': 20482463, 'Teint_Dans_La_Masse': 20482464, 'mal_croppe': 20482465, 'autre_refus': 20482466, 'Carton_brun': 20482467, 'kraft': 20482468, 'plastique': 20482469, 'cartonnette': 20482470, 'metal': 20482471, 'flou': 20482472, 'papier': 20482473, 'environnement': 20482474}]} args : 20482458 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 :17, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20482458) 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 (1337145183,1337145177,1337145173,1337145171,1337145170,1337144884,1337144882,1337144880,1337144869,1337144868,1337144665,1337144611,1337144581,1337144579,1337144577,1337144575) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1337144575 begin to download photo : 1337144611 begin to download photo : 1337144880 begin to download photo : 1337145171 download finish for photo 1337144611 begin to download photo : 1337144665 download finish for photo 1337144880 begin to download photo : 1337144882 download finish for photo 1337145171 begin to download photo : 1337145173 download finish for photo 1337144575 begin to download photo : 1337144577 download finish for photo 1337144665 begin to download photo : 1337144868 download finish for photo 1337145173 begin to download photo : 1337145177 download finish for photo 1337144882 begin to download photo : 1337144884 download finish for photo 1337144577 begin to download photo : 1337144579 download finish for photo 1337145177 begin to download photo : 1337145183 download finish for photo 1337144868 begin to download photo : 1337144869 download finish for photo 1337144579 begin to download photo : 1337144581 download finish for photo 1337144884 begin to download photo : 1337145170 download finish for photo 1337145183 download finish for photo 1337144869 download finish for photo 1337145170 download finish for photo 1337144581 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette204824651739377232/ imagette204824661739377232/ imagette204824681739377232/ imagette204824691739377232/ imagette204824701739377232/ imagette204824711739377232/ imagette204824721739377232/ imagette204824631739377232/ imagette204824641739377232/ imagette204824671739377232/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P20482458_12-02-2025_17_20_32.pdf 20482465 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=20482465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204824651739377232 20482466 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=20482466 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204824661739377232 20482468 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=20482468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204824681739377232 20482469 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=20482469 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204824691739377232 20482470 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=20482470 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204824701739377232 20482471 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=20482471 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204824711739377232 20482472 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=20482472 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204824721739377232 20482463 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=20482463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204824631739377232 20482464 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=20482464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204824641739377232 20482467 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=20482467 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204824671739377232 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20482458 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20482475,20482476,20482477,20482478,20482479,20482480,20482481,20482482,20482483,20482484,20482485,20482486?tags=Carton_gris,Teint_Dans_La_Masse,mal_croppe,autre_refus,Carton_brun,kraft,plastique,cartonnette,metal,flou,papier,environnement your option no_mail is active, we will not send the real mail to your client args[1337145183] : ('0.0',) no score found for photo 1337145183 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337145177] : ('0.0',) no score found for photo 1337145177 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337145173] : ('0.0',) no score found for photo 1337145173 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337145171] : ('0.0',) no score found for photo 1337145171 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337145170] : ('0.0',) no score found for photo 1337145170 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144884] : ('0.0',) no score found for photo 1337144884 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144882] : ('0.0',) no score found for photo 1337144882 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144880] : ('0.0',) no score found for photo 1337144880 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144869] : ('0.0',) no score found for photo 1337144869 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144868] : ('0.0',) no score found for photo 1337144868 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144665] : ('0.0',) no score found for photo 1337144665 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144611] : ('0.0',) no score found for photo 1337144611 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144581] : ('0.0',) no score found for photo 1337144581 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144579] : ('0.0',) no score found for photo 1337144579 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144577] : ('0.0',) no score found for photo 1337144577 apple ('0.0',) We are sending mail with results at report@fotonower.com args[1337144575] : ('0.0',) no score found for photo 1337144575 apple ('0.0',) We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20482458 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_P20482458_12-02-2025_17_20_32.pdf results_Auto_P20482458_12-02-2025_17_20_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20482458_12-02-2025_17_20_32.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','20482458','results_Auto_P20482458_12-02-2025_17_20_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20482458_12-02-2025_17_20_32.pdf','pdf','','0.14','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20482458]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575] map_info['map_portfolio_photo'] : {20482458: [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575, 1337144145, 1337144089, 1337144082, 1337144081, 1337143880, 1337143719, 1337143665, 1337143587, 1337143519]} final : False mtd_id 4302 list_pids : [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575] 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, '2579997') ('4302', '20482458', '1337145183', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145177', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145173', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145171', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145170', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144884', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144882', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144880', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144869', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144868', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144665', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144611', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144581', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144579', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144577', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144575', None, None, None, None, None, '2579997') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '20482458', '1337145183', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145177', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145173', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145171', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145170', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144884', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144882', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144880', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144869', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144868', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144665', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144611', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144581', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144579', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144577', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144575', None, None, None, None, None, '2579997')] time used for this insertion : 0.018774032592773438 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.123028516769409 time spend to save output : 0.019136667251586914 total time spend for step 4 : 2.142165184020996 step5:split_time_score Wed Feb 12 17:20:34 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 : ['20482458'] 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 : [('20482458',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20482458) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1337145171: {'path': 'temp/1739377232_131569_1337145171_3f1e25f0e152dad3e54b4e340112955f.jpg', 'extension': 'jpg'}, 1337145173: {'path': 'temp/1739377232_131569_1337145173_15e413876da8754b162dac0652f4ab71.jpg', 'extension': 'jpg'}, 1337145177: {'path': 'temp/1739377232_131569_1337145177_851e716b098abdee65f8e4bed01893fe.jpg', 'extension': 'jpg'}, 1337145183: {'path': 'temp/1739377232_131569_1337145183_1e9acab6de85eea0d1c9c24b5719afe2.jpg', 'extension': 'jpg'}, 1337144611: {'path': 'temp/1739377232_131569_1337144611_c548d7b9d468427df6e89d50e5af256d.jpg', 'extension': 'jpg'}, 1337144665: {'path': 'temp/1739377232_131569_1337144665_8965a9f18094653f4cc7d95518477b7f.jpg', 'extension': 'jpg'}, 1337144868: {'path': 'temp/1739377232_131569_1337144868_cb44621705f603f30c0574bcc7198f64.jpg', 'extension': 'jpg'}, 1337144869: {'path': 'temp/1739377232_131569_1337144869_724875cd1ed15b21d0105dff93f33090.jpg', 'extension': 'jpg'}, 1337144880: {'path': 'temp/1739377232_131569_1337144880_ec8d998b3ac927b47ef2f3b2321de898.jpg', 'extension': 'jpg'}, 1337144882: {'path': 'temp/1739377232_131569_1337144882_4dd7d0f50b394f8fe57ad1866d2bee3c.jpg', 'extension': 'jpg'}, 1337144884: {'path': 'temp/1739377232_131569_1337144884_1a79d7469d0d41267069fe02e25cdecf.jpg', 'extension': 'jpg'}, 1337145170: {'path': 'temp/1739377232_131569_1337145170_b01ee2471486a977ef99bacccc942953.jpg', 'extension': 'jpg'}, 1337144575: {'path': 'temp/1739377232_131569_1337144575_6ef09e9744ac7fa0a692321bdbf5a3d1.jpg', 'extension': 'jpg'}, 1337144577: {'path': 'temp/1739377232_131569_1337144577_08525a97a2a25fc82d95e439467bfadd.jpg', 'extension': 'jpg'}, 1337144579: {'path': 'temp/1739377232_131569_1337144579_374cbb7d7b6d0f78877abee51b558e37.jpg', 'extension': 'jpg'}, 1337144581: {'path': 'temp/1739377232_131569_1337144581_faefc0df92a3c2c3a5aa93a6f8c69c7d.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 = 20482458; (('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 = 20482458 group by h (('17', 25),) 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=20482458 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 (20482458) 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 (20482458) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12022025 20482458 Nombre de photos uploadées : 25 / 23040 (0%) 12022025 20482458 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 12022025 20482458 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1337143880, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/029a1a6400eff41f09247358221b1666.jpg', 'username': None, 'uploaded_at': 1739376967, 'text': 'image_12022025_17_15_04_10152.jpg'}, {'photo_id': 1337143719, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/a21ff1a274bdf4d3c358eaf9e2bcf6fc.jpg', 'username': None, 'uploaded_at': 1739376967, 'text': 'image_12022025_17_15_14_10138.jpg'}, {'photo_id': 1337143665, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/e8fc0abc262ed4a5a1eac8f09235227c.jpg', 'username': None, 'uploaded_at': 1739376967, 'text': 'image_12022025_17_15_24_10136.jpg'}, {'photo_id': 1337143587, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/efcb457bbdb188b50fac438455c673ee.jpg', 'username': None, 'uploaded_at': 1739376967, 'text': 'image_12022025_17_15_33_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001318216323852539 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20482458, '2025-02-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1596586,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02376866340637207 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= 1596586 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1596586, 'dashboard_run_id': 1606005, 'mtr_portfolio_id': 20480401, 'dashboard_result_id': 8842792, '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_P20480401_12-02-2025_16_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20480425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480431, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1606005, 'mtr_portfolio_id': 20480974, 'dashboard_result_id': 8842793, '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_P20480974_12-02-2025_17_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20480985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480996, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1606005, 'mtr_portfolio_id': 20481820, 'dashboard_result_id': 8842794, '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_P20481820_12-02-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20481826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20481827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20481828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20481829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20481830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20481831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20481832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20481833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20481834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20481835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20481836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20481837, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1606005, 'mtr_portfolio_id': 20482458, 'dashboard_result_id': 8842795, '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_P20482458_12-02-2025_17_19_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20482463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20482464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20482465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20482466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20482467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20482468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20482469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20482470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20482471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20482472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20482473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20482474, '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 = 20480401 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': 2579821, 'mtr_portfolio_id': 20480401, 'created_at': datetime.datetime(2025, 2, 12, 16, 48, 57), 'result': '0.04798082389106162', 'result_long': None, 'result_double': None}] Qualite : 0.04798082389106162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20480401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20480401_12-02-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20480401 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_P20480401_12-02-2025_16_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20480425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480431, 'pht': 3726}}" where mtr_portfolio_id = 20480401 and dashboard_run_id = 1606005 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`=20480401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8842792, 0.04798082389106162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20480401_12-02-2025_16_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20480425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480431, '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 = 20480974 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': 2579876, 'mtr_portfolio_id': 20480974, 'created_at': datetime.datetime(2025, 2, 12, 17, 2, 58), 'result': '0.05282854877219761', 'result_long': None, 'result_double': None}] Qualite : 0.05282854877219761 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20480974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20480974_12-02-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20480974 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_P20480974_12-02-2025_17_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20480985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480996, 'pht': 3726}}" where mtr_portfolio_id = 20480974 and dashboard_run_id = 1606005 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`=20480974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8842793, 0.05282854877219761, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20480974_12-02-2025_17_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20480985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480996, '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 = 20481820 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': 2579953, 'mtr_portfolio_id': 20481820, 'created_at': datetime.datetime(2025, 2, 12, 17, 18, 59), 'result': '0.042466050658732504', 'result_long': None, 'result_double': None}] Qualite : 0.042466050658732504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20481820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20481820_12-02-2025_17_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20481820 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_P20481820_12-02-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20481826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20481827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20481828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20481829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20481830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20481831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20481832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20481833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20481834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20481835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20481836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20481837, 'pht': 3726}}" where mtr_portfolio_id = 20481820 and dashboard_run_id = 1606005 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`=20481820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8842794, 0.042466050658732504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20481820_12-02-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20481826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20481827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20481828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20481829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20481830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20481831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20481832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20481833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20481834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20481835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20481836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20481837, '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 = 20482458 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20482458 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20482458 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20482458 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20482458 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20482458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20482458_12-02-2025_17_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20482458 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_P20482458_12-02-2025_17_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20482463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20482464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20482465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20482466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20482467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20482468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20482469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20482470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20482471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20482472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20482473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20482474, 'pht': 3726}}" where mtr_portfolio_id = 20482458 and dashboard_run_id = 1606005 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20480401,20480974,20481820,20482458) result : ((1337133995,), (1337133996,), (1337133998,), (1337134000,), (1337134002,), (1337134020,), (1337134024,), (1337134028,), (1337134031,), (1337134043,), (1337134091,), (1337134093,), (1337134095,), (1337134197,), (1337134198,), (1337134200,), (1337134202,), (1337134205,), (1337134310,), (1337134312,), (1337134317,), (1337134319,), (1337134324,), (1337134373,), (1337134978,), (1337135097,), (1337135100,), (1337135773,), (1337135822,), (1337135931,), (1337136016,), (1337136097,), (1337136187,), (1337136191,), (1337136195,), (1337136198,), (1337136202,), (1337136461,), (1337136463,), (1337136472,), (1337136474,), (1337136485,), (1337136526,), (1337136530,), (1337136534,), (1337136542,), (1337136552,), (1337136555,), (1337136581,), (1337136583,), (1337136585,), (1337136588,), (1337136643,), (1337136645,), (1337136648,), (1337136654,), (1337136658,), (1337136662,), (1337136733,), (1337136798,), (1337136819,), (1337136875,), (1337136926,), (1337136969,), (1337137115,), (1337137131,), (1337137134,), (1337137137,), (1337137290,), (1337137293,), (1337137297,), (1337137309,), (1337137314,), (1337137318,), (1337137370,), (1337137359,), (1337137360,), (1337137362,), (1337137368,), (1337137412,), (1337137414,), (1337137421,), (1337137425,), (1337137428,), (1337137628,), (1337137629,), (1337137630,), (1337137676,), (1337137836,), (1337137863,), (1337137865,), (1337137868,), (1337137990,), (1337137993,), (1337137995,), (1337137996,), (1337137999,), (1337138002,), (1337138104,), (1337138176,), (1337138530,), (1337138600,), (1337138704,), (1337138943,), (1337138945,), (1337138946,), (1337138954,), (1337138963,), (1337139173,), (1337139238,), (1337139325,), (1337139332,), (1337139337,), (1337139346,), (1337139381,), (1337139394,), (1337139401,), (1337139440,), (1337139817,), (1337139818,), (1337139822,), (1337139845,), (1337139849,), (1337139854,), (1337139949,), (1337139951,), (1337139954,), (1337139957,), (1337139984,), (1337139990,), (1337140029,), (1337140030,), (1337140187,), (1337140319,), (1337140512,), (1337140513,), (1337140563,), (1337140565,), (1337140569,), (1337140571,), (1337140662,), (1337140669,), (1337140674,), (1337140679,), (1337140685,), (1337140696,), (1337140697,), (1337140701,), (1337140706,), (1337140754,), (1337140734,), (1337140739,), (1337140743,), (1337140747,), (1337140751,), (1337140770,), (1337140773,), (1337140777,), (1337140784,), (1337140787,), (1337141032,), (1337141086,), (1337141089,), (1337141093,), (1337141119,), (1337141192,), (1337141195,), (1337141198,), (1337141201,), (1337141203,), (1337141207,), (1337141289,), (1337141291,), (1337141294,), (1337141395,), (1337141403,), (1337141406,), (1337141408,), (1337141411,), (1337142194,), (1337142196,), (1337142714,), (1337142716,), (1337142740,), (1337142785,), (1337142818,), (1337142987,), (1337142989,), (1337143045,), (1337143050,), (1337143056,), (1337143058,), (1337143063,), (1337143141,), (1337143146,), (1337143152,), (1337143154,), (1337143158,), (1337143162,), (1337143184,), (1337143194,), (1337143197,), (1337143201,), (1337143206,), (1337143243,), (1337143245,), (1337143248,), (1337143251,), (1337143253,), (1337143256,), (1337143285,), (1337143288,), (1337143291,), (1337143294,), (1337143298,), (1337143300,), (1337143365,), (1337143372,), (1337143376,), (1337143378,), (1337143383,), (1337143933,), (1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12022025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20482458]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575] map_info['map_portfolio_photo'] : {20482458: [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575, 1337144145, 1337144089, 1337144082, 1337144081, 1337143880, 1337143719, 1337143665, 1337143587, 1337143519]} final : True mtd_id 4302 list_pids : [1337145183, 1337145177, 1337145173, 1337145171, 1337145170, 1337144884, 1337144882, 1337144880, 1337144869, 1337144868, 1337144665, 1337144611, 1337144581, 1337144579, 1337144577, 1337144575] Looping around the photos to save general results len do output : 1 /20482458Didn'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, '2579997') ('4302', '20482458', '1337145183', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145177', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145173', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145171', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337145170', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144884', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144882', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144880', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144869', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144868', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144665', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144611', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144581', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144579', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144577', None, None, None, None, None, '2579997') ('4302', None, None, None, None, None, None, None, '2579997') ('4302', '20482458', '1337144575', None, None, None, None, None, '2579997') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20482458', 'None', None, None, None, None, '2579997'), ('4302', '20482458', '1337145183', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145177', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145173', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145171', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337145170', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144884', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144882', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144880', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144869', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144868', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144665', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144611', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144581', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144579', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144577', None, None, None, None, None, '2579997'), ('4302', '20482458', '1337144575', None, None, None, None, None, '2579997')] time used for this insertion : 0.014865398406982422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.31728315353393555 time spend to save output : 0.015218257904052734 total time spend for step 5 : 0.3325014114379883 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 (2579997) 2.80user 2.02system 0:09.27elapsed 52%CPU (0avgtext+0avgdata 160436maxresident)k 544inputs+8832outputs (2major+79020minor)pagefaults 0swaps