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 : 3266667 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 (2720475) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2720475) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021881 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2720475'] with mtr_portfolio_ids : ['22021881'] and first list_photo_ids : [] new path : /proc/3266667/ Name: python3 Umask: 0002 State: R (running) Tgid: 3266667 Ngid: 0 Pid: 3266667 PPid: 3266666 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3266667 NSpid: 3266667 NSpgid: 3262611 NSsid: 3262611 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98784 kB VmRSS: 98784 kB RssAnon: 59756 kB RssFile: 39028 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3266667', 'Ngid': '0', 'Pid': '3266667', 'PPid': '3266666', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3266667', 'NSpid': '3266667', 'NSpgid': '3262611', 'NSsid': '3262611', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98784 kB', 'VmRSS': '98784 kB', 'RssAnon': '59756 kB', 'RssFile': '39028 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '3266667', '1106928', '0', '1106928', '865676', '98784', b'', 'marlene', '2720475') 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 (22021881) 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 (2720475 ) ) 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 (22021881) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349794753, 'portfolio_id': 22021881}, {'photo_id': 1349794746, 'portfolio_id': 22021881}, {'photo_id': 1349794733, 'portfolio_id': 22021881}, {'photo_id': 1349794683, 'portfolio_id': 22021881}, {'photo_id': 1349794649, 'portfolio_id': 22021881}, {'photo_id': 1349794645, 'portfolio_id': 22021881}, {'photo_id': 1349794641, 'portfolio_id': 22021881}, {'photo_id': 1349794637, 'portfolio_id': 22021881}, {'photo_id': 1349794625, 'portfolio_id': 22021881}, {'photo_id': 1349794574, 'portfolio_id': 22021881}, {'photo_id': 1349794570, 'portfolio_id': 22021881}, {'photo_id': 1349794565, 'portfolio_id': 22021881}, {'photo_id': 1349794560, 'portfolio_id': 22021881}, {'photo_id': 1349794549, 'portfolio_id': 22021881}, {'photo_id': 1349794507, 'portfolio_id': 22021881}, {'photo_id': 1349794505, 'portfolio_id': 22021881}, {'photo_id': 1349794501, 'portfolio_id': 22021881}, {'photo_id': 1349794497, 'portfolio_id': 22021881}, {'photo_id': 1349794360, 'portfolio_id': 22021881}, {'photo_id': 1349794358, 'portfolio_id': 22021881}, {'photo_id': 1349794343, 'portfolio_id': 22021881}, {'photo_id': 1349794299, 'portfolio_id': 22021881}, {'photo_id': 1349794294, 'portfolio_id': 22021881}, {'photo_id': 1349794287, 'portfolio_id': 22021881}, {'photo_id': 1349794217, 'portfolio_id': 22021881}, {'photo_id': 1349794209, 'portfolio_id': 22021881}, {'photo_id': 1349794205, 'portfolio_id': 22021881}, {'photo_id': 1349794199, 'portfolio_id': 22021881}, {'photo_id': 1349794155, 'portfolio_id': 22021881}, {'photo_id': 1349794148, 'portfolio_id': 22021881}, {'photo_id': 1349794143, 'portfolio_id': 22021881}, {'photo_id': 1349794138, 'portfolio_id': 22021881}, {'photo_id': 1349794134, 'portfolio_id': 22021881}] map_portfolio_id_photo_id: {22021881: [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549, 1349794507, 1349794505, 1349794501, 1349794497, 1349794360, 1349794358, 1349794343, 1349794299, 1349794294, 1349794287, 1349794217, 1349794209, 1349794205, 1349794199, 1349794155, 1349794148, 1349794143, 1349794138, 1349794134]} ##### 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.014177799224853516 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Apr 3 11:52:56 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 (22021881) 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 : 22021881 get user id for portfolio 22021881 get sub ptf for main ptf 22021881, type 3726 and hashtags ['Carton_gris', 'environnement', 'Teint_Dans_La_Masse', 'mal_croppe', 'autre_refus', 'metal', 'papier', 'flou', 'Carton_brun', 'cartonnette', 'plastique', 'kraft'] 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`=22021881 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','Teint_Dans_La_Masse','mal_croppe','autre_refus','metal','papier','flou','Carton_brun','cartonnette','plastique','kraft')) 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`=22021881 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','Teint_Dans_La_Masse','mal_croppe','autre_refus','metal','papier','flou','Carton_brun','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22021881, 'sub_port_id': 22021908, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516009, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'Carton_gris': {'main_port_id': 22021881, 'sub_port_id': 22021909, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516010, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'autre_refus': {'main_port_id': 22021881, 'sub_port_id': 22021910, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516011, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'Carton_brun': {'main_port_id': 22021881, 'sub_port_id': 22021911, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516012, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'flou': {'main_port_id': 22021881, 'sub_port_id': 22021912, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516013, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'cartonnette': {'main_port_id': 22021881, 'sub_port_id': 22021913, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516014, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'mal_croppe': {'main_port_id': 22021881, 'sub_port_id': 22021914, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516015, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'plastique': {'main_port_id': 22021881, 'sub_port_id': 22021915, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516016, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'kraft': {'main_port_id': 22021881, 'sub_port_id': 22021916, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516017, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'papier': {'main_port_id': 22021881, 'sub_port_id': 22021917, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516018, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 22021881, 'sub_port_id': 22021918, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516019, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}, 'environnement': {'main_port_id': 22021881, 'sub_port_id': 22021919, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516020, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22021908 , 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=22021881 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 (22021908) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021909 , 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=22021881 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 (22021909) result : ((1349794543,), (1349794544,), (1349794672,), (1349794673,), (1349794734,), (1349794735,), (1349794736,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021910 , 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=22021881 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 (22021910) result : ((1349794541,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021911 , 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=22021881 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 (22021911) result : ((1349794550,), (1349794551,), (1349794552,), (1349794675,), (1349794740,), (1349794741,), (1349794742,), (1349794743,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021912 , 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=22021881 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 (22021912) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021913 , 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=22021881 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 (22021913) result : ((1349794545,), (1349794674,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021914 , 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=22021881 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 (22021914) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021915 , 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=22021881 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 (22021915) result : ((1349794555,), (1349794556,), (1349794557,), (1349794747,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021916 , 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=22021881 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 (22021916) result : ((1349794749,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021917 , 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=22021881 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 (22021917) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021918 , 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=22021881 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 (22021918) result : ((1349794537,), (1349794538,), (1349794539,), (1349794651,), (1349794701,), (1349794707,), (1349794711,), (1349794715,), (1349794720,), (1349794724,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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 22021919 , 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=22021881 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 (22021919) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22021881) result : ((1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) 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`=22021881 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','Teint_Dans_La_Masse','mal_croppe','autre_refus','metal','papier','flou','Carton_brun','cartonnette','plastique','kraft')) 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`=22021881 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','Teint_Dans_La_Masse','mal_croppe','autre_refus','metal','papier','flou','Carton_brun','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22021881, 'sub_port_id': 22021920, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516021, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'Carton_gris': {'main_port_id': 22021881, 'sub_port_id': 22021921, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516022, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'autre_refus': {'main_port_id': 22021881, 'sub_port_id': 22021922, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516023, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'Carton_brun': {'main_port_id': 22021881, 'sub_port_id': 22021923, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516024, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'flou': {'main_port_id': 22021881, 'sub_port_id': 22021924, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516025, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'cartonnette': {'main_port_id': 22021881, 'sub_port_id': 22021925, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516026, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'mal_croppe': {'main_port_id': 22021881, 'sub_port_id': 22021926, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516027, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'plastique': {'main_port_id': 22021881, 'sub_port_id': 22021927, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516028, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'kraft': {'main_port_id': 22021881, 'sub_port_id': 22021928, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516029, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'papier': {'main_port_id': 22021881, 'sub_port_id': 22021929, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516030, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22021881, 'sub_port_id': 22021930, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516031, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}, 'environnement': {'main_port_id': 22021881, 'sub_port_id': 22021931, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14516032, 'last_updated_at': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 11, 50, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 11, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021908 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021921,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021909 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021922,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021923,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021912 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021925,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021913 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021926,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021914 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021927,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021915 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021928,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021916 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021929,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021917 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021930,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021918 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22021931,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22021919 lien utilise dans velours : https://www.fotonower.com/velours/22021920,22021921,22021922,22021923,22021924,22021925,22021926,22021927,22021928,22021929,22021930,22021931?tags=metal,Carton_gris,autre_refus,Carton_brun,flou,cartonnette,mal_croppe,plastique,kraft,papier,Teint_Dans_La_Masse,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22021881]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549] map_info['map_portfolio_photo'] : {22021881: [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549, 1349794507, 1349794505, 1349794501, 1349794497, 1349794360, 1349794358, 1349794343, 1349794299, 1349794294, 1349794287, 1349794217, 1349794209, 1349794205, 1349794199, 1349794155, 1349794148, 1349794143, 1349794138, 1349794134]} final : False mtd_id 4302 list_pids : [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549] Looping around the photos to save general results len do output : 1 /22021881. 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, '2720475') ('4302', '22021881', '1349794753', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794746', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794733', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794683', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794649', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794645', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794641', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794637', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794625', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794574', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794570', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794565', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794560', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794549', None, None, None, None, None, '2720475') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22021881', "{'metal': 22021908, 'Carton_gris': 22021909, 'autre_refus': 22021910, 'Carton_brun': 22021911, 'flou': 22021912, 'cartonnette': 22021913, 'mal_croppe': 22021914, 'plastique': 22021915, 'kraft': 22021916, 'papier': 22021917, 'Teint_Dans_La_Masse': 22021918, 'environnement': 22021919}", None, None, None, None, '2720475'), ('4302', '22021881', '1349794753', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794746', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794733', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794683', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794649', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794645', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794641', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794637', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794625', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794574', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794570', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794565', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794560', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794549', None, None, None, None, None, '2720475')] time used for this insertion : 0.014735698699951172 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.433901309967041 time spend to save output : 0.015107154846191406 total time spend for step 1 : 1.4490084648132324 step2:final Thu Apr 3 11:52: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 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 (22021881) 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 22021881 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349794155,1349794148,1349794143,1349794138,1349794134,1349794217,1349794209,1349794205,1349794199,1349794360,1349794358,1349794343,1349794299,1349794294,1349794287,1349794507,1349794505,1349794501,1349794497,1349794574,1349794570,1349794565,1349794560,1349794549,1349794649,1349794645,1349794625,1349794641,1349794637,1349794753,1349794746,1349794733,1349794683); 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([22021881]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} new output for save of step final : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549] map_info['map_portfolio_photo'] : {22021881: [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549, 1349794507, 1349794505, 1349794501, 1349794497, 1349794360, 1349794358, 1349794343, 1349794299, 1349794294, 1349794287, 1349794217, 1349794209, 1349794205, 1349794199, 1349794155, 1349794148, 1349794143, 1349794138, 1349794134]} final : False mtd_id 4302 list_pids : [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549] Looping around the photos to save general results len do output : 14 /1349794753.Didn't retrieve data . /1349794746.Didn't retrieve data . /1349794733.Didn't retrieve data . /1349794683.Didn't retrieve data . /1349794649.Didn't retrieve data . /1349794645.Didn't retrieve data . /1349794641.Didn't retrieve data . /1349794637.Didn't retrieve data . /1349794625.Didn't retrieve data . /1349794574.Didn't retrieve data . /1349794570.Didn't retrieve data . /1349794565.Didn't retrieve data . /1349794560.Didn't retrieve data . /1349794549.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, '2720475') ('4302', '22021881', '1349794753', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794746', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794733', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794683', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794649', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794645', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794641', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794637', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794625', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794574', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794570', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794565', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794560', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794549', None, None, None, None, None, '2720475') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22021881', '1349794753', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794746', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794733', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794683', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794649', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794645', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794641', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794637', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794625', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794574', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794570', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794565', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794560', '0.04438399665007704', None, None, None, None, '2720475'), ('4302', '22021881', '1349794549', '0.04438399665007704', None, None, None, None, '2720475')] time used for this insertion : 0.015070199966430664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06422257423400879 time spend to save output : 0.015672683715820312 total time spend for step 2 : 0.0798952579498291 step3:velours_tree Thu Apr 3 11:52: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 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 : {22021881: [{'metal': 22021908, 'Carton_gris': 22021909, 'autre_refus': 22021910, 'Carton_brun': 22021911, 'flou': 22021912, 'cartonnette': 22021913, 'mal_croppe': 22021914, 'plastique': 22021915, 'kraft': 22021916, 'papier': 22021917, 'Teint_Dans_La_Masse': 22021918, 'environnement': 22021919}]} input_args_next_step : {22021881: ()} output_args : {22021881: [{'metal': 22021908, 'Carton_gris': 22021909, 'autre_refus': 22021910, 'Carton_brun': 22021911, 'flou': 22021912, 'cartonnette': 22021913, 'mal_croppe': 22021914, 'plastique': 22021915, 'kraft': 22021916, 'papier': 22021917, 'Teint_Dans_La_Masse': 22021918, 'environnement': 22021919}]} args : 22021881 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 : ({'metal': 22021908, 'Carton_gris': 22021909, 'autre_refus': 22021910, 'Carton_brun': 22021911, 'flou': 22021912, 'cartonnette': 22021913, 'mal_croppe': 22021914, 'plastique': 22021915, 'kraft': 22021916, 'papier': 22021917, 'Teint_Dans_La_Masse': 22021918, 'environnement': 22021919},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22021881) 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([22021881]) 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.32152676582336426 time spend to save output : 6.318092346191406e-05 total time spend for step 3 : 0.32158994674682617 step4:send_mail_cod Thu Apr 3 11:52: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 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 : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} input_args_next_step : {1349794753: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794753 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794746 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794733 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794683 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794649 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794645 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794641 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794637 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794625 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794574 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794570 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794565 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794560 depend.output_id : 0 input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ()} output_args : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',)} args : 1349794549 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 : {22021881: [{'metal': 22021908, 'Carton_gris': 22021909, 'autre_refus': 22021910, 'Carton_brun': 22021911, 'flou': 22021912, 'cartonnette': 22021913, 'mal_croppe': 22021914, 'plastique': 22021915, 'kraft': 22021916, 'papier': 22021917, 'Teint_Dans_La_Masse': 22021918, 'environnement': 22021919}]} input_args_next_step : {1349794753: ('0.04438399665007704',), 1349794746: ('0.04438399665007704',), 1349794733: ('0.04438399665007704',), 1349794683: ('0.04438399665007704',), 1349794649: ('0.04438399665007704',), 1349794645: ('0.04438399665007704',), 1349794641: ('0.04438399665007704',), 1349794637: ('0.04438399665007704',), 1349794625: ('0.04438399665007704',), 1349794574: ('0.04438399665007704',), 1349794570: ('0.04438399665007704',), 1349794565: ('0.04438399665007704',), 1349794560: ('0.04438399665007704',), 1349794549: ('0.04438399665007704',), 22021881: ()} output_args : {22021881: [{'metal': 22021908, 'Carton_gris': 22021909, 'autre_refus': 22021910, 'Carton_brun': 22021911, 'flou': 22021912, 'cartonnette': 22021913, 'mal_croppe': 22021914, 'plastique': 22021915, 'kraft': 22021916, 'papier': 22021917, 'Teint_Dans_La_Masse': 22021918, 'environnement': 22021919}]} args : 22021881 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.04438399665007704',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22021881) 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 (1349794753,1349794746,1349794733,1349794683,1349794649,1349794645,1349794641,1349794637,1349794625,1349794574,1349794570,1349794565,1349794560,1349794549) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349794549 begin to download photo : 1349794570 begin to download photo : 1349794637 begin to download photo : 1349794649 begin to download photo : 1349794746 download finish for photo 1349794746 begin to download photo : 1349794753 download finish for photo 1349794549 begin to download photo : 1349794560 download finish for photo 1349794570 begin to download photo : 1349794574 download finish for photo 1349794649 begin to download photo : 1349794683 download finish for photo 1349794637 begin to download photo : 1349794641 download finish for photo 1349794753 download finish for photo 1349794574 begin to download photo : 1349794625 download finish for photo 1349794560 begin to download photo : 1349794565 download finish for photo 1349794641 begin to download photo : 1349794645 download finish for photo 1349794683 begin to download photo : 1349794733 download finish for photo 1349794625 download finish for photo 1349794645 download finish for photo 1349794565 download finish for photo 1349794733 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220219081743673979/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22021881_03-04-2025_11_52_59.pdf 22021908 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=22021908 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220219081743673979 22021910 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=22021910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349794541: '1743673767_643328_1349794148_deb7f94e87f39b3676ce0d3785669c54_rle_crop_3746104699_0.png'} change filename to text .imagette220219101743673979/ imagette220219101743673979/1743673767_643328_1349794148_deb7f94e87f39b3676ce0d3785669c54_rle_crop_3746104699_0.png.png imagette220219121743673979/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7bd6a85c6923cb7d66ed955cf80c07f7_24804391.png imagette220219101743673979 22021912 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=22021912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220219121743673979 22021913 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=22021913 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349794545: '1743673767_643328_1349794155_0ec0df8d7e512e8e943929c6f01dafa7_rle_crop_3746104693_0.png', 1349794674: '1743673891_2198560_1349794501_d4e070b1b8236bfa3f9f3366695af23b_rle_crop_3746106032_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b2e3f7fc18add3939cc8b25832479af4_7661088.png change filename to text .imagette220219131743673979/ imagette220219131743673979/1743673767_643328_1349794155_0ec0df8d7e512e8e943929c6f01dafa7_rle_crop_3746104693_0.png.png imagette220219131743673979/1743673891_2198560_1349794501_d4e070b1b8236bfa3f9f3366695af23b_rle_crop_3746106032_0.png.png imagette220219141743673979/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3664cc50f19c21f998a24987f66f4715_91119660.png imagette220219131743673979 22021914 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=22021914 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220219141743673979 22021915 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=22021915 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349794555: '1743673767_643328_1349794217_78373798f92c7a5e5770b09f04b9acc2_rle_crop_3746104684_0.png', 1349794556: '1743673767_643328_1349794155_0ec0df8d7e512e8e943929c6f01dafa7_rle_crop_3746104694_0.png', 1349794557: '1743673767_643328_1349794143_5df5e24110e799d476129faafc94624d_rle_crop_3746104722_0.png', 1349794747: '1743673887_646140_1349794299_9bc65b39243d46234b63f8c7b5ba812a_rle_crop_3746106094_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cbfc17bf903ca4be1c4900edef3ad882_36964503.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d1f150737a6069a82ad085db10bbb451_40775719.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cf2e865446a7dd382cb302734d2274ee_56089753.png change filename to text .imagette220219151743673979/ imagette220219151743673979/1743673767_643328_1349794217_78373798f92c7a5e5770b09f04b9acc2_rle_crop_3746104684_0.png.png imagette220219151743673979/1743673887_646140_1349794299_9bc65b39243d46234b63f8c7b5ba812a_rle_crop_3746106094_0.png.png imagette220219151743673979/1743673767_643328_1349794155_0ec0df8d7e512e8e943929c6f01dafa7_rle_crop_3746104694_0.png.png imagette220219151743673979/1743673767_643328_1349794143_5df5e24110e799d476129faafc94624d_rle_crop_3746104722_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9a5745261bfc7d276dd4ccd4d10acdaf_80068107.png imagette220219151743673979 22021916 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=22021916 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349794749: '1743673887_646140_1349794507_8c6091e9608304609bd7b057e96f4177_rle_crop_3746106026_0.png'} change filename to text .imagette220219161743673979/ imagette220219161743673979/1743673887_646140_1349794507_8c6091e9608304609bd7b057e96f4177_rle_crop_3746106026_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/358e0d84c3c9da0811d34cf4707035fe_81970392.png imagette220219161743673979 22021909 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=22021909 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349794543: '1743673767_643328_1349794155_0ec0df8d7e512e8e943929c6f01dafa7_rle_crop_3746104695_0.png', 1349794544: '1743673767_643328_1349794148_deb7f94e87f39b3676ce0d3785669c54_rle_crop_3746104709_0.png', 1349794672: '1743673891_2198560_1349794505_ad13d0c6b148058774a718f5439a39a6_rle_crop_3746106004_0.png', 1349794673: '1743673891_2198560_1349794497_265a56726ae75b034f14106ee367a96f_rle_crop_3746106047_0.png', 1349794734: '1743673887_646140_1349794507_8c6091e9608304609bd7b057e96f4177_rle_crop_3746106024_0.png', 1349794735: '1743673887_646140_1349794358_a4d39eb827788e2151965c7b5380ce03_rle_crop_3746106070_0.png', 1349794736: '1743673887_646140_1349794358_a4d39eb827788e2151965c7b5380ce03_rle_crop_3746106059_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5e39366b730fcf7e0219f03bee4339b0_43716217.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d196d8f1c50e81877eba94be47905b92_80075564.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/192269ea9c6c437daf3217526225e2ab_74276619.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7c1f8808e94ad7d952076eaedfe2dcee_8763357.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8c22e0d538a7e7d5ebc78b03430cf889_38031760.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/37b37969c31eaf4b3273e82c5a935877_87214212.png change filename to text .imagette220219091743673979/ imagette220219091743673979/1743673887_646140_1349794358_a4d39eb827788e2151965c7b5380ce03_rle_crop_3746106070_0.png.png imagette220219091743673979/1743673887_646140_1349794358_a4d39eb827788e2151965c7b5380ce03_rle_crop_3746106059_0.png.png imagette220219091743673979/1743673767_643328_1349794155_0ec0df8d7e512e8e943929c6f01dafa7_rle_crop_3746104695_0.png.png imagette220219091743673979/1743673891_2198560_1349794505_ad13d0c6b148058774a718f5439a39a6_rle_crop_3746106004_0.png.png imagette220219091743673979/1743673887_646140_1349794507_8c6091e9608304609bd7b057e96f4177_rle_crop_3746106024_0.png.png imagette220219091743673979/1743673891_2198560_1349794497_265a56726ae75b034f14106ee367a96f_rle_crop_3746106047_0.png.png imagette220219091743673979/1743673767_643328_1349794148_deb7f94e87f39b3676ce0d3785669c54_rle_crop_3746104709_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/08ab9df977c74cf7aed92d0875951714_42852632.png imagette220219091743673979 22021911 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=22021911 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349794550: '1743673767_643328_1349794148_deb7f94e87f39b3676ce0d3785669c54_rle_crop_3746104701_0.png', 1349794551: '1743673767_643328_1349794143_5df5e24110e799d476129faafc94624d_rle_crop_3746104725_0.png', 1349794552: '1743673767_643328_1349794138_9f887d2afb9302acb7aecf289976f95a_rle_crop_3746104737_0.png', 1349794675: '1743673891_2198560_1349794505_ad13d0c6b148058774a718f5439a39a6_rle_crop_3746106007_0.png', 1349794740: '1743673887_646140_1349794299_9bc65b39243d46234b63f8c7b5ba812a_rle_crop_3746106099_0.png', 1349794741: '1743673887_646140_1349794294_6d056d0f9a5e9fe9f2b659835583292c_rle_crop_3746106181_0.png', 1349794742: '1743673887_646140_1349794294_6d056d0f9a5e9fe9f2b659835583292c_rle_crop_3746106179_0.png', 1349794743: '1743673887_646140_1349794287_220281bf1a65120b47e1bbac86616b13_rle_crop_3746106193_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/665c793751b94dc2bfff08d915f1c188_91357374.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c6a3e9f70ea8cdae723922b95ecc1ece_49884840.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/100a698f90080a411c275826c8e76059_82297105.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/02baadf0bc85535ed3b0e75320086568_50533735.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3a71110586ae7cfc61985ea326e58241_81584155.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/eec74892594a9cd1c11b5eab7af82ebc_21854976.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5edf02ee439f701f17ffb910c7c621c1_58454745.png change filename to text .imagette220219111743673979/ imagette220219111743673979/1743673767_643328_1349794143_5df5e24110e799d476129faafc94624d_rle_crop_3746104725_0.png.png imagette220219111743673979/1743673767_643328_1349794148_deb7f94e87f39b3676ce0d3785669c54_rle_crop_3746104701_0.png.png imagette220219111743673979/1743673891_2198560_1349794505_ad13d0c6b148058774a718f5439a39a6_rle_crop_3746106007_0.png.png imagette220219111743673979/1743673887_646140_1349794287_220281bf1a65120b47e1bbac86616b13_rle_crop_3746106193_0.png.png imagette220219111743673979/1743673887_646140_1349794294_6d056d0f9a5e9fe9f2b659835583292c_rle_crop_3746106181_0.png.png imagette220219111743673979/1743673767_643328_1349794138_9f887d2afb9302acb7aecf289976f95a_rle_crop_3746104737_0.png.png imagette220219111743673979/1743673887_646140_1349794294_6d056d0f9a5e9fe9f2b659835583292c_rle_crop_3746106179_0.png.png imagette220219111743673979/1743673887_646140_1349794299_9bc65b39243d46234b63f8c7b5ba812a_rle_crop_3746106099_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/57714b41f98879541ad88b345af47352_14764496.png imagette220219111743673979 22021918 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=22021918 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349794537: '1743673767_643328_1349794148_deb7f94e87f39b3676ce0d3785669c54_rle_crop_3746104707_0.png', 1349794538: '1743673767_643328_1349794138_9f887d2afb9302acb7aecf289976f95a_rle_crop_3746104740_0.png', 1349794539: '1743673767_643328_1349794134_f1bf821614a9f65feebe6ae734a94150_rle_crop_3746104753_0.png', 1349794651: '1743673873_2198317_1349794360_30477b07af4fb75f53ea3e0179e9b838_rle_crop_3746105492_0.png', 1349794701: '1743673887_646140_1349794358_a4d39eb827788e2151965c7b5380ce03_rle_crop_3746106073_0.png', 1349794707: '1743673887_646140_1349794358_a4d39eb827788e2151965c7b5380ce03_rle_crop_3746106062_0.png', 1349794711: '1743673887_646140_1349794343_fdcee607acc5211038fd22419c58f443_rle_crop_3746106090_0.png', 1349794715: '1743673887_646140_1349794299_9bc65b39243d46234b63f8c7b5ba812a_rle_crop_3746106107_0.png', 1349794720: '1743673887_646140_1349794294_6d056d0f9a5e9fe9f2b659835583292c_rle_crop_3746106177_0.png', 1349794724: '1743673887_646140_1349794287_220281bf1a65120b47e1bbac86616b13_rle_crop_3746106196_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8565c48d77b11d721304e263eacde040_37906379.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ab389f90e87ff83661f62a3adeb9a750_79374582.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/34f3e6133401d078d93aa8e643d1ea46_8230278.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/62552db41442e06b34f84457224c5d87_47315376.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/43649433c65ffde43d868fbaf5151f8a_81047129.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3756460c1f5fae167294d4df17857fa7_66782118.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/69a6f37c9d73150bb969feacec8729ac_90572255.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/71b3829966c1c232382941026c052f85_72250216.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f762ba2ccb43073a5854e7f4ce71c65b_66009505.png change filename to text .imagette220219181743673980/ imagette220219181743673980/1743673887_646140_1349794299_9bc65b39243d46234b63f8c7b5ba812a_rle_crop_3746106107_0.png.png imagette220219181743673980/1743673887_646140_1349794287_220281bf1a65120b47e1bbac86616b13_rle_crop_3746106196_0.png.png imagette220219181743673980/1743673887_646140_1349794294_6d056d0f9a5e9fe9f2b659835583292c_rle_crop_3746106177_0.png.png imagette220219181743673980/1743673873_2198317_1349794360_30477b07af4fb75f53ea3e0179e9b838_rle_crop_3746105492_0.png.png imagette220219181743673980/1743673767_643328_1349794134_f1bf821614a9f65feebe6ae734a94150_rle_crop_3746104753_0.png.png imagette220219181743673980/1743673887_646140_1349794358_a4d39eb827788e2151965c7b5380ce03_rle_crop_3746106062_0.png.png imagette220219181743673980/1743673887_646140_1349794358_a4d39eb827788e2151965c7b5380ce03_rle_crop_3746106073_0.png.png imagette220219181743673980/1743673767_643328_1349794148_deb7f94e87f39b3676ce0d3785669c54_rle_crop_3746104707_0.png.png imagette220219181743673980/1743673767_643328_1349794138_9f887d2afb9302acb7aecf289976f95a_rle_crop_3746104740_0.png.png imagette220219181743673980/1743673887_646140_1349794343_fdcee607acc5211038fd22419c58f443_rle_crop_3746106090_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9c0458531a8854a6200aee6ac70f4286_28745520.png imagette220219181743673980 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22021881 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22021920,22021921,22021922,22021923,22021924,22021925,22021926,22021927,22021928,22021929,22021930,22021931?tags=metal,Carton_gris,autre_refus,Carton_brun,flou,cartonnette,mal_croppe,plastique,kraft,papier,Teint_Dans_La_Masse,environnement your option no_mail is active, we will not send the real mail to your client args[1349794753] : ('0.04438399665007704',) no score found for photo 1349794753 We are sending mail with results at report@fotonower.com args[1349794746] : ('0.04438399665007704',) no score found for photo 1349794746 We are sending mail with results at report@fotonower.com args[1349794733] : ('0.04438399665007704',) no score found for photo 1349794733 We are sending mail with results at report@fotonower.com args[1349794683] : ('0.04438399665007704',) no score found for photo 1349794683 We are sending mail with results at report@fotonower.com args[1349794649] : ('0.04438399665007704',) no score found for photo 1349794649 We are sending mail with results at report@fotonower.com args[1349794645] : ('0.04438399665007704',) no score found for photo 1349794645 We are sending mail with results at report@fotonower.com args[1349794641] : ('0.04438399665007704',) no score found for photo 1349794641 We are sending mail with results at report@fotonower.com args[1349794637] : ('0.04438399665007704',) no score found for photo 1349794637 We are sending mail with results at report@fotonower.com args[1349794625] : ('0.04438399665007704',) no score found for photo 1349794625 We are sending mail with results at report@fotonower.com args[1349794574] : ('0.04438399665007704',) no score found for photo 1349794574 We are sending mail with results at report@fotonower.com args[1349794570] : ('0.04438399665007704',) no score found for photo 1349794570 We are sending mail with results at report@fotonower.com args[1349794565] : ('0.04438399665007704',) no score found for photo 1349794565 We are sending mail with results at report@fotonower.com args[1349794560] : ('0.04438399665007704',) no score found for photo 1349794560 We are sending mail with results at report@fotonower.com args[1349794549] : ('0.04438399665007704',) no score found for photo 1349794549 We are sending mail with results at report@fotonower.com refus_total : 0.04438399665007704 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=22021881 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_P22021881_03-04-2025_11_52_59.pdf results_Auto_P22021881_03-04-2025_11_52_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021881_03-04-2025_11_52_59.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','22021881','results_Auto_P22021881_03-04-2025_11_52_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021881_03-04-2025_11_52_59.pdf','pdf','','0.22','0.04438399665007704') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22021881]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549] map_info['map_portfolio_photo'] : {22021881: [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549, 1349794507, 1349794505, 1349794501, 1349794497, 1349794360, 1349794358, 1349794343, 1349794299, 1349794294, 1349794287, 1349794217, 1349794209, 1349794205, 1349794199, 1349794155, 1349794148, 1349794143, 1349794138, 1349794134]} final : False mtd_id 4302 list_pids : [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549] 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, '2720475') ('4302', '22021881', '1349794753', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794746', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794733', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794683', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794649', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794645', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794641', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794637', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794625', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794574', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794570', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794565', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794560', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794549', None, None, None, None, None, '2720475') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22021881', '1349794753', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794746', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794733', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794683', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794649', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794645', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794641', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794637', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794625', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794574', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794570', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794565', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794560', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794549', None, None, None, None, None, '2720475')] time used for this insertion : 0.014095783233642578 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.648135185241699 time spend to save output : 0.014360904693603516 total time spend for step 4 : 3.6624960899353027 step5:split_time_score Thu Apr 3 11:53:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22021881'] 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 : [('22021881',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22021881) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349794746: {'path': 'temp/1743673978_3266667_1349794746_73d1d410e7f4e858f6d1c4afc63b0978.jpg', 'extension': 'jpg'}, 1349794753: {'path': 'temp/1743673978_3266667_1349794753_e1a63cfeb7ff5e932725d9dab9fa2a80.jpg', 'extension': 'jpg'}, 1349794570: {'path': 'temp/1743673978_3266667_1349794570_fa2597667331d7a96c85182e3884047d.jpg', 'extension': 'jpg'}, 1349794574: {'path': 'temp/1743673978_3266667_1349794574_3b206098a53cd843eb37d8fab31cea71.jpg', 'extension': 'jpg'}, 1349794625: {'path': 'temp/1743673978_3266667_1349794625_039bed4a533a7d13efb67e946fd9d0a3.jpg', 'extension': 'jpg'}, 1349794637: {'path': 'temp/1743673978_3266667_1349794637_5873ea5bb95bc3b5eb9d5fe4170b3b4b.jpg', 'extension': 'jpg'}, 1349794641: {'path': 'temp/1743673978_3266667_1349794641_d6c2bbe7d35aef34f75cce127e80b9fb.jpg', 'extension': 'jpg'}, 1349794645: {'path': 'temp/1743673978_3266667_1349794645_15fe28eb878302cc70d6e7c8f0e8cffa.jpg', 'extension': 'jpg'}, 1349794549: {'path': 'temp/1743673978_3266667_1349794549_6cc176bfc514ff5eb528d03cad63ccee.jpg', 'extension': 'jpg'}, 1349794560: {'path': 'temp/1743673978_3266667_1349794560_a17f9ef3b2c2357bf150ad47681b8b54.jpg', 'extension': 'jpg'}, 1349794565: {'path': 'temp/1743673978_3266667_1349794565_e2b821db71133e3660d80c668f5d1c53.jpg', 'extension': 'jpg'}, 1349794649: {'path': 'temp/1743673978_3266667_1349794649_4b11d342b1a536ec80e00f28458f75de.jpg', 'extension': 'jpg'}, 1349794683: {'path': 'temp/1743673978_3266667_1349794683_530296e6401d2c223a9278bafd6cab77.jpg', 'extension': 'jpg'}, 1349794733: {'path': 'temp/1743673978_3266667_1349794733_ce17d7575dd07eb7f0fb1ba9ca55ccde.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 = 22021881; (('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 = 22021881 group by h (('11', 33),) 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=22021881 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 (22021881) 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 (22021881) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03042025 22021881 Nombre de photos uploadées : 33 / 23040 (0%) 03042025 22021881 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 03042025 22021881 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1349794155, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0ec0df8d7e512e8e943929c6f01dafa7.jpg', 'username': None, 'uploaded_at': 1743673567, 'text': 'image_03042025_11_45_03_009132m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349794148, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/deb7f94e87f39b3676ce0d3785669c54.jpg', 'username': None, 'uploaded_at': 1743673567, 'text': 'image_03042025_11_45_13_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349794143, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5df5e24110e799d476129faafc94624d.jpg', 'username': None, 'uploaded_at': 1743673567, 'text': 'image_03042025_11_45_24_010142m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349794138, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9f887d2afb9302acb7aecf289976f95a.jpg', 'username': None, 'uploaded_at': 1743673567, 'text': 'image_03042025_11_45_34_010143m0.jpg 4e-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 4.291534423828125e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012078285217285156 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22021881, '2025-04-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1712161,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021598100662231445 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= 1712161 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1712161, 'dashboard_run_id': 1721536, 'mtr_portfolio_id': 22019963, 'dashboard_result_id': 9846310, '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_P22019963_03-04-2025_11_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22020013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020024, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1721536, 'mtr_portfolio_id': 22020684, 'dashboard_result_id': 9846311, '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_P22020684_03-04-2025_11_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22020754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020772, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1721536, 'mtr_portfolio_id': 22021391, 'dashboard_result_id': 9846312, '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_P22021391_03-04-2025_11_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22021410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22021411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22021412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22021413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22021414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22021415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22021416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22021417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22021418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22021419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22021420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22021421, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1721536, 'mtr_portfolio_id': 22021881, 'dashboard_result_id': 9846313, '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_P22021881_03-04-2025_11_50_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22021908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22021909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22021910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22021911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22021912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22021913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22021914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22021915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22021916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22021917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22021918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22021919, '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 = 22019963 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': 2720329, 'mtr_portfolio_id': 22019963, 'created_at': datetime.datetime(2025, 4, 3, 11, 19), 'result': '0.052572606903684815', 'result_long': None, 'result_double': None}] Qualite : 0.052572606903684815 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22019963 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22019963_03-04-2025_11_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22019963 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_P22019963_03-04-2025_11_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22020013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020024, 'pht': 3726}}" where mtr_portfolio_id = 22019963 and dashboard_run_id = 1721536 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`=22019963 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9846310, 0.052572606903684815, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22019963_03-04-2025_11_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22020013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020024, '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 = 22020684 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': 2720375, 'mtr_portfolio_id': 22020684, 'created_at': datetime.datetime(2025, 4, 3, 11, 33, 1), 'result': '0.05617433301188386', 'result_long': None, 'result_double': None}] Qualite : 0.05617433301188386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22020684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22020684_03-04-2025_11_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22020684 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_P22020684_03-04-2025_11_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22020754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020772, 'pht': 3726}}" where mtr_portfolio_id = 22020684 and dashboard_run_id = 1721536 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`=22020684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9846311, 0.05617433301188386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22020684_03-04-2025_11_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22020749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22020750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22020751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22020752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22020753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22020754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22020755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22020756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22020758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22020764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22020771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22020772, '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 = 22021391 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': 2720434, 'mtr_portfolio_id': 22021391, 'created_at': datetime.datetime(2025, 4, 3, 11, 49, 2), 'result': '0.05990675342103159', 'result_long': None, 'result_double': None}] Qualite : 0.05990675342103159 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22021391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021391_03-04-2025_11_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22021391 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_P22021391_03-04-2025_11_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22021410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22021411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22021412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22021413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22021414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22021415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22021416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22021417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22021418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22021419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22021420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22021421, 'pht': 3726}}" where mtr_portfolio_id = 22021391 and dashboard_run_id = 1721536 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`=22021391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9846312, 0.05990675342103159, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021391_03-04-2025_11_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22021410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22021411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22021412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22021413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22021414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22021415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22021416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22021417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22021418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22021419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22021420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22021421, '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 = 22021881 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': 2720475, 'mtr_portfolio_id': 22021881, 'created_at': datetime.datetime(2025, 4, 3, 11, 52, 58), 'result': '0.04438399665007704', 'result_long': None, 'result_double': None}] Qualite : 0.04438399665007704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22021881 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021881_03-04-2025_11_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22021881 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_P22021881_03-04-2025_11_52_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22021908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22021909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22021910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22021911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22021912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22021913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22021914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22021915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22021916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22021917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22021918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22021919, 'pht': 3726}}" where mtr_portfolio_id = 22021881 and dashboard_run_id = 1721536 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`=22021881 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9846313, 0.04438399665007704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22021881_03-04-2025_11_52_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22021908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22021909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22021910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22021911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22021912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22021913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22021914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22021915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22021916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22021917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22021918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22021919, '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 (22019963,22020684,22021391,22021881) result : ((1349785051,), (1349785130,), (1349785200,), (1349785894,), (1349785955,), (1349786013,), (1349786075,), (1349786834,), (1349786903,), (1349786982,), (1349787031,), (1349787091,), (1349787814,), (1349787879,), (1349787944,), (1349788030,), (1349788094,), (1349788354,), (1349788402,), (1349788426,), (1349788458,), (1349788494,), (1349788643,), (1349788685,), (1349788701,), (1349788724,), (1349788974,), (1349789066,), (1349789126,), (1349789199,), (1349789237,), (1349789619,), (1349789652,), (1349789667,), (1349789705,), (1349789714,), (1349790044,), (1349790055,), (1349790072,), (1349790090,), (1349790243,), (1349790257,), (1349790282,), (1349790291,), (1349790300,), (1349790317,), (1349790382,), (1349790385,), (1349790386,), (1349790410,), (1349790497,), (1349790505,), (1349790511,), (1349790516,), (1349790522,), (1349790526,), (1349790542,), (1349790549,), (1349790555,), (1349790561,), (1349790594,), (1349790602,), (1349790608,), (1349790613,), (1349790617,), (1349790621,), (1349790655,), (1349790658,), (1349790667,), (1349790749,), (1349790727,), (1349790734,), (1349790737,), (1349790742,), (1349790744,), (1349790812,), (1349790822,), (1349790825,), (1349790867,), (1349790971,), (1349791003,), (1349791022,), (1349791027,), (1349791048,), (1349791076,), (1349791140,), (1349791145,), (1349791153,), (1349791171,), (1349791182,), (1349791293,), (1349791299,), (1349791309,), (1349791323,), (1349791640,), (1349791671,), (1349791700,), (1349791731,), (1349791756,), (1349791803,), (1349791807,), (1349791818,), (1349791831,), (1349791837,), (1349791840,), (1349791883,), (1349791901,), (1349791907,), (1349791913,), (1349791922,), (1349791997,), (1349792005,), (1349792019,), (1349792022,), (1349792025,), (1349792028,), (1349792054,), (1349792063,), (1349792079,), (1349792083,), (1349792086,), (1349792127,), (1349792225,), (1349792301,), (1349792369,), (1349792423,), (1349792508,), (1349792511,), (1349792515,), (1349792518,), (1349792525,), (1349792602,), (1349792608,), (1349792612,), (1349792622,), (1349792634,), (1349792676,), (1349792682,), (1349792688,), (1349792695,), (1349792699,), (1349792734,), (1349792738,), (1349792746,), (1349792851,), (1349792826,), (1349792833,), (1349792838,), (1349792841,), (1349792847,), (1349792895,), (1349792901,), (1349792907,), (1349792917,), (1349792923,), (1349793039,), (1349793045,), (1349793051,), (1349793057,), (1349793139,), (1349793150,), (1349793153,), (1349793191,), (1349793218,), (1349793232,), (1349793309,), (1349793313,), (1349793318,), (1349793394,), (1349793399,), (1349793402,), (1349793406,), (1349793408,), (1349793410,), (1349793437,), (1349793440,), (1349793449,), (1349793455,), (1349793540,), (1349793553,), (1349793559,), (1349793564,), (1349793568,), (1349793570,), (1349793599,), (1349793604,), (1349793656,), (1349793661,), (1349793666,), (1349793670,), (1349793675,), (1349793689,), (1349793779,), (1349793781,), (1349793784,), (1349793787,), (1349793798,), (1349793807,), (1349793889,), (1349793915,), (1349793926,), (1349793964,), (1349793966,), (1349793969,), (1349793971,), (1349793976,), (1349793985,), (1349794009,), (1349794014,), (1349794019,), (1349794034,), (1349794042,), (1349794047,), (1349794078,), (1349794081,), (1349794084,), (1349794088,), (1349794164,), (1349794134,), (1349794138,), (1349794143,), (1349794148,), (1349794155,), (1349794199,), (1349794205,), (1349794209,), (1349794217,), (1349794287,), (1349794294,), (1349794299,), (1349794343,), (1349794358,), (1349794360,), (1349794497,), (1349794501,), (1349794505,), (1349794507,), (1349794549,), (1349794560,), (1349794565,), (1349794570,), (1349794574,), (1349794625,), (1349794637,), (1349794641,), (1349794645,), (1349794649,), (1349794683,), (1349794733,), (1349794746,), (1349794753,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22021881]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549] map_info['map_portfolio_photo'] : {22021881: [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549, 1349794507, 1349794505, 1349794501, 1349794497, 1349794360, 1349794358, 1349794343, 1349794299, 1349794294, 1349794287, 1349794217, 1349794209, 1349794205, 1349794199, 1349794155, 1349794148, 1349794143, 1349794138, 1349794134]} final : True mtd_id 4302 list_pids : [1349794753, 1349794746, 1349794733, 1349794683, 1349794649, 1349794645, 1349794641, 1349794637, 1349794625, 1349794574, 1349794570, 1349794565, 1349794560, 1349794549] Looping around the photos to save general results len do output : 1 /22021881Didn'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, '2720475') ('4302', '22021881', '1349794753', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794746', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794733', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794683', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794649', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794645', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794641', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794637', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794625', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794574', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794570', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794565', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794560', None, None, None, None, None, '2720475') ('4302', None, None, None, None, None, None, None, '2720475') ('4302', '22021881', '1349794549', None, None, None, None, None, '2720475') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22021881', 'None', None, None, None, None, '2720475'), ('4302', '22021881', '1349794753', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794746', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794733', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794683', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794649', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794645', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794641', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794637', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794625', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794574', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794570', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794565', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794560', None, None, None, None, None, '2720475'), ('4302', '22021881', '1349794549', None, None, None, None, None, '2720475')] time used for this insertion : 0.015328168869018555 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.32761645317077637 time spend to save output : 0.01568436622619629 total time spend for step 5 : 0.34330081939697266 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 (2720475) 2.20user 2.45system 0:08.48elapsed 54%CPU (0avgtext+0avgdata 161096maxresident)k 200inputs+12992outputs (19major+74896minor)pagefaults 0swaps