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 : 4016416 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 (2660500) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2660500) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323564 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2660500'] with mtr_portfolio_ids : ['21323564'] and first list_photo_ids : [] new path : /proc/4016416/ Name: python3 Umask: 0002 State: R (running) Tgid: 4016416 Ngid: 0 Pid: 4016416 PPid: 4016415 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4016416 NSpid: 4016416 NSpgid: 4013148 NSsid: 4013148 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98868 kB VmRSS: 98868 kB RssAnon: 59804 kB RssFile: 39064 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 53 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4016416', 'Ngid': '0', 'Pid': '4016416', 'PPid': '4016415', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4016416', 'NSpid': '4016416', 'NSpgid': '4013148', 'NSsid': '4013148', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98868 kB', 'VmRSS': '98868 kB', 'RssAnon': '59804 kB', 'RssFile': '39064 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '53', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '4016416', '1106844', '0', '1106844', '865592', '98868', b'', 'marlene', '2660500') 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 (21323564) 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 (2660500 ) ) 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 (21323564) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343285524, 'portfolio_id': 21323564}, {'photo_id': 1343285521, 'portfolio_id': 21323564}, {'photo_id': 1343285480, 'portfolio_id': 21323564}, {'photo_id': 1343285476, 'portfolio_id': 21323564}, {'photo_id': 1343285472, 'portfolio_id': 21323564}, {'photo_id': 1343285469, 'portfolio_id': 21323564}, {'photo_id': 1343285375, 'portfolio_id': 21323564}, {'photo_id': 1343285365, 'portfolio_id': 21323564}, {'photo_id': 1343285356, 'portfolio_id': 21323564}, {'photo_id': 1343285346, 'portfolio_id': 21323564}, {'photo_id': 1343285296, 'portfolio_id': 21323564}, {'photo_id': 1343285271, 'portfolio_id': 21323564}, {'photo_id': 1343285260, 'portfolio_id': 21323564}, {'photo_id': 1343285227, 'portfolio_id': 21323564}, {'photo_id': 1343285132, 'portfolio_id': 21323564}, {'photo_id': 1343285119, 'portfolio_id': 21323564}, {'photo_id': 1343285115, 'portfolio_id': 21323564}, {'photo_id': 1343285111, 'portfolio_id': 21323564}, {'photo_id': 1343285095, 'portfolio_id': 21323564}, {'photo_id': 1343285088, 'portfolio_id': 21323564}, {'photo_id': 1343285085, 'portfolio_id': 21323564}, {'photo_id': 1343285034, 'portfolio_id': 21323564}, {'photo_id': 1343285032, 'portfolio_id': 21323564}, {'photo_id': 1343285029, 'portfolio_id': 21323564}] map_portfolio_id_photo_id: {21323564: [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469, 1343285375, 1343285365, 1343285356, 1343285346, 1343285296, 1343285271, 1343285260, 1343285227, 1343285132, 1343285119, 1343285115, 1343285111, 1343285095, 1343285088, 1343285085, 1343285034, 1343285032, 1343285029]} ##### 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.01503443717956543 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 12 02:23: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 (21323564) 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 : 21323564 get user id for portfolio 21323564 get sub ptf for main ptf 21323564, type 3726 and hashtags ['environnement', 'Teint_Dans_La_Masse', 'Carton_brun', 'papier', 'cartonnette', 'mal_croppe', 'autre_refus', 'kraft', 'plastique', 'metal', 'Carton_gris', 'flou'] 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`=21323564 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','Carton_brun','papier','cartonnette','mal_croppe','autre_refus','kraft','plastique','metal','Carton_gris','flou')) 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`=21323564 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','Carton_brun','papier','cartonnette','mal_croppe','autre_refus','kraft','plastique','metal','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21323564, 'sub_port_id': 21323579, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906236, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'Carton_brun': {'main_port_id': 21323564, 'sub_port_id': 21323580, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906237, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'papier': {'main_port_id': 21323564, 'sub_port_id': 21323581, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906238, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'kraft': {'main_port_id': 21323564, 'sub_port_id': 21323582, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906239, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'Carton_gris': {'main_port_id': 21323564, 'sub_port_id': 21323583, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906240, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'autre_refus': {'main_port_id': 21323564, 'sub_port_id': 21323584, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906241, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'metal': {'main_port_id': 21323564, 'sub_port_id': 21323585, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906242, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21323564, 'sub_port_id': 21323586, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906243, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'cartonnette': {'main_port_id': 21323564, 'sub_port_id': 21323587, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906244, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'flou': {'main_port_id': 21323564, 'sub_port_id': 21323588, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906245, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'plastique': {'main_port_id': 21323564, 'sub_port_id': 21323589, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906246, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}, 'environnement': {'main_port_id': 21323564, 'sub_port_id': 21323590, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906247, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21323579 , 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=21323564 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 (21323579) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323580 , 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=21323564 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 (21323580) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323581 , 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=21323564 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 (21323581) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323582 , 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=21323564 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 (21323582) result : ((1343285406,), (1343285410,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323583 , 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=21323564 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 (21323583) result : ((1343285407,), (1343285408,), (1343285543,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323584 , 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=21323564 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 (21323584) result : ((1343285136,), (1343285137,), (1343285138,), (1343285398,), (1343285399,), (1343285400,), (1343285401,), (1343285402,), (1343285403,), (1343285404,), (1343285532,), (1343285533,), (1343285534,), (1343285535,), (1343285536,), (1343285539,), (1343285540,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323585 , 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=21323564 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 (21323585) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323586 , 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=21323564 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 (21323586) result : ((1343285134,), (1343285397,), (1343285530,), (1343285538,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323587 , 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=21323564 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 (21323587) result : ((1343285139,), (1343285409,), (1343285537,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323588 , 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=21323564 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 (21323588) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323589 , 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=21323564 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 (21323589) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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 21323590 , 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=21323564 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 (21323590) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21323564) result : ((1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) 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`=21323564 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','Carton_brun','papier','cartonnette','mal_croppe','autre_refus','kraft','plastique','metal','Carton_gris','flou')) 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`=21323564 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','Carton_brun','papier','cartonnette','mal_croppe','autre_refus','kraft','plastique','metal','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21323564, 'sub_port_id': 21323591, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906248, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'Carton_brun': {'main_port_id': 21323564, 'sub_port_id': 21323592, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906249, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'papier': {'main_port_id': 21323564, 'sub_port_id': 21323593, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906250, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'kraft': {'main_port_id': 21323564, 'sub_port_id': 21323594, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906251, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'Carton_gris': {'main_port_id': 21323564, 'sub_port_id': 21323595, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906252, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'autre_refus': {'main_port_id': 21323564, 'sub_port_id': 21323596, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906253, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'metal': {'main_port_id': 21323564, 'sub_port_id': 21323597, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906254, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21323564, 'sub_port_id': 21323598, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906255, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'cartonnette': {'main_port_id': 21323564, 'sub_port_id': 21323599, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906256, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'flou': {'main_port_id': 21323564, 'sub_port_id': 21323600, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906257, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'plastique': {'main_port_id': 21323564, 'sub_port_id': 21323601, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906258, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 19, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}, 'environnement': {'main_port_id': 21323564, 'sub_port_id': 21323602, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13906259, 'last_updated_at': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 2, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 2, 19, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323591,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323579 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323592,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323580 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323593,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323581 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323594,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323582 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323595,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323583 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323596,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323584 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323597,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323585 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323598,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323586 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323599,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323587 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21323602,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21323590 lien utilise dans velours : https://www.fotonower.com/velours/21323591,21323592,21323593,21323594,21323595,21323596,21323597,21323598,21323599,21323600,21323601,21323602?tags=mal_croppe,Carton_brun,papier,kraft,Carton_gris,autre_refus,metal,Teint_Dans_La_Masse,cartonnette,flou,plastique,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21323564]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469] map_info['map_portfolio_photo'] : {21323564: [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469, 1343285375, 1343285365, 1343285356, 1343285346, 1343285296, 1343285271, 1343285260, 1343285227, 1343285132, 1343285119, 1343285115, 1343285111, 1343285095, 1343285088, 1343285085, 1343285034, 1343285032, 1343285029]} final : False mtd_id 4302 list_pids : [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469] Looping around the photos to save general results len do output : 1 /21323564. 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, '2660500') ('4302', '21323564', '1343285524', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285521', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285480', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285476', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285472', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285469', None, None, None, None, None, '2660500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21323564', "{'mal_croppe': 21323579, 'Carton_brun': 21323580, 'papier': 21323581, 'kraft': 21323582, 'Carton_gris': 21323583, 'autre_refus': 21323584, 'metal': 21323585, 'Teint_Dans_La_Masse': 21323586, 'cartonnette': 21323587, 'flou': 21323588, 'plastique': 21323589, 'environnement': 21323590}", None, None, None, None, '2660500'), ('4302', '21323564', '1343285524', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285521', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285480', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285476', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285472', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285469', None, None, None, None, None, '2660500')] time used for this insertion : 0.012697696685791016 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.7225356101989746 time spend to save output : 0.013017654418945312 total time spend for step 1 : 2.73555326461792 step2:final Wed Mar 12 02:23:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (21323564) 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 21323564 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343285034,1343285032,1343285029,1343285095,1343285088,1343285085,1343285132,1343285119,1343285115,1343285111,1343285296,1343285271,1343285260,1343285227,1343285375,1343285365,1343285356,1343285346,1343285480,1343285476,1343285472,1343285469,1343285524,1343285521); 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([21323564]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ('0.06284593043411775',)} new output for save of step final : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ('0.06284593043411775',)} [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469] map_info['map_portfolio_photo'] : {21323564: [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469, 1343285375, 1343285365, 1343285356, 1343285346, 1343285296, 1343285271, 1343285260, 1343285227, 1343285132, 1343285119, 1343285115, 1343285111, 1343285095, 1343285088, 1343285085, 1343285034, 1343285032, 1343285029]} final : False mtd_id 4302 list_pids : [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469] Looping around the photos to save general results len do output : 6 /1343285524.Didn't retrieve data . /1343285521.Didn't retrieve data . /1343285480.Didn't retrieve data . /1343285476.Didn't retrieve data . /1343285472.Didn't retrieve data . /1343285469.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, '2660500') ('4302', '21323564', '1343285524', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285521', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285480', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285476', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285472', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285469', None, None, None, None, None, '2660500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21323564', '1343285524', '0.06284593043411775', None, None, None, None, '2660500'), ('4302', '21323564', '1343285521', '0.06284593043411775', None, None, None, None, '2660500'), ('4302', '21323564', '1343285480', '0.06284593043411775', None, None, None, None, '2660500'), ('4302', '21323564', '1343285476', '0.06284593043411775', None, None, None, None, '2660500'), ('4302', '21323564', '1343285472', '0.06284593043411775', None, None, None, None, '2660500'), ('4302', '21323564', '1343285469', '0.06284593043411775', None, None, None, None, '2660500')] time used for this insertion : 0.013523340225219727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06525611877441406 time spend to save output : 0.013994693756103516 total time spend for step 2 : 0.07925081253051758 step3:velours_tree Wed Mar 12 02:23:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {21323564: [{'mal_croppe': 21323579, 'Carton_brun': 21323580, 'papier': 21323581, 'kraft': 21323582, 'Carton_gris': 21323583, 'autre_refus': 21323584, 'metal': 21323585, 'Teint_Dans_La_Masse': 21323586, 'cartonnette': 21323587, 'flou': 21323588, 'plastique': 21323589, 'environnement': 21323590}]} input_args_next_step : {21323564: ()} output_args : {21323564: [{'mal_croppe': 21323579, 'Carton_brun': 21323580, 'papier': 21323581, 'kraft': 21323582, 'Carton_gris': 21323583, 'autre_refus': 21323584, 'metal': 21323585, 'Teint_Dans_La_Masse': 21323586, 'cartonnette': 21323587, 'flou': 21323588, 'plastique': 21323589, 'environnement': 21323590}]} args : 21323564 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 : ({'mal_croppe': 21323579, 'Carton_brun': 21323580, 'papier': 21323581, 'kraft': 21323582, 'Carton_gris': 21323583, 'autre_refus': 21323584, 'metal': 21323585, 'Teint_Dans_La_Masse': 21323586, 'cartonnette': 21323587, 'flou': 21323588, 'plastique': 21323589, 'environnement': 21323590},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21323564) 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([21323564]) 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.29548120498657227 time spend to save output : 4.220008850097656e-05 total time spend for step 3 : 0.29552340507507324 step4:send_mail_cod Wed Mar 12 02:23:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ('0.06284593043411775',)} input_args_next_step : {1343285524: ()} output_args : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ('0.06284593043411775',)} args : 1343285524 depend.output_id : 0 input_args_next_step : {1343285524: ('0.06284593043411775',), 1343285521: ()} output_args : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ('0.06284593043411775',)} args : 1343285521 depend.output_id : 0 input_args_next_step : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ()} output_args : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ('0.06284593043411775',)} args : 1343285480 depend.output_id : 0 input_args_next_step : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ()} output_args : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ('0.06284593043411775',)} args : 1343285476 depend.output_id : 0 input_args_next_step : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ()} output_args : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ('0.06284593043411775',)} args : 1343285472 depend.output_id : 0 input_args_next_step : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ()} output_args : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ('0.06284593043411775',)} args : 1343285469 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 : {21323564: [{'mal_croppe': 21323579, 'Carton_brun': 21323580, 'papier': 21323581, 'kraft': 21323582, 'Carton_gris': 21323583, 'autre_refus': 21323584, 'metal': 21323585, 'Teint_Dans_La_Masse': 21323586, 'cartonnette': 21323587, 'flou': 21323588, 'plastique': 21323589, 'environnement': 21323590}]} input_args_next_step : {1343285524: ('0.06284593043411775',), 1343285521: ('0.06284593043411775',), 1343285480: ('0.06284593043411775',), 1343285476: ('0.06284593043411775',), 1343285472: ('0.06284593043411775',), 1343285469: ('0.06284593043411775',), 21323564: ()} output_args : {21323564: [{'mal_croppe': 21323579, 'Carton_brun': 21323580, 'papier': 21323581, 'kraft': 21323582, 'Carton_gris': 21323583, 'autre_refus': 21323584, 'metal': 21323585, 'Teint_Dans_La_Masse': 21323586, 'cartonnette': 21323587, 'flou': 21323588, 'plastique': 21323589, 'environnement': 21323590}]} args : 21323564 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :7, first value : ('0.06284593043411775',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21323564) 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 (1343285524,1343285521,1343285480,1343285476,1343285472,1343285469) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343285469 begin to download photo : 1343285476 begin to download photo : 1343285521 download finish for photo 1343285476 begin to download photo : 1343285480 download finish for photo 1343285521 begin to download photo : 1343285524 download finish for photo 1343285469 begin to download photo : 1343285472 download finish for photo 1343285524 download finish for photo 1343285480 download finish for photo 1343285472 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette213235791741742640/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P21323564_12-03-2025_02_24_00.pdf 21323579 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=21323579 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213235791741742640 21323582 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=21323582 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343285406: '1741742428_3001197_1343285132_d2532a397d3cde4be20e8b259708f52d_rle_crop_3706965498_0.png', 1343285410: '1741742430_2102247_1343285115_7101164555c6ed4bb25d396e8b1e781e_rle_crop_3706965543_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/1089d87eb5977bcdfb51cb9db9baf0b7_84276904.png change filename to text .imagette213235821741742640/ imagette213235821741742640/1741742430_2102247_1343285115_7101164555c6ed4bb25d396e8b1e781e_rle_crop_3706965543_0.png.png imagette213235821741742640/1741742428_3001197_1343285132_d2532a397d3cde4be20e8b259708f52d_rle_crop_3706965498_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/0ea571dc222eadfc2352268ce86458f5_40929604.png imagette213235821741742640 21323584 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=21323584 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343285403: '1741742430_2102247_1343285115_7101164555c6ed4bb25d396e8b1e781e_rle_crop_3706965546_0.png', 1343285540: '1741742549_3004309_1343285356_390f72dd74fbcd7268a17206ba0b185c_rle_crop_3706965987_0.png', 1343285539: '1741742549_3004309_1343285365_624734fec4ab00bdc36ec405c4aa0b6a_rle_crop_3706965969_0.png', 1343285536: '1741742532_2102970_1343285227_53e2f7c738de22abdcb32734337c120e_rle_crop_3706965979_0.png', 1343285535: '1741742532_2102970_1343285260_f1bfc489c48daeb1d2a464e3a73a5011_rle_crop_3706965960_0.png', 1343285534: '1741742532_2102970_1343285271_e06d8b323b291522119edce84dc00180_rle_crop_3706965950_0.png', 1343285533: '1741742532_2102970_1343285271_e06d8b323b291522119edce84dc00180_rle_crop_3706965952_0.png', 1343285532: '1741742532_2102970_1343285375_3b1e7a979f9f586051bb848672825bb1_rle_crop_3706965939_0.png', 1343285404: '1741742430_2102247_1343285111_4677180f0d52ae58c125e8524c571d4b_rle_crop_3706965564_0.png', 1343285136: '1741742293_2101148_1343285034_5fd7da683d42850971e1359345f8f50a_rle_crop_3706964748_0.png', 1343285402: '1741742430_2102247_1343285119_d3ef2fc10499b127d3c5ffec2d32686f_rle_crop_3706965521_0.png', 1343285401: '1741742430_2102247_1343285119_d3ef2fc10499b127d3c5ffec2d32686f_rle_crop_3706965525_0.png', 1343285400: '1741742428_3001197_1343285085_8101740582962d78fb0fa22fb49a5920_rle_crop_3706965533_0.png', 1343285399: '1741742428_3001197_1343285088_303ea10d8f640dc324e2b55d7455fa4b_rle_crop_3706965513_0.png', 1343285398: '1741742428_3001197_1343285132_d2532a397d3cde4be20e8b259708f52d_rle_crop_3706965497_0.png', 1343285138: '1741742293_2101148_1343285029_8178f0a24d7e0204d3a4e0db3c53c2b6_rle_crop_3706964817_0.png', 1343285137: '1741742293_2101148_1343285029_8178f0a24d7e0204d3a4e0db3c53c2b6_rle_crop_3706964815_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/99644191ea52d2298723ab4362fc4f8a_99321428.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f1bec09b78f055735a514f3ee0692272_2072309.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/7b1612959e247e7a94715bbc884d0ab0_47334850.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f2cee461e71eba9612b1e85cd68cc04e_79675071.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/65bc40bfa33d71ce22787684633c02dd_66550744.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3ccfbf769fc9765d1da0f6514c2cf842_40294815.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/114f7dc458c101e949cf8efba8ed0707_50238680.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/7b777d7be0ee01d7045e701dcc69ad1a_78823079.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/02f7d6fc1687f00b83d09269d736dddf_16871833.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5784ca3f293157d3fc85f605a07d301f_91634889.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ec92f8f0bdc61853c4612066652cbe8e_75666246.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/fe4ffcf9cd1976f27319baafb6454084_76431798.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4c6726bed8cb108cf41969f2ae52a820_57478086.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/de6a52265bdc7f8ea00f6a204c2a4190_7560640.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/00e1d5fc85212b070a29ed502ed0efa9_12885016.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/33e731b248c66b11b6a02c69500f6d43_60228560.png change filename to text .imagette213235841741742640/ imagette213235841741742640/1741742532_2102970_1343285271_e06d8b323b291522119edce84dc00180_rle_crop_3706965952_0.png.png imagette213235841741742640/1741742549_3004309_1343285356_390f72dd74fbcd7268a17206ba0b185c_rle_crop_3706965987_0.png.png imagette213235841741742640/1741742532_2102970_1343285227_53e2f7c738de22abdcb32734337c120e_rle_crop_3706965979_0.png.png imagette213235841741742640/1741742532_2102970_1343285260_f1bfc489c48daeb1d2a464e3a73a5011_rle_crop_3706965960_0.png.png imagette213235841741742640/1741742428_3001197_1343285132_d2532a397d3cde4be20e8b259708f52d_rle_crop_3706965497_0.png.png imagette213235841741742640/1741742428_3001197_1343285085_8101740582962d78fb0fa22fb49a5920_rle_crop_3706965533_0.png.png imagette213235841741742640/1741742293_2101148_1343285029_8178f0a24d7e0204d3a4e0db3c53c2b6_rle_crop_3706964817_0.png.png imagette213235841741742640/1741742430_2102247_1343285119_d3ef2fc10499b127d3c5ffec2d32686f_rle_crop_3706965525_0.png.png imagette213235841741742640/1741742532_2102970_1343285271_e06d8b323b291522119edce84dc00180_rle_crop_3706965950_0.png.png imagette213235841741742640/1741742293_2101148_1343285034_5fd7da683d42850971e1359345f8f50a_rle_crop_3706964748_0.png.png imagette213235841741742640/1741742430_2102247_1343285111_4677180f0d52ae58c125e8524c571d4b_rle_crop_3706965564_0.png.png imagette213235841741742640/1741742430_2102247_1343285115_7101164555c6ed4bb25d396e8b1e781e_rle_crop_3706965546_0.png.png imagette213235841741742640/1741742532_2102970_1343285375_3b1e7a979f9f586051bb848672825bb1_rle_crop_3706965939_0.png.png imagette213235841741742640/1741742549_3004309_1343285365_624734fec4ab00bdc36ec405c4aa0b6a_rle_crop_3706965969_0.png.png imagette213235841741742640/1741742430_2102247_1343285119_d3ef2fc10499b127d3c5ffec2d32686f_rle_crop_3706965521_0.png.png imagette213235841741742640/1741742428_3001197_1343285088_303ea10d8f640dc324e2b55d7455fa4b_rle_crop_3706965513_0.png.png imagette213235841741742640/1741742293_2101148_1343285029_8178f0a24d7e0204d3a4e0db3c53c2b6_rle_crop_3706964815_0.png.png imagette213235851741742641/ wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d42d17c3fad78cdae35dd6eb960b1dea_92471860.png imagette213235841741742640 21323585 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=21323585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213235851741742641 21323587 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=21323587 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343285139: '1741742293_2101148_1343285032_56f2b68f54d9bca4e8cba51e7cc48655_rle_crop_3706964802_0.png', 1343285409: '1741742430_2102247_1343285115_7101164555c6ed4bb25d396e8b1e781e_rle_crop_3706965541_0.png', 1343285537: '1741742532_2102970_1343285227_53e2f7c738de22abdcb32734337c120e_rle_crop_3706965978_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3b108a02ea19f81d8b7f854e2cb899c0_28560623.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/17099f98c11ee09d44e1a612e02672fe_24834787.png change filename to text .imagette213235871741742641/ imagette213235871741742641/1741742430_2102247_1343285115_7101164555c6ed4bb25d396e8b1e781e_rle_crop_3706965541_0.png.png imagette213235871741742641/1741742532_2102970_1343285227_53e2f7c738de22abdcb32734337c120e_rle_crop_3706965978_0.png.png imagette213235871741742641/1741742293_2101148_1343285032_56f2b68f54d9bca4e8cba51e7cc48655_rle_crop_3706964802_0.png.png imagette213235881741742641/ imagette213235891741742641/ imagette213235801741742641/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/2c4fedb5835446534443576c95540273_68513434.png imagette213235871741742641 21323588 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=21323588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213235881741742641 21323589 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=21323589 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213235891741742641 21323580 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=21323580 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213235801741742641 21323583 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=21323583 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343285407: '1741742430_2102247_1343285119_d3ef2fc10499b127d3c5ffec2d32686f_rle_crop_3706965523_0.png', 1343285408: '1741742430_2102247_1343285111_4677180f0d52ae58c125e8524c571d4b_rle_crop_3706965556_0.png', 1343285543: '1741742549_3004309_1343285365_624734fec4ab00bdc36ec405c4aa0b6a_rle_crop_3706965968_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/012d9bb838710742dcfaba64b0877067_38028182.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8a45b909978c8d78fb457598e1d372af_81701241.png change filename to text .imagette213235831741742641/ imagette213235831741742641/1741742549_3004309_1343285365_624734fec4ab00bdc36ec405c4aa0b6a_rle_crop_3706965968_0.png.png imagette213235831741742641/1741742430_2102247_1343285119_d3ef2fc10499b127d3c5ffec2d32686f_rle_crop_3706965523_0.png.png imagette213235831741742641/1741742430_2102247_1343285111_4677180f0d52ae58c125e8524c571d4b_rle_crop_3706965556_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/64350fe06bbf8981cb8fb86162e8094a_28457464.png imagette213235831741742641 21323586 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=21323586 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343285134: '1741742293_2101148_1343285029_8178f0a24d7e0204d3a4e0db3c53c2b6_rle_crop_3706964816_0.png', 1343285397: '1741742430_2102247_1343285111_4677180f0d52ae58c125e8524c571d4b_rle_crop_3706965558_0.png', 1343285530: '1741742532_2102970_1343285271_e06d8b323b291522119edce84dc00180_rle_crop_3706965947_0.png', 1343285538: '1741742549_3004309_1343285356_390f72dd74fbcd7268a17206ba0b185c_rle_crop_3706965988_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/74b71db4f129b279b78ba3fce3f8f782_6199569.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/51409464850a0f675a813ba951bc63aa_88017109.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/05e95a7e6a0a8a16da67957ca62cec13_40670658.png change filename to text .imagette213235861741742641/ imagette213235861741742641/1741742549_3004309_1343285356_390f72dd74fbcd7268a17206ba0b185c_rle_crop_3706965988_0.png.png imagette213235861741742641/1741742293_2101148_1343285029_8178f0a24d7e0204d3a4e0db3c53c2b6_rle_crop_3706964816_0.png.png imagette213235861741742641/1741742430_2102247_1343285111_4677180f0d52ae58c125e8524c571d4b_rle_crop_3706965558_0.png.png imagette213235861741742641/1741742532_2102970_1343285271_e06d8b323b291522119edce84dc00180_rle_crop_3706965947_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/7b87ac350d66a265583b66a3aedf3874_60079186.png imagette213235861741742641 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21323564 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21323591,21323592,21323593,21323594,21323595,21323596,21323597,21323598,21323599,21323600,21323601,21323602?tags=mal_croppe,Carton_brun,papier,kraft,Carton_gris,autre_refus,metal,Teint_Dans_La_Masse,cartonnette,flou,plastique,environnement your option no_mail is active, we will not send the real mail to your client args[1343285524] : ('0.06284593043411775',) no score found for photo 1343285524 We are sending mail with results at report@fotonower.com args[1343285521] : ('0.06284593043411775',) no score found for photo 1343285521 We are sending mail with results at report@fotonower.com args[1343285480] : ('0.06284593043411775',) no score found for photo 1343285480 We are sending mail with results at report@fotonower.com args[1343285476] : ('0.06284593043411775',) no score found for photo 1343285476 We are sending mail with results at report@fotonower.com args[1343285472] : ('0.06284593043411775',) no score found for photo 1343285472 We are sending mail with results at report@fotonower.com args[1343285469] : ('0.06284593043411775',) no score found for photo 1343285469 We are sending mail with results at report@fotonower.com refus_total : 0.06284593043411775 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=21323564 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'autre_refus' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21323564]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469] map_info['map_portfolio_photo'] : {21323564: [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469, 1343285375, 1343285365, 1343285356, 1343285346, 1343285296, 1343285271, 1343285260, 1343285227, 1343285132, 1343285119, 1343285115, 1343285111, 1343285095, 1343285088, 1343285085, 1343285034, 1343285032, 1343285029]} final : False mtd_id 4302 list_pids : [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469] 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, '2660500') ('4302', '21323564', '1343285524', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285521', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285480', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285476', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285472', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285469', None, None, None, None, None, '2660500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21323564', '1343285524', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285521', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285480', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285476', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285472', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285469', None, None, None, None, None, '2660500')] time used for this insertion : 0.014481782913208008 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.111656665802002 time spend to save output : 0.014618873596191406 total time spend for step 4 : 2.1262755393981934 step5:split_time_score Wed Mar 12 02:24:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21323564'] 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 : [('21323564',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21323564) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343285521: {'path': 'temp/1741742639_4016416_1343285521_2c6847899009ea55b43facbac4910589.jpg', 'extension': 'jpg'}, 1343285524: {'path': 'temp/1741742639_4016416_1343285524_3760a0f449cb2ed768bc10b56dc46049.jpg', 'extension': 'jpg'}, 1343285476: {'path': 'temp/1741742639_4016416_1343285476_73d9e2be6e95e950981e75616d9789c4.jpg', 'extension': 'jpg'}, 1343285480: {'path': 'temp/1741742639_4016416_1343285480_8adb993ac702ff7470e8d93514c14e5e.jpg', 'extension': 'jpg'}, 1343285469: {'path': 'temp/1741742639_4016416_1343285469_cac624187fd52e3955cd221e5a78122c.jpg', 'extension': 'jpg'}, 1343285472: {'path': 'temp/1741742639_4016416_1343285472_946d68b34240053b77a64de6906eb99d.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 = 21323564; (('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 = 21323564 group by h (('02', 24),) 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=21323564 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 (21323564) 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 (21323564) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12032025 21323564 Nombre de photos uploadées : 24 / 23040 (0%) 12032025 21323564 Nombre de photos taguées (types de déchets): 0 / 24 (0%) 12032025 21323564 Nombre de photos taguées (volume) : 0 / 24 (0%) [{'photo_id': 1343285034, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5fd7da683d42850971e1359345f8f50a.jpg', 'username': None, 'uploaded_at': 1741742200, 'text': 'image_12032025_02_15_14_10140.jpg'}, {'photo_id': 1343285032, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/56f2b68f54d9bca4e8cba51e7cc48655.jpg', 'username': None, 'uploaded_at': 1741742200, 'text': 'image_12032025_02_15_24_10141.jpg'}, {'photo_id': 1343285029, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8178f0a24d7e0204d3a4e0db3c53c2b6.jpg', 'username': None, 'uploaded_at': 1741742200, 'text': 'image_12032025_02_15_34_10134.jpg'}, {'photo_id': 1343285095, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/2e23ead6810eb14fb90c71acd734ec61.jpg', 'username': None, 'uploaded_at': 1741742260, 'text': 'image_12032025_02_15_43_9128.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009150505065917969 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21323564, '2025-03-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1660967,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021894454956054688 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= 1660967 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668734, 'mtr_portfolio_id': 21321951, 'dashboard_result_id': 9373592, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321987, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668734, 'mtr_portfolio_id': 21322455, 'dashboard_result_id': 9373593, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21322480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21322481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21322482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21322483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21322484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21322485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21322486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21322487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21322488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21322489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21322490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21322491, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668734, 'mtr_portfolio_id': 21323087, 'dashboard_result_id': 9373594, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323101, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668734, 'mtr_portfolio_id': 21323564, 'dashboard_result_id': 9373595, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323590, '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 = 21321951 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': 2660401, 'mtr_portfolio_id': 21321951, 'created_at': datetime.datetime(2025, 3, 12, 1, 48, 59), 'result': '0.08098086963450103', 'result_long': None, 'result_double': None}] Qualite : 0.08098086963450103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21321951 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21321951%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21321951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321987, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21321951 and dashboard_run_id = 1668734 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`=21321951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9373592, 0.08098086963450103, "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321987, 'pht': 3726}, 'url_report': ''}") 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 = 21322455 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': 2660430, 'mtr_portfolio_id': 21322455, 'created_at': datetime.datetime(2025, 3, 12, 2, 3, 1), 'result': '0.0863562880540628', 'result_long': None, 'result_double': None}] Qualite : 0.0863562880540628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21322455 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21322455%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21322455 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21322480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21322481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21322482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21322483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21322484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21322485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21322486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21322487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21322488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21322489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21322490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21322491, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21322455 and dashboard_run_id = 1668734 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`=21322455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9373593, 0.0863562880540628, "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21322480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21322481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21322482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21322483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21322484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21322485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21322486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21322487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21322488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21322489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21322490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21322491, 'pht': 3726}, 'url_report': ''}") 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 = 21323087 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': 2660473, 'mtr_portfolio_id': 21323087, 'created_at': datetime.datetime(2025, 3, 12, 2, 17, 33), 'result': '0.09895309322765329', 'result_long': None, 'result_double': None}] Qualite : 0.09895309322765329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21323087 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21323087%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21323087 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323101, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21323087 and dashboard_run_id = 1668734 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`=21323087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9373594, 0.09895309322765329, "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323101, 'pht': 3726}, 'url_report': ''}") 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 = 21323564 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': 2660500, 'mtr_portfolio_id': 21323564, 'created_at': datetime.datetime(2025, 3, 12, 2, 23, 59), 'result': '0.06284593043411775', 'result_long': None, 'result_double': None}] Qualite : 0.06284593043411775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21323564 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21323564%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21323564 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323590, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21323564 and dashboard_run_id = 1668734 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`=21323564 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9373595, 0.06284593043411775, "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323590, 'pht': 3726}, 'url_report': ''}") 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 (21321951,21322455,21323087,21323564) result : ((1343277699,), (1343277700,), (1343277701,), (1343277890,), (1343277904,), (1343278034,), (1343278040,), (1343278070,), (1343278073,), (1343278075,), (1343278097,), (1343278099,), (1343278202,), (1343278212,), (1343278232,), (1343278237,), (1343278312,), (1343278327,), (1343278355,), (1343278383,), (1343278404,), (1343278732,), (1343278735,), (1343278757,), (1343278898,), (1343278910,), (1343278922,), (1343278925,), (1343278928,), (1343279134,), (1343279161,), (1343279186,), (1343279229,), (1343279232,), (1343279236,), (1343279241,), (1343279252,), (1343279289,), (1343279294,), (1343279307,), (1343279310,), (1343279334,), (1343279338,), (1343279342,), (1343279345,), (1343279459,), (1343279463,), (1343279467,), (1343279475,), (1343279567,), (1343279555,), (1343279679,), (1343279696,), (1343279706,), (1343279736,), (1343279940,), (1343279957,), (1343279975,), (1343279981,), (1343280046,), (1343280049,), (1343280052,), (1343280054,), (1343280196,), (1343280219,), (1343280247,), (1343280265,), (1343280358,), (1343280377,), (1343280387,), (1343280504,), (1343280525,), (1343280531,), (1343280631,), (1343280637,), (1343280641,), (1343280721,), (1343280725,), (1343280758,), (1343280762,), (1343280766,), (1343280770,), (1343280774,), (1343280799,), (1343280804,), (1343280844,), (1343280849,), (1343280854,), (1343280926,), (1343280935,), (1343280939,), (1343280952,), (1343280980,), (1343281809,), (1343281813,), (1343281818,), (1343281847,), (1343281858,), (1343281860,), (1343281864,), (1343281866,), (1343282056,), (1343282017,), (1343282045,), (1343282149,), (1343282234,), (1343282237,), (1343282240,), (1343282250,), (1343282264,), (1343282328,), (1343282346,), (1343282367,), (1343282372,), (1343282563,), (1343282587,), (1343282611,), (1343282627,), (1343282856,), (1343282879,), (1343282915,), (1343283329,), (1343283807,), (1343284169,), (1343284196,), (1343284230,), (1343284353,), (1343284356,), (1343284390,), (1343284601,), (1343284605,), (1343284608,), (1343284718,), (1343284753,), (1343284755,), (1343284767,), (1343284795,), (1343284798,), (1343284801,), (1343284817,), (1343284938,), (1343284942,), (1343284989,), (1343284993,), (1343284996,), (1343285035,), (1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12032025': {'nb_upload': 24, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21323564]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469] map_info['map_portfolio_photo'] : {21323564: [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469, 1343285375, 1343285365, 1343285356, 1343285346, 1343285296, 1343285271, 1343285260, 1343285227, 1343285132, 1343285119, 1343285115, 1343285111, 1343285095, 1343285088, 1343285085, 1343285034, 1343285032, 1343285029]} final : True mtd_id 4302 list_pids : [1343285524, 1343285521, 1343285480, 1343285476, 1343285472, 1343285469] Looping around the photos to save general results len do output : 1 /21323564Didn'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, '2660500') ('4302', '21323564', '1343285524', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285521', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285480', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285476', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285472', None, None, None, None, None, '2660500') ('4302', None, None, None, None, None, None, None, '2660500') ('4302', '21323564', '1343285469', None, None, None, None, None, '2660500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21323564', 'None', None, None, None, None, '2660500'), ('4302', '21323564', '1343285524', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285521', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285480', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285476', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285472', None, None, None, None, None, '2660500'), ('4302', '21323564', '1343285469', None, None, None, None, None, '2660500')] time used for this insertion : 0.01312112808227539 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9159390926361084 time spend to save output : 0.013371944427490234 total time spend for step 5 : 3.9293110370635986 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 (2660500) 1.83user 2.54system 0:10.99elapsed 39%CPU (0avgtext+0avgdata 150676maxresident)k 200inputs+7240outputs (1major+59860minor)pagefaults 0swaps