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 : 1812352 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 (3361316) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3361316) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357325 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3361316'] with mtr_portfolio_ids : ['25357325'] and first list_photo_ids : [] new path : /proc/1812352/ Name: python3 Umask: 0002 State: R (running) Tgid: 1812352 Ngid: 0 Pid: 1812352 PPid: 1812351 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1812352 NSpid: 1812352 NSpgid: 1810793 NSsid: 1810793 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100292 kB VmRSS: 100292 kB RssAnon: 59812 kB RssFile: 40480 kB RssShmem: 0 kB VmData: 865648 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 59 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1812352', 'Ngid': '0', 'Pid': '1812352', 'PPid': '1812351', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1812352', 'NSpid': '1812352', 'NSpgid': '1810793', 'NSsid': '1810793', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100292 kB', 'VmRSS': '100292 kB', 'RssAnon': '59812 kB', 'RssFile': '40480 kB', 'RssShmem': '0 kB', 'VmData': '865648 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '59', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '1812352', '1106896', '0', '1106896', '865648', '100292', b'', 'marlene', '3361316') 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 (25357325) 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 (3361316 ) ) 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 (25357325) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373853151, 'portfolio_id': 25357325}, {'photo_id': 1373853149, 'portfolio_id': 25357325}, {'photo_id': 1373853147, 'portfolio_id': 25357325}, {'photo_id': 1373853145, 'portfolio_id': 25357325}, {'photo_id': 1373853143, 'portfolio_id': 25357325}, {'photo_id': 1373853141, 'portfolio_id': 25357325}, {'photo_id': 1373853128, 'portfolio_id': 25357325}, {'photo_id': 1373853126, 'portfolio_id': 25357325}, {'photo_id': 1373853122, 'portfolio_id': 25357325}, {'photo_id': 1373853120, 'portfolio_id': 25357325}, {'photo_id': 1373853117, 'portfolio_id': 25357325}, {'photo_id': 1373853107, 'portfolio_id': 25357325}, {'photo_id': 1373853085, 'portfolio_id': 25357325}, {'photo_id': 1373853081, 'portfolio_id': 25357325}, {'photo_id': 1373853080, 'portfolio_id': 25357325}, {'photo_id': 1373853078, 'portfolio_id': 25357325}, {'photo_id': 1373853076, 'portfolio_id': 25357325}, {'photo_id': 1373853066, 'portfolio_id': 25357325}, {'photo_id': 1373853042, 'portfolio_id': 25357325}, {'photo_id': 1373853039, 'portfolio_id': 25357325}, {'photo_id': 1373853037, 'portfolio_id': 25357325}, {'photo_id': 1373853036, 'portfolio_id': 25357325}, {'photo_id': 1373853035, 'portfolio_id': 25357325}, {'photo_id': 1373853034, 'portfolio_id': 25357325}, {'photo_id': 1373853005, 'portfolio_id': 25357325}, {'photo_id': 1373853002, 'portfolio_id': 25357325}, {'photo_id': 1373852992, 'portfolio_id': 25357325}, {'photo_id': 1373852978, 'portfolio_id': 25357325}, {'photo_id': 1373852976, 'portfolio_id': 25357325}, {'photo_id': 1373852974, 'portfolio_id': 25357325}] map_portfolio_id_photo_id: {25357325: [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107, 1373853085, 1373853081, 1373853080, 1373853078, 1373853076, 1373853066, 1373853042, 1373853039, 1373853037, 1373853036, 1373853035, 1373853034, 1373853005, 1373853002, 1373852992, 1373852978, 1373852976, 1373852974]} ##### 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.014482259750366211 #### 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 Sat Jul 26 01:20:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25357325) 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 : 25357325 get user id for portfolio 25357325 get sub ptf for main ptf 25357325, type 3726 and hashtags ['cartonnette', 'Carton_gris', 'Teint_Dans_La_Masse', 'Carton_brun', 'metal', 'papier', 'flou', 'plastique', 'autre_refus', 'mal_croppe', 'kraft', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25357325 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','Teint_Dans_La_Masse','Carton_brun','metal','papier','flou','plastique','autre_refus','mal_croppe','kraft','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25357325 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','Teint_Dans_La_Masse','Carton_brun','metal','papier','flou','plastique','autre_refus','mal_croppe','kraft','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25357325, 'sub_port_id': 25357330, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103695, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'autre_refus': {'main_port_id': 25357325, 'sub_port_id': 25357331, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103696, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'cartonnette': {'main_port_id': 25357325, 'sub_port_id': 25357332, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103697, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'environnement': {'main_port_id': 25357325, 'sub_port_id': 25357333, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103698, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'plastique': {'main_port_id': 25357325, 'sub_port_id': 25357334, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103699, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'flou': {'main_port_id': 25357325, 'sub_port_id': 25357335, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103700, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'metal': {'main_port_id': 25357325, 'sub_port_id': 25357336, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103701, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'mal_croppe': {'main_port_id': 25357325, 'sub_port_id': 25357337, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103702, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'papier': {'main_port_id': 25357325, 'sub_port_id': 25357338, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103703, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'Carton_brun': {'main_port_id': 25357325, 'sub_port_id': 25357339, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103704, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 25357325, 'sub_port_id': 25357340, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103705, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}, 'kraft': {'main_port_id': 25357325, 'sub_port_id': 25357341, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103706, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25357330 , 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=25357325 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 (25357330) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357331 , 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=25357325 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 (25357331) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357332 , 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=25357325 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 (25357332) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357333 , 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=25357325 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 (25357333) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357334 , 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=25357325 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 (25357334) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357335 , 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=25357325 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 (25357335) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357336 , 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=25357325 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 (25357336) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357337 , 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=25357325 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 (25357337) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357338 , 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=25357325 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 (25357338) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357339 , 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=25357325 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 (25357339) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357340 , 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=25357325 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 (25357340) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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 25357341 , 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=25357325 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 (25357341) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25357325) result : ((1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) 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`=25357325 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','Teint_Dans_La_Masse','Carton_brun','metal','papier','flou','plastique','autre_refus','mal_croppe','kraft','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25357325 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','Teint_Dans_La_Masse','Carton_brun','metal','papier','flou','plastique','autre_refus','mal_croppe','kraft','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25357325, 'sub_port_id': 25357343, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103707, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'autre_refus': {'main_port_id': 25357325, 'sub_port_id': 25357344, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103708, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'cartonnette': {'main_port_id': 25357325, 'sub_port_id': 25357345, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103709, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'environnement': {'main_port_id': 25357325, 'sub_port_id': 25357346, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103710, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'plastique': {'main_port_id': 25357325, 'sub_port_id': 25357347, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103711, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'flou': {'main_port_id': 25357325, 'sub_port_id': 25357348, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103712, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'metal': {'main_port_id': 25357325, 'sub_port_id': 25357349, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103713, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'mal_croppe': {'main_port_id': 25357325, 'sub_port_id': 25357350, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103714, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'papier': {'main_port_id': 25357325, 'sub_port_id': 25357351, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103715, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'Carton_brun': {'main_port_id': 25357325, 'sub_port_id': 25357352, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103716, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25357325, 'sub_port_id': 25357353, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103717, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}, 'kraft': {'main_port_id': 25357325, 'sub_port_id': 25357354, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17103718, 'last_updated_at': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 26, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 26, 1, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357343,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357330 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357344,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357331 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357345,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357332 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357346,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357333 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357347,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357334 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357335 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357349,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357336 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357350,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357337 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25357354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25357341 lien utilise dans velours : https://www.fotonower.com/velours/25357343,25357344,25357345,25357346,25357347,25357348,25357349,25357350,25357351,25357352,25357353,25357354?tags=Carton_gris,autre_refus,cartonnette,environnement,plastique,flou,metal,mal_croppe,papier,Carton_brun,Teint_Dans_La_Masse,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25357325]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107] map_info['map_portfolio_photo'] : {25357325: [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107, 1373853085, 1373853081, 1373853080, 1373853078, 1373853076, 1373853066, 1373853042, 1373853039, 1373853037, 1373853036, 1373853035, 1373853034, 1373853005, 1373853002, 1373852992, 1373852978, 1373852976, 1373852974]} final : False mtd_id 4302 list_pids : [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107] Looping around the photos to save general results len do output : 1 /25357325. 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, '3361316') ('4302', '25357325', '1373853151', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853149', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853147', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853145', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853143', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853141', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853128', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853126', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853122', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853120', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853117', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853107', None, None, None, None, None, '3361316') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25357325', "{'Carton_gris': 25357330, 'autre_refus': 25357331, 'cartonnette': 25357332, 'environnement': 25357333, 'plastique': 25357334, 'flou': 25357335, 'metal': 25357336, 'mal_croppe': 25357337, 'papier': 25357338, 'Carton_brun': 25357339, 'Teint_Dans_La_Masse': 25357340, 'kraft': 25357341}", None, None, None, None, '3361316'), ('4302', '25357325', '1373853151', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853149', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853147', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853145', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853143', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853141', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853128', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853126', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853122', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853120', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853117', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853107', None, None, None, None, None, '3361316')] time used for this insertion : 0.2554147243499756 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4604110717773438 time spend to save output : 0.2557179927825928 total time spend for step 1 : 1.7161290645599365 step2:final Sat Jul 26 01:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25357325) 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 25357325 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373853005,1373853002,1373852992,1373852978,1373852976,1373852974,1373853042,1373853039,1373853037,1373853036,1373853035,1373853034,1373853085,1373853081,1373853080,1373853078,1373853076,1373853066,1373853128,1373853126,1373853122,1373853120,1373853117,1373853107,1373853151,1373853149,1373853147,1373853145,1373853143,1373853141); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25357325]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} new output for save of step final : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107] map_info['map_portfolio_photo'] : {25357325: [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107, 1373853085, 1373853081, 1373853080, 1373853078, 1373853076, 1373853066, 1373853042, 1373853039, 1373853037, 1373853036, 1373853035, 1373853034, 1373853005, 1373853002, 1373852992, 1373852978, 1373852976, 1373852974]} final : False mtd_id 4302 list_pids : [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107] Looping around the photos to save general results len do output : 12 /1373853151.Didn't retrieve data . /1373853149.Didn't retrieve data . /1373853147.Didn't retrieve data . /1373853145.Didn't retrieve data . /1373853143.Didn't retrieve data . /1373853141.Didn't retrieve data . /1373853128.Didn't retrieve data . /1373853126.Didn't retrieve data . /1373853122.Didn't retrieve data . /1373853120.Didn't retrieve data . /1373853117.Didn't retrieve data . /1373853107.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, '3361316') ('4302', '25357325', '1373853151', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853149', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853147', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853145', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853143', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853141', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853128', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853126', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853122', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853120', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853117', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853107', None, None, None, None, None, '3361316') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '25357325', '1373853151', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853149', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853147', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853145', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853143', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853141', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853128', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853126', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853122', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853120', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853117', '0.0', None, None, None, None, '3361316'), ('4302', '25357325', '1373853107', '0.0', None, None, None, None, '3361316')] time used for this insertion : 0.454848051071167 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.052126169204711914 time spend to save output : 0.45554542541503906 total time spend for step 2 : 0.507671594619751 step3:velours_tree Sat Jul 26 01:21:01 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 : {25357325: [{'Carton_gris': 25357330, 'autre_refus': 25357331, 'cartonnette': 25357332, 'environnement': 25357333, 'plastique': 25357334, 'flou': 25357335, 'metal': 25357336, 'mal_croppe': 25357337, 'papier': 25357338, 'Carton_brun': 25357339, 'Teint_Dans_La_Masse': 25357340, 'kraft': 25357341}]} input_args_next_step : {25357325: ()} output_args : {25357325: [{'Carton_gris': 25357330, 'autre_refus': 25357331, 'cartonnette': 25357332, 'environnement': 25357333, 'plastique': 25357334, 'flou': 25357335, 'metal': 25357336, 'mal_croppe': 25357337, 'papier': 25357338, 'Carton_brun': 25357339, 'Teint_Dans_La_Masse': 25357340, 'kraft': 25357341}]} args : 25357325 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': 25357330, 'autre_refus': 25357331, 'cartonnette': 25357332, 'environnement': 25357333, 'plastique': 25357334, 'flou': 25357335, 'metal': 25357336, 'mal_croppe': 25357337, 'papier': 25357338, 'Carton_brun': 25357339, 'Teint_Dans_La_Masse': 25357340, 'kraft': 25357341},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25357325) 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([25357325]) 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.2975907325744629 time spend to save output : 4.1961669921875e-05 total time spend for step 3 : 0.29763269424438477 step4:send_mail_cod Sat Jul 26 01:21:01 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 : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} input_args_next_step : {1373853151: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853151 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853149 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853147 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853145 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853143 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853141 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853128 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853126 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853122 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853120 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853117 depend.output_id : 0 input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ()} output_args : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',)} args : 1373853107 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 : {25357325: [{'Carton_gris': 25357330, 'autre_refus': 25357331, 'cartonnette': 25357332, 'environnement': 25357333, 'plastique': 25357334, 'flou': 25357335, 'metal': 25357336, 'mal_croppe': 25357337, 'papier': 25357338, 'Carton_brun': 25357339, 'Teint_Dans_La_Masse': 25357340, 'kraft': 25357341}]} input_args_next_step : {1373853151: ('0.0',), 1373853149: ('0.0',), 1373853147: ('0.0',), 1373853145: ('0.0',), 1373853143: ('0.0',), 1373853141: ('0.0',), 1373853128: ('0.0',), 1373853126: ('0.0',), 1373853122: ('0.0',), 1373853120: ('0.0',), 1373853117: ('0.0',), 1373853107: ('0.0',), 25357325: ()} output_args : {25357325: [{'Carton_gris': 25357330, 'autre_refus': 25357331, 'cartonnette': 25357332, 'environnement': 25357333, 'plastique': 25357334, 'flou': 25357335, 'metal': 25357336, 'mal_croppe': 25357337, 'papier': 25357338, 'Carton_brun': 25357339, 'Teint_Dans_La_Masse': 25357340, 'kraft': 25357341}]} args : 25357325 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 :13, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25357325) 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 (1373853151,1373853149,1373853147,1373853145,1373853143,1373853141,1373853128,1373853126,1373853122,1373853120,1373853117,1373853107) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373853107 begin to download photo : 1373853122 begin to download photo : 1373853141 begin to download photo : 1373853147 download finish for photo 1373853107 begin to download photo : 1373853117 download finish for photo 1373853147 begin to download photo : 1373853149 download finish for photo 1373853141 begin to download photo : 1373853143 download finish for photo 1373853122 begin to download photo : 1373853126 download finish for photo 1373853149 begin to download photo : 1373853151 download finish for photo 1373853143 begin to download photo : 1373853145 download finish for photo 1373853126 begin to download photo : 1373853128 download finish for photo 1373853117 begin to download photo : 1373853120 download finish for photo 1373853151 download finish for photo 1373853145 download finish for photo 1373853120 download finish for photo 1373853128 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette253573311753485661/ imagette253573321753485661/ imagette253573341753485661/ imagette253573351753485661/ imagette253573361753485661/ imagette253573371753485661/ imagette253573411753485661/ imagette253573301753485661/ imagette253573391753485661/ imagette253573401753485661/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25357325_26-07-2025_01_21_01.pdf 25357331 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=25357331 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253573311753485661 25357332 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=25357332 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253573321753485661 25357334 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=25357334 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253573341753485661 25357335 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=25357335 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253573351753485661 25357336 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=25357336 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253573361753485661 25357337 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=25357337 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253573371753485661 25357341 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=25357341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253573411753485661 25357330 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=25357330 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253573301753485661 25357339 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=25357339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253573391753485661 25357340 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=25357340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253573401753485661 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25357325 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25357343,25357344,25357345,25357346,25357347,25357348,25357349,25357350,25357351,25357352,25357353,25357354?tags=Carton_gris,autre_refus,cartonnette,environnement,plastique,flou,metal,mal_croppe,papier,Carton_brun,Teint_Dans_La_Masse,kraft your option no_mail is active, we will not send the real mail to your client args[1373853151] : ('0.0',) no score found for photo 1373853151 We are sending mail with results at report@fotonower.com args[1373853149] : ('0.0',) no score found for photo 1373853149 We are sending mail with results at report@fotonower.com args[1373853147] : ('0.0',) no score found for photo 1373853147 We are sending mail with results at report@fotonower.com args[1373853145] : ('0.0',) no score found for photo 1373853145 We are sending mail with results at report@fotonower.com args[1373853143] : ('0.0',) no score found for photo 1373853143 We are sending mail with results at report@fotonower.com args[1373853141] : ('0.0',) no score found for photo 1373853141 We are sending mail with results at report@fotonower.com args[1373853128] : ('0.0',) no score found for photo 1373853128 We are sending mail with results at report@fotonower.com args[1373853126] : ('0.0',) no score found for photo 1373853126 We are sending mail with results at report@fotonower.com args[1373853122] : ('0.0',) no score found for photo 1373853122 We are sending mail with results at report@fotonower.com args[1373853120] : ('0.0',) no score found for photo 1373853120 We are sending mail with results at report@fotonower.com args[1373853117] : ('0.0',) no score found for photo 1373853117 We are sending mail with results at report@fotonower.com args[1373853107] : ('0.0',) no score found for photo 1373853107 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=25357325 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_P25357325_26-07-2025_01_21_01.pdf results_Auto_P25357325_26-07-2025_01_21_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25357325_26-07-2025_01_21_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25357325','results_Auto_P25357325_26-07-2025_01_21_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25357325_26-07-2025_01_21_01.pdf','pdf','','0.11','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25357325]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107] map_info['map_portfolio_photo'] : {25357325: [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107, 1373853085, 1373853081, 1373853080, 1373853078, 1373853076, 1373853066, 1373853042, 1373853039, 1373853037, 1373853036, 1373853035, 1373853034, 1373853005, 1373853002, 1373852992, 1373852978, 1373852976, 1373852974]} final : False mtd_id 4302 list_pids : [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107] 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, '3361316') ('4302', '25357325', '1373853151', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853149', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853147', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853145', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853143', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853141', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853128', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853126', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853122', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853120', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853117', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853107', None, None, None, None, None, '3361316') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '25357325', '1373853151', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853149', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853147', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853145', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853143', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853141', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853128', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853126', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853122', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853120', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853117', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853107', None, None, None, None, None, '3361316')] time used for this insertion : 0.4814331531524658 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5412602424621582 time spend to save output : 0.4816863536834717 total time spend for step 4 : 2.02294659614563 step5:split_time_score Sat Jul 26 01:21:03 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 : ['25357325'] 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 : [('25357325',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25357325) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373853147: {'path': 'temp/1753485661_1812352_1373853147_5a7771c6ef241264ebf715a35bab7897.jpg', 'extension': 'jpg'}, 1373853149: {'path': 'temp/1753485661_1812352_1373853149_729048c48c8d6283aa10180e4782f102.jpg', 'extension': 'jpg'}, 1373853151: {'path': 'temp/1753485661_1812352_1373853151_fa8030c74bbb9565b68874bea6b6e5b7.jpg', 'extension': 'jpg'}, 1373853141: {'path': 'temp/1753485661_1812352_1373853141_1b456c7622387905366202649831fb4a.jpg', 'extension': 'jpg'}, 1373853143: {'path': 'temp/1753485661_1812352_1373853143_a6423e54ddab1c09a2902e940509594c.jpg', 'extension': 'jpg'}, 1373853145: {'path': 'temp/1753485661_1812352_1373853145_d0d4c0ee805d13cce86668fa674a4f0e.jpg', 'extension': 'jpg'}, 1373853107: {'path': 'temp/1753485661_1812352_1373853107_b07585c4d80ce126b70feecdd278e7b5.jpg', 'extension': 'jpg'}, 1373853117: {'path': 'temp/1753485661_1812352_1373853117_121f500cc6a431a6c3e6891eb3db5a88.jpg', 'extension': 'jpg'}, 1373853120: {'path': 'temp/1753485661_1812352_1373853120_a8819f51ee9aa9158ac396cde6640516.jpg', 'extension': 'jpg'}, 1373853122: {'path': 'temp/1753485661_1812352_1373853122_e5e650e528df1033f9d893a136b07db0.jpg', 'extension': 'jpg'}, 1373853126: {'path': 'temp/1753485661_1812352_1373853126_f6057e23240fb18574cc7c31aba7e0b9.jpg', 'extension': 'jpg'}, 1373853128: {'path': 'temp/1753485661_1812352_1373853128_150277474b76007f1a9bf153457f7453.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 = 25357325; (('arc_en_ciel_jrm_live',), ('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 = 25357325 group by h (('01', 30),) 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=25357325 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 (25357325) 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 (25357325) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26072025 25357325 Nombre de photos uploadées : 30 / 23040 (0%) 26072025 25357325 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 26072025 25357325 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1373853005, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/26/e38bac169dc702db38621512ec616afe.jpg', 'username': None, 'uploaded_at': 1753485363, 'text': 'image_26072025_01_15_04_10149.jpg'}, {'photo_id': 1373853002, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/26/6b8c0a56e3d608e77bb924365aef752c.jpg', 'username': None, 'uploaded_at': 1753485363, 'text': 'image_26072025_01_15_14_10135.jpg'}, {'photo_id': 1373852992, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/26/9d1965d6c22f977868a84d0ed6d18f0f.jpg', 'username': None, 'uploaded_at': 1753485363, 'text': 'image_26072025_01_15_24_10136.jpg'}, {'photo_id': 1373852978, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/26/c419e6f864d933c7f5c6c3423474bc8d.jpg', 'username': None, 'uploaded_at': 1753485363, 'text': 'image_26072025_01_15_34_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022225379943847656 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25357325, '2025-07-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2010380,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024747848510742188 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= 2010380 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2010380, 'dashboard_run_id': 2017862, 'mtr_portfolio_id': 25355301, 'dashboard_result_id': 13163086, '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_P25355301_26-07-2025_00_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25355314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25355315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25355316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25355317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25355318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25355319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25355320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25355321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25355322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25355323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25355324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25355325, 'pht': 3726}}"}, {'dashboat_entry_day': 2010380, 'dashboard_run_id': 2017862, 'mtr_portfolio_id': 25355557, 'dashboard_result_id': 13163087, '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_P25355557_26-07-2025_00_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25355621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25355622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25355623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25355624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25355625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25355626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25355627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25355628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25355629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25355630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25355631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25355632, 'pht': 3726}}"}, {'dashboat_entry_day': 2010380, 'dashboard_run_id': 2017862, 'mtr_portfolio_id': 25356024, 'dashboard_result_id': 13163088, '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_P25356024_26-07-2025_00_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25356030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25356031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25356032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25356033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25356034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25356035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25356036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25356037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25356038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25356039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25356040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25356041, 'pht': 3726}}"}, {'dashboat_entry_day': 2010380, 'dashboard_run_id': 2017862, 'mtr_portfolio_id': 25356383, 'dashboard_result_id': 13163089, '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_P25356383_26-07-2025_01_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25356413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25356414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25356415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25356416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25356417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25356418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25356419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25356420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25356421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25356422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25356423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25356424, 'pht': 3726}}"}, {'dashboat_entry_day': 2010380, 'dashboard_run_id': 2017862, 'mtr_portfolio_id': 25356726, 'dashboard_result_id': 13163090, '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_P25356726_26-07-2025_01_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25356829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25356830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25356832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25356833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25356834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25356835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25356836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25356837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25356838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25356839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25356840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25356841, 'pht': 3726}}"}, {'dashboat_entry_day': 2010380, 'dashboard_run_id': 2017862, 'mtr_portfolio_id': 25357325, 'dashboard_result_id': 13163091, '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_P25357325_26-07-2025_01_19_00.pdf'}"}] 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 = 25355301 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': 3360864, 'mtr_portfolio_id': 25355301, 'created_at': datetime.datetime(2025, 7, 26, 0, 17), 'result': '0.04350535935102565', 'result_long': None, 'result_double': None}] Qualite : 0.04350535935102565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25355301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25355301_26-07-2025_00_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25355301 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_P25355301_26-07-2025_00_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25355314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25355315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25355316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25355317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25355318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25355319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25355320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25355321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25355322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25355323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25355324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25355325, 'pht': 3726}}" where mtr_portfolio_id = 25355301 and dashboard_run_id = 2017862 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`=25355301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13163086, 0.04350535935102565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25355301_26-07-2025_00_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25355314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25355315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25355316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25355317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25355318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25355319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25355320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25355321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25355322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25355323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25355324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25355325, '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 = 25355557 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': 3360915, 'mtr_portfolio_id': 25355557, 'created_at': datetime.datetime(2025, 7, 26, 1, 2, 57), 'result': '0.07381431508147096', 'result_long': None, 'result_double': None}] Qualite : 0.07381431508147096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25355557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25355557_26-07-2025_01_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25355557 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_P25355557_26-07-2025_01_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25355621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25355622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25355623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25355624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25355625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25355626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25355627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25355628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25355629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25355630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25355631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25355632, 'pht': 3726}}" where mtr_portfolio_id = 25355557 and dashboard_run_id = 2017862 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`=25355557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13163087, 0.07381431508147096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25355557_26-07-2025_01_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25355621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25355622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25355623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25355624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25355625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25355626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25355627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25355628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25355629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25355630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25355631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25355632, '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 = 25356024 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': 3361007, 'mtr_portfolio_id': 25356024, 'created_at': datetime.datetime(2025, 7, 26, 0, 47, 29), 'result': '0.10719126764138359', 'result_long': None, 'result_double': None}] Qualite : 0.10719126764138359 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25356024 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25356024_26-07-2025_00_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25356024 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_P25356024_26-07-2025_00_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25356030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25356031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25356032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25356033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25356034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25356035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25356036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25356037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25356038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25356039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25356040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25356041, 'pht': 3726}}" where mtr_portfolio_id = 25356024 and dashboard_run_id = 2017864 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`=25356024 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13163088, 0.10719126764138359, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25356024_26-07-2025_00_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25356030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25356031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25356032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25356033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25356034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25356035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25356036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25356037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25356038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25356039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25356040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25356041, '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 = 25356383 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': 3361100, 'mtr_portfolio_id': 25356383, 'created_at': datetime.datetime(2025, 7, 26, 1, 0, 32), 'result': '0.05492209439366332', 'result_long': None, 'result_double': None}] Qualite : 0.05492209439366332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25356383 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25356383_26-07-2025_01_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25356383 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_P25356383_26-07-2025_01_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25356413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25356414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25356415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25356416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25356417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25356418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25356419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25356420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25356421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25356422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25356423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25356424, 'pht': 3726}}" where mtr_portfolio_id = 25356383 and dashboard_run_id = 2017864 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`=25356383 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13163089, 0.05492209439366332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25356383_26-07-2025_01_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25356413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25356414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25356415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25356416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25356417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25356418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25356419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25356420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25356421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25356422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25356423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25356424, '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 = 25356726 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': 3361210, 'mtr_portfolio_id': 25356726, 'created_at': datetime.datetime(2025, 7, 26, 1, 16, 58), 'result': '0.02502067535634038', 'result_long': None, 'result_double': None}] Qualite : 0.02502067535634038 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25356726 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25356726_26-07-2025_01_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25356726 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_P25356726_26-07-2025_01_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25356829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25356830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25356832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25356833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25356834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25356835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25356836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25356837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25356838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25356839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25356840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25356841, 'pht': 3726}}" where mtr_portfolio_id = 25356726 and dashboard_run_id = 2017864 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`=25356726 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13163090, 0.02502067535634038, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25356726_26-07-2025_01_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25356829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25356830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25356832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25356833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25356834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25356835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25356836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25356837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25356838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25356839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25356840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25356841, '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 = 25357325 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 = 25357325 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 = 25357325 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25357325 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 = 25357325 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 = 25357325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25357325_26-07-2025_01_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25357325 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_P25357325_26-07-2025_01_21_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25357330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25357331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25357332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25357333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25357334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25357335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25357336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25357337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25357338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25357339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25357340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25357341, 'pht': 3726}}" where mtr_portfolio_id = 25357325 and dashboard_run_id = 2017864 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25355301,25355557,25356024,25356383,25356726,25357325) result : ((1373845745,), (1373845819,), (1373845822,), (1373845825,), (1373845827,), (1373845829,), (1373845831,), (1373845846,), (1373845847,), (1373845848,), (1373845849,), (1373845851,), (1373845854,), (1373846223,), (1373846311,), (1373846347,), (1373846349,), (1373846351,), (1373846355,), (1373846549,), (1373846554,), (1373846559,), (1373846563,), (1373846566,), (1373846569,), (1373846583,), (1373846590,), (1373846592,), (1373846594,), (1373846597,), (1373846599,), (1373846620,), (1373846621,), (1373846622,), (1373846623,), (1373846626,), (1373846628,), (1373846654,), (1373846657,), (1373846658,), (1373846661,), (1373846664,), (1373846666,), (1373846678,), (1373846701,), (1373846704,), (1373846706,), (1373846707,), (1373846711,), (1373846715,), (1373846725,), (1373846727,), (1373846729,), (1373846745,), (1373846754,), (1373846756,), (1373846778,), (1373846790,), (1373846792,), (1373846793,), (1373846794,), (1373846795,), (1373846798,), (1373846812,), (1373846813,), (1373846816,), (1373846819,), (1373846822,), (1373846826,), (1373846860,), (1373847030,), (1373847120,), (1373847206,), (1373847230,), (1373847256,), (1373847284,), (1373847494,), (1373847497,), (1373847498,), (1373847499,), (1373847509,), (1373847533,), (1373847566,), (1373847569,), (1373847570,), (1373847594,), (1373847621,), (1373847647,), (1373847755,), (1373847763,), (1373847767,), (1373847783,), (1373847790,), (1373847794,), (1373847895,), (1373847898,), (1373847901,), (1373847902,), (1373847904,), (1373847907,), (1373847916,), (1373847918,), (1373847920,), (1373847921,), (1373847924,), (1373847928,), (1373847951,), (1373848125,), (1373848153,), (1373848181,), (1373848206,), (1373848232,), (1373848260,), (1373848406,), (1373848411,), (1373848412,), (1373848413,), (1373848415,), (1373848417,), (1373848430,), (1373848431,), (1373848433,), (1373848435,), (1373848438,), (1373848440,), (1373848453,), (1373848471,), (1373848488,), (1373848497,), (1373848500,), (1373848502,), (1373848579,), (1373848724,), (1373848778,), (1373848780,), (1373848782,), (1373848784,), (1373848785,), (1373848789,), (1373848802,), (1373848805,), (1373848821,), (1373848832,), (1373848835,), (1373848839,), (1373852523,), (1373848849,), (1373848851,), (1373848853,), (1373848854,), (1373848856,), (1373848859,), (1373848879,), (1373848919,), (1373848921,), (1373848922,), (1373848923,), (1373848924,), (1373848926,), (1373848940,), (1373848941,), (1373848946,), (1373848964,), (1373848968,), (1373849000,), (1373849293,), (1373849318,), (1373849341,), (1373849362,), (1373849387,), (1373849419,), (1373849617,), (1373849620,), (1373849623,), (1373849644,), (1373849655,), (1373849658,), (1373849757,), (1373849784,), (1373849813,), (1373849837,), (1373849866,), (1373849893,), (1373850009,), (1373850012,), (1373850014,), (1373850016,), (1373850018,), (1373850020,), (1373850036,), (1373850037,), (1373850039,), (1373850041,), (1373850042,), (1373850045,), (1373850140,), (1373850164,), (1373850189,), (1373850234,), (1373850265,), (1373850294,), (1373850398,), (1373850429,), (1373850432,), (1373850454,), (1373850458,), (1373850460,), (1373850462,), (1373850474,), (1373850477,), (1373850499,), (1373850506,), (1373850508,), (1373850510,), (1373850524,), (1373850528,), (1373850551,), (1373850554,), (1373850558,), (1373850560,), (1373850574,), (1373850578,), (1373850581,), (1373850582,), (1373850583,), (1373850585,), (1373850599,), (1373850601,), (1373850620,), (1373850623,), (1373850626,), (1373850629,), (1373850652,), (1373850667,), (1373850668,), (1373850670,), (1373850672,), (1373850674,), (1373850676,), (1373850694,), (1373850711,), (1373850713,), (1373850716,), (1373850718,), (1373850720,), (1373850722,), (1373850735,), (1373850755,), (1373850762,), (1373850764,), (1373850766,), (1373850769,), (1373850772,), (1373850789,), (1373850791,), (1373850793,), (1373850795,), (1373850797,), (1373850799,), (1373850810,), (1373850813,), (1373850814,), (1373850817,), (1373850820,), (1373850822,), (1373850829,), (1373850831,), (1373850833,), (1373850835,), (1373850839,), (1373850842,), (1373850848,), (1373850851,), (1373850855,), (1373850858,), (1373850861,), (1373850865,), (1373850873,), (1373850875,), (1373850877,), (1373850880,), (1373850882,), (1373850887,), (1373850984,), (1373851039,), (1373851086,), (1373851132,), (1373851188,), (1373851236,), (1373852292,), (1373852512,), (1373852514,), (1373852516,), (1373852518,), (1373852520,), (1373852546,), (1373852573,), (1373852595,), (1373852597,), (1373852600,), (1373852603,), (1373852605,), (1373852608,), (1373852621,), (1373852622,), (1373852623,), (1373852625,), (1373852627,), (1373852629,), (1373852652,), (1373852655,), (1373852657,), (1373852660,), (1373852663,), (1373852666,), (1373852684,), (1373852686,), (1373852688,), (1373852689,), (1373852692,), (1373852696,), (1373852711,), (1373852717,), (1373852723,), (1373852730,), (1373852732,), (1373852735,), (1373852751,), (1373852759,), (1373852766,), (1373852768,), (1373852769,), (1373852771,), (1373852783,), (1373852789,), (1373852795,), (1373852796,), (1373852797,), (1373852799,), (1373852816,), (1373852859,), (1373852867,), (1373852876,), (1373852878,), (1373852881,), (1373852883,), (1373852894,), (1373852913,), (1373852935,), (1373852974,), (1373852976,), (1373852978,), (1373852992,), (1373853002,), (1373853005,), (1373853034,), (1373853035,), (1373853036,), (1373853037,), (1373853039,), (1373853042,), (1373853066,), (1373853076,), (1373853078,), (1373853080,), (1373853081,), (1373853085,), (1373853107,), (1373853117,), (1373853120,), (1373853122,), (1373853126,), (1373853128,), (1373853141,), (1373853143,), (1373853145,), (1373853147,), (1373853149,), (1373853151,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26072025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25357325]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107] map_info['map_portfolio_photo'] : {25357325: [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107, 1373853085, 1373853081, 1373853080, 1373853078, 1373853076, 1373853066, 1373853042, 1373853039, 1373853037, 1373853036, 1373853035, 1373853034, 1373853005, 1373853002, 1373852992, 1373852978, 1373852976, 1373852974]} final : True mtd_id 4302 list_pids : [1373853151, 1373853149, 1373853147, 1373853145, 1373853143, 1373853141, 1373853128, 1373853126, 1373853122, 1373853120, 1373853117, 1373853107] Looping around the photos to save general results len do output : 1 /25357325Didn'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, '3361316') ('4302', '25357325', '1373853151', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853149', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853147', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853145', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853143', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853141', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853128', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853126', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853122', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853120', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853117', None, None, None, None, None, '3361316') ('4302', None, None, None, None, None, None, None, '3361316') ('4302', '25357325', '1373853107', None, None, None, None, None, '3361316') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25357325', 'None', None, None, None, None, '3361316'), ('4302', '25357325', '1373853151', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853149', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853147', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853145', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853143', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853141', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853128', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853126', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853122', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853120', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853117', None, None, None, None, None, '3361316'), ('4302', '25357325', '1373853107', None, None, None, None, None, '3361316')] time used for this insertion : 0.015668869018554688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43123507499694824 time spend to save output : 0.015901803970336914 total time spend for step 5 : 0.44713687896728516 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 (3361316) 2.09user 2.56system 0:09.22elapsed 50%CPU (0avgtext+0avgdata 161732maxresident)k 152inputs+6344outputs (3major+64327minor)pagefaults 0swaps