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 : 4056743 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 (2551924) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2551924) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260642 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2551924'] with mtr_portfolio_ids : ['20260642'] and first list_photo_ids : [] new path : /proc/4056743/ Name: python3 Umask: 0002 State: R (running) Tgid: 4056743 Ngid: 0 Pid: 4056743 PPid: 4056742 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4056743 NSpid: 4056743 NSpgid: 4054884 NSsid: 4054884 VmPeak: 1106660 kB VmSize: 1106660 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97068 kB VmRSS: 97068 kB RssAnon: 59740 kB RssFile: 37328 kB RssShmem: 0 kB VmData: 865412 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 42 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4056743', 'Ngid': '0', 'Pid': '4056743', 'PPid': '4056742', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4056743', 'NSpid': '4056743', 'NSpgid': '4054884', 'NSsid': '4054884', 'VmPeak': '1106660 kB', 'VmSize': '1106660 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97068 kB', 'VmRSS': '97068 kB', 'RssAnon': '59740 kB', 'RssFile': '37328 kB', 'RssShmem': '0 kB', 'VmData': '865412 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '42', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '4056743', '1106660', '0', '1106660', '865412', '97068', b'', 'marlene', '2551924') 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 (20260642) 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 (2551924 ) ) 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 (20260642) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1334950061, 'portfolio_id': 20260642}, {'photo_id': 1334950059, 'portfolio_id': 20260642}, {'photo_id': 1334949931, 'portfolio_id': 20260642}, {'photo_id': 1334949928, 'portfolio_id': 20260642}, {'photo_id': 1334949921, 'portfolio_id': 20260642}, {'photo_id': 1334949912, 'portfolio_id': 20260642}, {'photo_id': 1334949740, 'portfolio_id': 20260642}, {'photo_id': 1334949503, 'portfolio_id': 20260642}, {'photo_id': 1334949501, 'portfolio_id': 20260642}, {'photo_id': 1334949499, 'portfolio_id': 20260642}, {'photo_id': 1334949449, 'portfolio_id': 20260642}, {'photo_id': 1334949442, 'portfolio_id': 20260642}, {'photo_id': 1334949439, 'portfolio_id': 20260642}, {'photo_id': 1334949435, 'portfolio_id': 20260642}, {'photo_id': 1334949358, 'portfolio_id': 20260642}, {'photo_id': 1334949354, 'portfolio_id': 20260642}, {'photo_id': 1334949352, 'portfolio_id': 20260642}, {'photo_id': 1334949327, 'portfolio_id': 20260642}, {'photo_id': 1334949324, 'portfolio_id': 20260642}, {'photo_id': 1334949321, 'portfolio_id': 20260642}, {'photo_id': 1334949319, 'portfolio_id': 20260642}, {'photo_id': 1334949251, 'portfolio_id': 20260642}, {'photo_id': 1334949250, 'portfolio_id': 20260642}, {'photo_id': 1334949246, 'portfolio_id': 20260642}, {'photo_id': 1334949114, 'portfolio_id': 20260642}, {'photo_id': 1334948851, 'portfolio_id': 20260642}, {'photo_id': 1334948848, 'portfolio_id': 20260642}, {'photo_id': 1334948846, 'portfolio_id': 20260642}] map_portfolio_id_photo_id: {20260642: [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912, 1334949740, 1334949503, 1334949501, 1334949499, 1334949449, 1334949442, 1334949439, 1334949435, 1334949358, 1334949354, 1334949352, 1334949327, 1334949324, 1334949321, 1334949319, 1334949251, 1334949250, 1334949246, 1334949114, 1334948851, 1334948848, 1334948846]} ##### 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.014111995697021484 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Feb 5 14:54: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 (20260642) 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 : 20260642 get user id for portfolio 20260642 get sub ptf for main ptf 20260642, type 3726 and hashtags ['papier', 'cartonnette', 'Carton_brun', 'mal_croppe', 'Teint_Dans_La_Masse', 'metal', 'flou', 'environnement', 'plastique', 'Carton_gris', 'kraft', 'autre_refus'] 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`=20260642 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_brun','mal_croppe','Teint_Dans_La_Masse','metal','flou','environnement','plastique','Carton_gris','kraft','autre_refus')) 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`=20260642 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_brun','mal_croppe','Teint_Dans_La_Masse','metal','flou','environnement','plastique','Carton_gris','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20260642, 'sub_port_id': 20260685, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958372, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'kraft': {'main_port_id': 20260642, 'sub_port_id': 20260686, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958373, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'plastique': {'main_port_id': 20260642, 'sub_port_id': 20260687, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958374, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'Carton_gris': {'main_port_id': 20260642, 'sub_port_id': 20260688, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958375, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'Carton_brun': {'main_port_id': 20260642, 'sub_port_id': 20260689, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958376, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'mal_croppe': {'main_port_id': 20260642, 'sub_port_id': 20260690, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958377, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'cartonnette': {'main_port_id': 20260642, 'sub_port_id': 20260691, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958378, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'autre_refus': {'main_port_id': 20260642, 'sub_port_id': 20260692, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958379, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'metal': {'main_port_id': 20260642, 'sub_port_id': 20260693, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958380, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'flou': {'main_port_id': 20260642, 'sub_port_id': 20260694, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958381, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'papier': {'main_port_id': 20260642, 'sub_port_id': 20260695, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958382, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}, 'environnement': {'main_port_id': 20260642, 'sub_port_id': 20260696, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958383, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20260685 , 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=20260642 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 (20260685) result : ((1334949387,), (1334949388,), (1334949757,), (1334949830,), (1334949914,), (1334949915,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260686 , 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=20260642 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 (20260686) result : ((1334949809,), (1334949810,), (1334949927,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260687 , 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=20260642 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 (20260687) result : ((1334949393,), (1334949776,), (1334949855,), (1334949926,), (1334950040,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260688 , 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=20260642 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 (20260688) result : ((1334949761,), (1334949762,), (1334949763,), (1334949764,), (1334949835,), (1334949836,), (1334949919,), (1334950032,), (1334950033,), (1334950034,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260689 , 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=20260642 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 (20260689) result : ((1334949392,), (1334949765,), (1334949766,), (1334949842,), (1334949925,), (1334950037,), (1334950038,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260690 , 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=20260642 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 (20260690) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260691 , 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=20260642 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 (20260691) result : ((1334949389,), (1334949838,), (1334949839,), (1334949840,), (1334949922,), (1334949923,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260692 , 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=20260642 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 (20260692) result : ((1334949832,), (1334949833,), (1334949916,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260693 , 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=20260642 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 (20260693) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260694 , 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=20260642 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 (20260694) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260695 , 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=20260642 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 (20260695) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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 20260696 , 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=20260642 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 (20260696) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20260642) result : ((1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) 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`=20260642 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_brun','mal_croppe','Teint_Dans_La_Masse','metal','flou','environnement','plastique','Carton_gris','kraft','autre_refus')) 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`=20260642 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_brun','mal_croppe','Teint_Dans_La_Masse','metal','flou','environnement','plastique','Carton_gris','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20260642, 'sub_port_id': 20260697, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958384, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'kraft': {'main_port_id': 20260642, 'sub_port_id': 20260698, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958385, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'plastique': {'main_port_id': 20260642, 'sub_port_id': 20260699, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958386, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'Carton_gris': {'main_port_id': 20260642, 'sub_port_id': 20260700, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958387, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'Carton_brun': {'main_port_id': 20260642, 'sub_port_id': 20260701, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958388, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'mal_croppe': {'main_port_id': 20260642, 'sub_port_id': 20260702, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958389, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'cartonnette': {'main_port_id': 20260642, 'sub_port_id': 20260703, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958390, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'autre_refus': {'main_port_id': 20260642, 'sub_port_id': 20260704, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958391, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'metal': {'main_port_id': 20260642, 'sub_port_id': 20260705, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958392, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'flou': {'main_port_id': 20260642, 'sub_port_id': 20260706, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958393, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'papier': {'main_port_id': 20260642, 'sub_port_id': 20260707, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958394, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}, 'environnement': {'main_port_id': 20260642, 'sub_port_id': 20260708, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12958395, 'last_updated_at': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 5, 14, 53), 'last_updated_at_asc': datetime.datetime(2025, 2, 5, 14, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260697,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260685 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260698,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260686 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260699,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260687 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260700,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260688 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260701,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260689 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260702,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260690 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260703,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260691 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260704,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260692 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260705,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260693 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260706,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260694 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260707,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260695 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20260708,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20260696 lien utilise dans velours : https://www.fotonower.com/velours/20260697,20260698,20260699,20260700,20260701,20260702,20260703,20260704,20260705,20260706,20260707,20260708?tags=Teint_Dans_La_Masse,kraft,plastique,Carton_gris,Carton_brun,mal_croppe,cartonnette,autre_refus,metal,flou,papier,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20260642]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912] map_info['map_portfolio_photo'] : {20260642: [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912, 1334949740, 1334949503, 1334949501, 1334949499, 1334949449, 1334949442, 1334949439, 1334949435, 1334949358, 1334949354, 1334949352, 1334949327, 1334949324, 1334949321, 1334949319, 1334949251, 1334949250, 1334949246, 1334949114, 1334948851, 1334948848, 1334948846]} final : False mtd_id 4302 list_pids : [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912] Looping around the photos to save general results len do output : 1 /20260642. 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, '2551924') ('4302', '20260642', '1334950061', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334950059', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949931', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949928', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949921', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949912', None, None, None, None, None, '2551924') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '20260642', "{'Teint_Dans_La_Masse': 20260685, 'kraft': 20260686, 'plastique': 20260687, 'Carton_gris': 20260688, 'Carton_brun': 20260689, 'mal_croppe': 20260690, 'cartonnette': 20260691, 'autre_refus': 20260692, 'metal': 20260693, 'flou': 20260694, 'papier': 20260695, 'environnement': 20260696}", None, None, None, None, '2551924'), ('4302', '20260642', '1334950061', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334950059', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949931', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949928', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949921', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949912', None, None, None, None, None, '2551924')] time used for this insertion : 0.013607501983642578 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6697683334350586 time spend to save output : 0.013898849487304688 total time spend for step 1 : 1.6836671829223633 step2:final Wed Feb 5 14:55: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 (20260642) 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 20260642 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1334948851,1334948848,1334948846,1334949251,1334949250,1334949246,1334949114,1334949327,1334949324,1334949321,1334949319,1334949358,1334949354,1334949352,1334949449,1334949442,1334949439,1334949435,1334949503,1334949501,1334949499,1334949740,1334949931,1334949928,1334949921,1334949912,1334950061,1334950059); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20260642]) Inside saveOutput : final : False verbose : True original output for save of step final : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ('0.0640891097980821',)} new output for save of step final : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ('0.0640891097980821',)} [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912] map_info['map_portfolio_photo'] : {20260642: [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912, 1334949740, 1334949503, 1334949501, 1334949499, 1334949449, 1334949442, 1334949439, 1334949435, 1334949358, 1334949354, 1334949352, 1334949327, 1334949324, 1334949321, 1334949319, 1334949251, 1334949250, 1334949246, 1334949114, 1334948851, 1334948848, 1334948846]} final : False mtd_id 4302 list_pids : [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912] Looping around the photos to save general results len do output : 6 /1334950061.Didn't retrieve data . /1334950059.Didn't retrieve data . /1334949931.Didn't retrieve data . /1334949928.Didn't retrieve data . /1334949921.Didn't retrieve data . /1334949912.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, '2551924') ('4302', '20260642', '1334950061', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334950059', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949931', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949928', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949921', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949912', None, None, None, None, None, '2551924') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20260642', '1334950061', '0.0640891097980821', None, None, None, None, '2551924'), ('4302', '20260642', '1334950059', '0.0640891097980821', None, None, None, None, '2551924'), ('4302', '20260642', '1334949931', '0.0640891097980821', None, None, None, None, '2551924'), ('4302', '20260642', '1334949928', '0.0640891097980821', None, None, None, None, '2551924'), ('4302', '20260642', '1334949921', '0.0640891097980821', None, None, None, None, '2551924'), ('4302', '20260642', '1334949912', '0.0640891097980821', None, None, None, None, '2551924')] time used for this insertion : 0.01265263557434082 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06508231163024902 time spend to save output : 0.013023614883422852 total time spend for step 2 : 0.07810592651367188 step3:velours_tree Wed Feb 5 14:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20260642: [{'Teint_Dans_La_Masse': 20260685, 'kraft': 20260686, 'plastique': 20260687, 'Carton_gris': 20260688, 'Carton_brun': 20260689, 'mal_croppe': 20260690, 'cartonnette': 20260691, 'autre_refus': 20260692, 'metal': 20260693, 'flou': 20260694, 'papier': 20260695, 'environnement': 20260696}]} input_args_next_step : {20260642: ()} output_args : {20260642: [{'Teint_Dans_La_Masse': 20260685, 'kraft': 20260686, 'plastique': 20260687, 'Carton_gris': 20260688, 'Carton_brun': 20260689, 'mal_croppe': 20260690, 'cartonnette': 20260691, 'autre_refus': 20260692, 'metal': 20260693, 'flou': 20260694, 'papier': 20260695, 'environnement': 20260696}]} args : 20260642 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 : ({'Teint_Dans_La_Masse': 20260685, 'kraft': 20260686, 'plastique': 20260687, 'Carton_gris': 20260688, 'Carton_brun': 20260689, 'mal_croppe': 20260690, 'cartonnette': 20260691, 'autre_refus': 20260692, 'metal': 20260693, 'flou': 20260694, 'papier': 20260695, 'environnement': 20260696},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20260642) 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([20260642]) 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.3170597553253174 time spend to save output : 8.225440979003906e-05 total time spend for step 3 : 0.3171420097351074 step4:send_mail_cod Wed Feb 5 14:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ('0.0640891097980821',)} input_args_next_step : {1334950061: ()} output_args : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ('0.0640891097980821',)} args : 1334950061 depend.output_id : 0 input_args_next_step : {1334950061: ('0.0640891097980821',), 1334950059: ()} output_args : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ('0.0640891097980821',)} args : 1334950059 depend.output_id : 0 input_args_next_step : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ()} output_args : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ('0.0640891097980821',)} args : 1334949931 depend.output_id : 0 input_args_next_step : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ()} output_args : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ('0.0640891097980821',)} args : 1334949928 depend.output_id : 0 input_args_next_step : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ()} output_args : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ('0.0640891097980821',)} args : 1334949921 depend.output_id : 0 input_args_next_step : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ()} output_args : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ('0.0640891097980821',)} args : 1334949912 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 : {20260642: [{'Teint_Dans_La_Masse': 20260685, 'kraft': 20260686, 'plastique': 20260687, 'Carton_gris': 20260688, 'Carton_brun': 20260689, 'mal_croppe': 20260690, 'cartonnette': 20260691, 'autre_refus': 20260692, 'metal': 20260693, 'flou': 20260694, 'papier': 20260695, 'environnement': 20260696}]} input_args_next_step : {1334950061: ('0.0640891097980821',), 1334950059: ('0.0640891097980821',), 1334949931: ('0.0640891097980821',), 1334949928: ('0.0640891097980821',), 1334949921: ('0.0640891097980821',), 1334949912: ('0.0640891097980821',), 20260642: ()} output_args : {20260642: [{'Teint_Dans_La_Masse': 20260685, 'kraft': 20260686, 'plastique': 20260687, 'Carton_gris': 20260688, 'Carton_brun': 20260689, 'mal_croppe': 20260690, 'cartonnette': 20260691, 'autre_refus': 20260692, 'metal': 20260693, 'flou': 20260694, 'papier': 20260695, 'environnement': 20260696}]} args : 20260642 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 :7, first value : ('0.0640891097980821',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20260642) 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 (1334950061,1334950059,1334949931,1334949928,1334949921,1334949912) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1334949912 begin to download photo : 1334949928 begin to download photo : 1334950059 download finish for photo 1334950059 begin to download photo : 1334950061 download finish for photo 1334949912 begin to download photo : 1334949921 download finish for photo 1334949928 begin to download photo : 1334949931 download finish for photo 1334950061 download finish for photo 1334949921 download finish for photo 1334949931 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P20260642_05-02-2025_14_55_00.pdf 20260686 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=20260686 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334949809: '1738763472_364139_1334949358_8507a2139788548f4a2909b18ba347a1_rle_crop_3656107742_0.png', 1334949810: '1738763472_364139_1334949319_7de8577865da163fb0b1eed5d7c84ef4_rle_crop_3656108295_0.png', 1334949927: '1738763513_364524_1334949354_f1dbcae4deaa5f940c6e1f4b06847933_rle_crop_3656108916_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/0b8e0c3003b69c0053e5c2f541d567b3_58600678.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/b134b1ad647792dfa4515e27e21c2f5e_62953056.png change filename to text .imagette202606861738763700/ imagette202606861738763700/1738763472_364139_1334949358_8507a2139788548f4a2909b18ba347a1_rle_crop_3656107742_0.png.png imagette202606861738763700/1738763472_364139_1334949319_7de8577865da163fb0b1eed5d7c84ef4_rle_crop_3656108295_0.png.png imagette202606861738763700/1738763513_364524_1334949354_f1dbcae4deaa5f940c6e1f4b06847933_rle_crop_3656108916_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/23e171e6412c0a8ecd7abac91d3ef647_46238492.png imagette202606861738763700 20260687 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=20260687 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334949393: '1738763295_354065_1334948848_72a225bf6682d9032f2a1821b769ecbf_rle_crop_3656100959_0.png', 1334949776: '1738763472_364139_1334949319_7de8577865da163fb0b1eed5d7c84ef4_rle_crop_3656108289_0.png', 1334949855: '1738763493_364298_1334949442_8a6d0da9d041b63c9e96dfe910529e18_rle_crop_3656108612_0.png', 1334949926: '1738763513_364524_1334949354_f1dbcae4deaa5f940c6e1f4b06847933_rle_crop_3656108911_0.png', 1334950040: '1738763534_364783_1334949327_0c278bcc7d6f20fe3822544ab886b978_rle_crop_3656109081_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/70e30b1f7e56722c79e0994fcfe2a151_87877250.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/8215a343dc8f80d3e2e41156d9d5c55d_76175135.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/21c43f0a040ce911efb9c2717faa0f50_77103104.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/d2cfe788f23e671e4031515029e137bc_91446153.png change filename to text .imagette202606871738763701/ imagette202606871738763701/1738763534_364783_1334949327_0c278bcc7d6f20fe3822544ab886b978_rle_crop_3656109081_0.png.png imagette202606871738763701/1738763493_364298_1334949442_8a6d0da9d041b63c9e96dfe910529e18_rle_crop_3656108612_0.png.png imagette202606871738763701/1738763472_364139_1334949319_7de8577865da163fb0b1eed5d7c84ef4_rle_crop_3656108289_0.png.png imagette202606871738763701/1738763513_364524_1334949354_f1dbcae4deaa5f940c6e1f4b06847933_rle_crop_3656108911_0.png.png imagette202606871738763701/1738763295_354065_1334948848_72a225bf6682d9032f2a1821b769ecbf_rle_crop_3656100959_0.png.png imagette202606901738763701/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/b0a8720d2db46f9cb6ffcb509e5d60d4_79745880.png imagette202606871738763701 20260690 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=20260690 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202606901738763701 20260691 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=20260691 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334949389: '1738763295_354065_1334948851_13286ffbc3dda0c6cc1b6c8aee8356fe_rle_crop_3656094792_0.png', 1334949838: '1738763493_364298_1334949442_8a6d0da9d041b63c9e96dfe910529e18_rle_crop_3656108606_0.png', 1334949839: '1738763493_364298_1334949435_890c2108f4bb0824446fa7d3980778e8_rle_crop_3656108635_0.png', 1334949840: '1738763493_364298_1334949435_890c2108f4bb0824446fa7d3980778e8_rle_crop_3656108630_0.png', 1334949922: '1738763513_364524_1334949449_64b8320a89f90134697a700084c0e72e_rle_crop_3656108815_0.png', 1334949923: '1738763513_364524_1334949352_5c36caa65bea93417f2fffe3ed442376_rle_crop_3656108961_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/390284d0102248cff85d2b434b81cf35_23637303.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/22743dffe4f76bab46cc61add12092f5_45763173.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/f04076a4350f5d854b3a13105a5b2223_64465405.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/1bb55caf7a555cb768fffd3bbffbc800_41811141.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/1b5693c53e26da11a197a3feb1b8aa60_83167298.png change filename to text .imagette202606911738763701/ imagette202606911738763701/1738763513_364524_1334949352_5c36caa65bea93417f2fffe3ed442376_rle_crop_3656108961_0.png.png imagette202606911738763701/1738763493_364298_1334949435_890c2108f4bb0824446fa7d3980778e8_rle_crop_3656108630_0.png.png imagette202606911738763701/1738763295_354065_1334948851_13286ffbc3dda0c6cc1b6c8aee8356fe_rle_crop_3656094792_0.png.png imagette202606911738763701/1738763513_364524_1334949449_64b8320a89f90134697a700084c0e72e_rle_crop_3656108815_0.png.png imagette202606911738763701/1738763493_364298_1334949442_8a6d0da9d041b63c9e96dfe910529e18_rle_crop_3656108606_0.png.png imagette202606911738763701/1738763493_364298_1334949435_890c2108f4bb0824446fa7d3980778e8_rle_crop_3656108635_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/f8e20cb597abc15323c59aca670fbdc3_66749709.png imagette202606911738763701 20260692 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=20260692 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334949832: '1738763493_364298_1334949442_8a6d0da9d041b63c9e96dfe910529e18_rle_crop_3656108603_0.png', 1334949833: '1738763493_364298_1334949439_afe0ab3deb4d5e3795f46a0168322157_rle_crop_3656108619_0.png', 1334949916: '1738763513_364524_1334949352_5c36caa65bea93417f2fffe3ed442376_rle_crop_3656108962_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/ab81433e0964724639079c5d023a788e_31024803.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/5a340a44a5589fd441870a35671d9ac3_55934820.png change filename to text .imagette202606921738763701/ imagette202606921738763701/1738763493_364298_1334949442_8a6d0da9d041b63c9e96dfe910529e18_rle_crop_3656108603_0.png.png imagette202606921738763701/1738763493_364298_1334949439_afe0ab3deb4d5e3795f46a0168322157_rle_crop_3656108619_0.png.png imagette202606921738763701/1738763513_364524_1334949352_5c36caa65bea93417f2fffe3ed442376_rle_crop_3656108962_0.png.png imagette202606931738763702/ imagette202606941738763702/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/ade2e22b14644b6504b5a6deab4e445d_47693072.png imagette202606921738763701 20260693 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=20260693 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202606931738763702 20260694 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=20260694 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202606941738763702 20260685 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=20260685 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334949387: '1738763295_354065_1334948848_72a225bf6682d9032f2a1821b769ecbf_rle_crop_3656100958_0.png', 1334949388: '1738763295_354065_1334948846_0f9d69e76065afcb6f9a8e962e4c7ac2_rle_crop_3656100993_0.png', 1334949757: '1738763472_364139_1334949358_8507a2139788548f4a2909b18ba347a1_rle_crop_3656107740_0.png', 1334949830: '1738763493_364298_1334949439_afe0ab3deb4d5e3795f46a0168322157_rle_crop_3656108623_0.png', 1334949914: '1738763513_364524_1334949354_f1dbcae4deaa5f940c6e1f4b06847933_rle_crop_3656108912_0.png', 1334949915: '1738763513_364524_1334949352_5c36caa65bea93417f2fffe3ed442376_rle_crop_3656108965_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/b7f02e76823f35b2a330572652777061_68805903.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/4d2201d6db9f8a2ed273b97b564dfcf8_17891677.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/bc566bcbf1fdc06ffa63620cc02f3eca_1682250.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/349dc150a9fa1d830dac636e269b0ce9_87973104.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/aa5506db99014305c0dd0bc453fc0408_31686780.png change filename to text .imagette202606851738763702/ imagette202606851738763702/1738763513_364524_1334949354_f1dbcae4deaa5f940c6e1f4b06847933_rle_crop_3656108912_0.png.png imagette202606851738763702/1738763472_364139_1334949358_8507a2139788548f4a2909b18ba347a1_rle_crop_3656107740_0.png.png imagette202606851738763702/1738763513_364524_1334949352_5c36caa65bea93417f2fffe3ed442376_rle_crop_3656108965_0.png.png imagette202606851738763702/1738763493_364298_1334949439_afe0ab3deb4d5e3795f46a0168322157_rle_crop_3656108623_0.png.png imagette202606851738763702/1738763295_354065_1334948846_0f9d69e76065afcb6f9a8e962e4c7ac2_rle_crop_3656100993_0.png.png imagette202606851738763702/1738763295_354065_1334948848_72a225bf6682d9032f2a1821b769ecbf_rle_crop_3656100958_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/df05c3b9e4f7935e20faf698675c726c_93108986.png imagette202606851738763702 20260688 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=20260688 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334949761: '1738763472_364139_1334949321_9d65b17eff64d467d4cee7196c9d017e_rle_crop_3656108031_0.png', 1334949762: '1738763472_364139_1334949321_9d65b17eff64d467d4cee7196c9d017e_rle_crop_3656108030_0.png', 1334949763: '1738763472_364139_1334949319_7de8577865da163fb0b1eed5d7c84ef4_rle_crop_3656108291_0.png', 1334949764: '1738763472_364139_1334949319_7de8577865da163fb0b1eed5d7c84ef4_rle_crop_3656108292_0.png', 1334949835: '1738763493_364298_1334949442_8a6d0da9d041b63c9e96dfe910529e18_rle_crop_3656108610_0.png', 1334949836: '1738763493_364298_1334949439_afe0ab3deb4d5e3795f46a0168322157_rle_crop_3656108620_0.png', 1334949919: '1738763513_364524_1334949449_64b8320a89f90134697a700084c0e72e_rle_crop_3656108814_0.png', 1334950032: '1738763534_364783_1334949327_0c278bcc7d6f20fe3822544ab886b978_rle_crop_3656109080_0.png', 1334950033: '1738763534_364783_1334949327_0c278bcc7d6f20fe3822544ab886b978_rle_crop_3656109079_0.png', 1334950034: '1738763534_364783_1334949246_ff7048a62955a842fed935aac13979a9_rle_crop_3656109098_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/4990ace1443397d17b88930cd0c38fd8_30403697.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/699a432cc67c05b22a88124e4df4f2e7_22689280.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/67b2c7c99baae13911def4f398121756_6346233.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/a6db1e314fe9a9098ddf83e2708572d9_47868752.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/fbfbfd6af714d607e2264b96a1f9550d_46655684.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/e70147352f85cf78184f72524de74f34_34467805.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/c10d71cfa984c117587eb0dbea9f7da4_98166264.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/6ff4d9978cbdf1e39a543da8a147d31f_56377705.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/4867c0bab6a1ff94328d916955eb91e5_81307256.png change filename to text .imagette202606881738763703/ imagette202606881738763703/1738763472_364139_1334949321_9d65b17eff64d467d4cee7196c9d017e_rle_crop_3656108030_0.png.png imagette202606881738763703/1738763513_364524_1334949449_64b8320a89f90134697a700084c0e72e_rle_crop_3656108814_0.png.png imagette202606881738763703/1738763493_364298_1334949439_afe0ab3deb4d5e3795f46a0168322157_rle_crop_3656108620_0.png.png imagette202606881738763703/1738763472_364139_1334949319_7de8577865da163fb0b1eed5d7c84ef4_rle_crop_3656108292_0.png.png imagette202606881738763703/1738763534_364783_1334949327_0c278bcc7d6f20fe3822544ab886b978_rle_crop_3656109080_0.png.png imagette202606881738763703/1738763534_364783_1334949246_ff7048a62955a842fed935aac13979a9_rle_crop_3656109098_0.png.png imagette202606881738763703/1738763472_364139_1334949319_7de8577865da163fb0b1eed5d7c84ef4_rle_crop_3656108291_0.png.png imagette202606881738763703/1738763493_364298_1334949442_8a6d0da9d041b63c9e96dfe910529e18_rle_crop_3656108610_0.png.png imagette202606881738763703/1738763534_364783_1334949327_0c278bcc7d6f20fe3822544ab886b978_rle_crop_3656109079_0.png.png imagette202606881738763703/1738763472_364139_1334949321_9d65b17eff64d467d4cee7196c9d017e_rle_crop_3656108031_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/45e93c9db65aa2c081ec9e356e3503fc_39773243.png imagette202606881738763703 20260689 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=20260689 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334949392: '1738763295_354065_1334948846_0f9d69e76065afcb6f9a8e962e4c7ac2_rle_crop_3656100995_0.png', 1334949765: '1738763472_364139_1334949324_8e9c89941cb3a6173317bce5c8123d57_rle_crop_3656108007_0.png', 1334949766: '1738763472_364139_1334949321_9d65b17eff64d467d4cee7196c9d017e_rle_crop_3656108033_0.png', 1334949842: '1738763493_364298_1334949442_8a6d0da9d041b63c9e96dfe910529e18_rle_crop_3656108609_0.png', 1334949925: '1738763513_364524_1334949449_64b8320a89f90134697a700084c0e72e_rle_crop_3656108817_0.png', 1334950037: '1738763534_364783_1334949327_0c278bcc7d6f20fe3822544ab886b978_rle_crop_3656109082_0.png', 1334950038: '1738763534_364783_1334949114_a3262e60f486f8a3cf6608ea9db21817_rle_crop_3656109108_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/7cc810b088854a51231bee2accf95b86_38737522.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/5a8819ecc09a5ff754ad22d1d307b03c_84852435.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/c93010e88b108b996c706b2f1ac1ad55_2572307.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/0b9bd944397b6ce711c28a9a25f1bc1e_46560025.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/3c39c450599477f211676140dcb9be0e_13129079.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/cadb458403a157813452180be782152c_46046750.png change filename to text .imagette202606891738763703/ imagette202606891738763703/1738763513_364524_1334949449_64b8320a89f90134697a700084c0e72e_rle_crop_3656108817_0.png.png imagette202606891738763703/1738763472_364139_1334949324_8e9c89941cb3a6173317bce5c8123d57_rle_crop_3656108007_0.png.png imagette202606891738763703/1738763295_354065_1334948846_0f9d69e76065afcb6f9a8e962e4c7ac2_rle_crop_3656100995_0.png.png imagette202606891738763703/1738763534_364783_1334949114_a3262e60f486f8a3cf6608ea9db21817_rle_crop_3656109108_0.png.png imagette202606891738763703/1738763472_364139_1334949321_9d65b17eff64d467d4cee7196c9d017e_rle_crop_3656108033_0.png.png imagette202606891738763703/1738763493_364298_1334949442_8a6d0da9d041b63c9e96dfe910529e18_rle_crop_3656108609_0.png.png imagette202606891738763703/1738763534_364783_1334949327_0c278bcc7d6f20fe3822544ab886b978_rle_crop_3656109082_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/25381e713e230be0d013d2333c74323b_4403306.png imagette202606891738763703 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20260642 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20260697,20260698,20260699,20260700,20260701,20260702,20260703,20260704,20260705,20260706,20260707,20260708?tags=Teint_Dans_La_Masse,kraft,plastique,Carton_gris,Carton_brun,mal_croppe,cartonnette,autre_refus,metal,flou,papier,environnement your option no_mail is active, we will not send the real mail to your client args[1334950061] : ('0.0640891097980821',) no score found for photo 1334950061 We are sending mail with results at report@fotonower.com args[1334950059] : ('0.0640891097980821',) no score found for photo 1334950059 We are sending mail with results at report@fotonower.com args[1334949931] : ('0.0640891097980821',) no score found for photo 1334949931 We are sending mail with results at report@fotonower.com args[1334949928] : ('0.0640891097980821',) no score found for photo 1334949928 We are sending mail with results at report@fotonower.com args[1334949921] : ('0.0640891097980821',) no score found for photo 1334949921 We are sending mail with results at report@fotonower.com args[1334949912] : ('0.0640891097980821',) no score found for photo 1334949912 We are sending mail with results at report@fotonower.com refus_total : 0.0640891097980821 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=20260642 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_P20260642_05-02-2025_14_55_00.pdf results_Auto_P20260642_05-02-2025_14_55_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20260642_05-02-2025_14_55_00.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','20260642','results_Auto_P20260642_05-02-2025_14_55_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20260642_05-02-2025_14_55_00.pdf','pdf','','0.21','0.0640891097980821') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20260642]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912] map_info['map_portfolio_photo'] : {20260642: [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912, 1334949740, 1334949503, 1334949501, 1334949499, 1334949449, 1334949442, 1334949439, 1334949435, 1334949358, 1334949354, 1334949352, 1334949327, 1334949324, 1334949321, 1334949319, 1334949251, 1334949250, 1334949246, 1334949114, 1334948851, 1334948848, 1334948846]} final : False mtd_id 4302 list_pids : [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912] 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, '2551924') ('4302', '20260642', '1334950061', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334950059', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949931', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949928', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949921', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949912', None, None, None, None, None, '2551924') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '20260642', '1334950061', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334950059', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949931', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949928', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949921', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949912', None, None, None, None, None, '2551924')] time used for this insertion : 0.012640714645385742 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.36494779586792 time spend to save output : 0.01280832290649414 total time spend for step 4 : 4.377756118774414 step5:split_time_score Wed Feb 5 14:55:05 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 : ['20260642'] 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 : [('20260642',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20260642) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1334950059: {'path': 'temp/1738763700_4056743_1334950059_bd85f5158891457c8404bee67354d79a.jpg', 'extension': 'jpg'}, 1334950061: {'path': 'temp/1738763700_4056743_1334950061_030fd813c18a035d15ea5839078ef59d.jpg', 'extension': 'jpg'}, 1334949912: {'path': 'temp/1738763700_4056743_1334949912_a3f0bb58fcbaec32ff3354a0de93c9de.jpg', 'extension': 'jpg'}, 1334949921: {'path': 'temp/1738763700_4056743_1334949921_93f98dfc6a589b6a7f0c86d2acae6971.jpg', 'extension': 'jpg'}, 1334949928: {'path': 'temp/1738763700_4056743_1334949928_bf4f7c7ce70302a71c92594d7974a9a6.jpg', 'extension': 'jpg'}, 1334949931: {'path': 'temp/1738763700_4056743_1334949931_3d1f5ce21a47a3f45d17af91010b403e.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 = 20260642; (('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 = 20260642 group by h (('14', 28),) 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=20260642 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 (20260642) 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 (20260642) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05022025 20260642 Nombre de photos uploadées : 28 / 23040 (0%) 05022025 20260642 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 05022025 20260642 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1334948851, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/13286ffbc3dda0c6cc1b6c8aee8356fe.jpg', 'username': None, 'uploaded_at': 1738763168, 'text': 'image_05022025_14_45_04_10172.jpg'}, {'photo_id': 1334948848, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/72a225bf6682d9032f2a1821b769ecbf.jpg', 'username': None, 'uploaded_at': 1738763168, 'text': 'image_05022025_14_45_24_10140.jpg'}, {'photo_id': 1334948846, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/0f9d69e76065afcb6f9a8e962e4c7ac2.jpg', 'username': None, 'uploaded_at': 1738763168, 'text': 'image_05022025_14_45_34_10136.jpg'}, {'photo_id': 1334949251, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/5/7b2124469f31b8f434bcd53bda473c2e.jpg', 'username': None, 'uploaded_at': 1738763228, 'text': 'image_05022025_14_45_43_009131m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 3.5762786865234375e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008904933929443359 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20260642, '2025-02-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1578490,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023979902267456055 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= 1578490 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1578490, 'dashboard_run_id': 1587696, 'mtr_portfolio_id': 20258632, 'dashboard_result_id': 8709301, '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_P20258632_05-02-2025_14_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258665, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1587696, 'mtr_portfolio_id': 20259151, 'dashboard_result_id': 8709302, '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_P20259151_05-02-2025_14_32_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259231, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1587696, 'mtr_portfolio_id': 20259950, 'dashboard_result_id': 8709303, '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_P20259950_05-02-2025_14_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259970, 'pht': 3726}}"}, {'dashboat_entry_day': 1578490, 'dashboard_run_id': 1587696, 'mtr_portfolio_id': 20260642, 'dashboard_result_id': 8709304, '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_P20260642_05-02-2025_14_53_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20260685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20260686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20260687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20260688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20260689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20260690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20260691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20260692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20260693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20260694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20260695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20260696, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20258632 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': 2551703, 'mtr_portfolio_id': 20258632, 'created_at': datetime.datetime(2025, 2, 5, 14, 16, 57), 'result': '0.048649124518686374', 'result_long': None, 'result_double': None}] Qualite : 0.048649124518686374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20258632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20258632_05-02-2025_14_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20258632 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_P20258632_05-02-2025_14_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258665, 'pht': 3726}}" where mtr_portfolio_id = 20258632 and dashboard_run_id = 1587696 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`=20258632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8709301, 0.048649124518686374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20258632_05-02-2025_14_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20258654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20258655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20258656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20258657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20258658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20258659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20258660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20258661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20258662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20258663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20258664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20258665, '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 = 20259151 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': 2551770, 'mtr_portfolio_id': 20259151, 'created_at': datetime.datetime(2025, 2, 5, 14, 32, 29), 'result': '0.040442967301595835', 'result_long': None, 'result_double': None}] Qualite : 0.040442967301595835 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20259151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20259151_05-02-2025_14_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20259151 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_P20259151_05-02-2025_14_32_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259231, 'pht': 3726}}" where mtr_portfolio_id = 20259151 and dashboard_run_id = 1587696 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`=20259151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8709302, 0.040442967301595835, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20259151_05-02-2025_14_32_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259231, '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 = 20259950 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': 2551853, 'mtr_portfolio_id': 20259950, 'created_at': datetime.datetime(2025, 2, 5, 14, 46, 30), 'result': '0.057790166457172484', 'result_long': None, 'result_double': None}] Qualite : 0.057790166457172484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20259950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20259950_05-02-2025_14_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20259950 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_P20259950_05-02-2025_14_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259970, 'pht': 3726}}" where mtr_portfolio_id = 20259950 and dashboard_run_id = 1587696 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`=20259950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8709303, 0.057790166457172484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20259950_05-02-2025_14_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20259959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20259960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20259961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20259962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20259963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20259964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20259965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20259966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20259967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20259968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20259969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20259970, '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 = 20260642 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': 2551924, 'mtr_portfolio_id': 20260642, 'created_at': datetime.datetime(2025, 2, 5, 14, 55), 'result': '0.0640891097980821', 'result_long': None, 'result_double': None}] Qualite : 0.0640891097980821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20260642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20260642_05-02-2025_14_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20260642 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_P20260642_05-02-2025_14_55_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20260685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20260686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20260687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20260688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20260689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20260690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20260691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20260692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20260693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20260694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20260695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20260696, 'pht': 3726}}" where mtr_portfolio_id = 20260642 and dashboard_run_id = 1587696 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`=20260642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8709304, 0.0640891097980821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20260642_05-02-2025_14_55_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20260685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20260686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20260687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20260688, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20260689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20260690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20260691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20260692, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20260693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20260694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20260695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20260696, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20258632,20259151,20259950,20260642) result : ((1334936515,), (1334936522,), (1334936529,), (1334936624,), (1334936629,), (1334936634,), (1334936648,), (1334936651,), (1334936709,), (1334936713,), (1334936718,), (1334936721,), (1334936723,), (1334936836,), (1334936881,), (1334936885,), (1334936890,), (1334936894,), (1334936896,), (1334936900,), (1334936921,), (1334936924,), (1334936969,), (1334937063,), (1334937086,), (1334937122,), (1334937324,), (1334937555,), (1334937815,), (1334937942,), (1334937951,), (1334937956,), (1334938079,), (1334938081,), (1334938202,), (1334938512,), (1334938513,), (1334938524,), (1334938647,), (1334938649,), (1334938652,), (1334938655,), (1334938657,), (1334938687,), (1334939595,), (1334939605,), (1334939609,), (1334939612,), (1334939635,), (1334939641,), (1334939897,), (1334939908,), (1334939916,), (1334939923,), (1334940046,), (1334940047,), (1334940097,), (1334940200,), (1334940794,), (1334940795,), (1334940812,), (1334940822,), (1334940825,), (1334940966,), (1334940967,), (1334940969,), (1334941103,), (1334941069,), (1334941070,), (1334941072,), (1334941101,), (1334941452,), (1334941460,), (1334941503,), (1334941505,), (1334941552,), (1334941610,), (1334941663,), (1334941666,), (1334941707,), (1334941708,), (1334941710,), (1334941713,), (1334941714,), (1334941716,), (1334941744,), (1334941755,), (1334941756,), (1334941782,), (1334941785,), (1334941789,), (1334941794,), (1334941924,), (1334942512,), (1334942513,), (1334942515,), (1334942883,), (1334942888,), (1334942889,), (1334942894,), (1334942899,), (1334942923,), (1334942925,), (1334942930,), (1334942931,), (1334942934,), (1334942971,), (1334942975,), (1334942978,), (1334942980,), (1334943105,), (1334943114,), (1334943123,), (1334943131,), (1334943134,), (1334943293,), (1334943342,), (1334943365,), (1334943435,), (1334943524,), (1334943734,), (1334943736,), (1334943759,), (1334943838,), (1334943851,), (1334943855,), (1334943869,), (1334943873,), (1334943876,), (1334944432,), (1334944514,), (1334944656,), (1334944756,), (1334944766,), (1334944772,), (1334944981,), (1334944962,), (1334944974,), (1334945211,), (1334945236,), (1334945252,), (1334945254,), (1334945255,), (1334945296,), (1334945320,), (1334945364,), (1334945369,), (1334945373,), (1334945381,), (1334945421,), (1334945423,), (1334945427,), (1334945438,), (1334945441,), (1334945504,), (1334945505,), (1334945517,), (1334945519,), (1334945520,), (1334945628,), (1334945636,), (1334945691,), (1334945705,), (1334945708,), (1334946201,), (1334946242,), (1334946305,), (1334946315,), (1334946420,), (1334947075,), (1334947080,), (1334947086,), (1334947089,), (1334947092,), (1334947397,), (1334947415,), (1334947418,), (1334947422,), (1334947424,), (1334947427,), (1334947600,), (1334947601,), (1334947603,), (1334947922,), (1334947933,), (1334947940,), (1334947950,), (1334947957,), (1334947961,), (1334947985,), (1334947987,), (1334947989,), (1334948014,), (1334948016,), (1334948024,), (1334948426,), (1334948427,), (1334948429,), (1334948431,), (1334948693,), (1334948718,), (1334948720,), (1334948722,), (1334948723,), (1334948765,), (1334948767,), (1334948775,), (1334948779,), (1334948781,), (1334948854,), (1334948846,), (1334948848,), (1334948851,), (1334949114,), (1334949246,), (1334949250,), (1334949251,), (1334949319,), (1334949321,), (1334949324,), (1334949327,), (1334949352,), (1334949354,), (1334949358,), (1334949435,), (1334949439,), (1334949442,), (1334949449,), (1334949499,), (1334949501,), (1334949503,), (1334949740,), (1334949912,), (1334949921,), (1334949928,), (1334949931,), (1334950059,), (1334950061,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05022025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20260642]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912] map_info['map_portfolio_photo'] : {20260642: [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912, 1334949740, 1334949503, 1334949501, 1334949499, 1334949449, 1334949442, 1334949439, 1334949435, 1334949358, 1334949354, 1334949352, 1334949327, 1334949324, 1334949321, 1334949319, 1334949251, 1334949250, 1334949246, 1334949114, 1334948851, 1334948848, 1334948846]} final : True mtd_id 4302 list_pids : [1334950061, 1334950059, 1334949931, 1334949928, 1334949921, 1334949912] Looping around the photos to save general results len do output : 1 /20260642Didn'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, '2551924') ('4302', '20260642', '1334950061', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334950059', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949931', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949928', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949921', None, None, None, None, None, '2551924') ('4302', None, None, None, None, None, None, None, '2551924') ('4302', '20260642', '1334949912', None, None, None, None, None, '2551924') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '20260642', 'None', None, None, None, None, '2551924'), ('4302', '20260642', '1334950061', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334950059', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949931', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949928', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949921', None, None, None, None, None, '2551924'), ('4302', '20260642', '1334949912', None, None, None, None, None, '2551924')] time used for this insertion : 0.01647210121154785 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3289453983306885 time spend to save output : 0.0166776180267334 total time spend for step 5 : 0.3456230163574219 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 (2551924) 1.95user 2.16system 0:10.47elapsed 39%CPU (0avgtext+0avgdata 158636maxresident)k 56inputs+12000outputs (1major+64125minor)pagefaults 0swaps