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 : 1581468 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 (3709162) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3709162) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780889 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3709162'] with mtr_portfolio_ids : ['26780889'] and first list_photo_ids : [] new path : /proc/1581468/ Name: python3 Umask: 0002 State: R (running) Tgid: 1581468 Ngid: 0 Pid: 1581468 PPid: 1581464 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1581468 NSpid: 1581468 NSpgid: 1580765 NSsid: 1580765 VmPeak: 1107248 kB VmSize: 1107248 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97740 kB VmRSS: 97740 kB RssAnon: 60156 kB RssFile: 37584 kB RssShmem: 0 kB VmData: 866000 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 127 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1581468', 'Ngid': '0', 'Pid': '1581468', 'PPid': '1581464', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1581468', 'NSpid': '1581468', 'NSpgid': '1580765', 'NSsid': '1580765', 'VmPeak': '1107248 kB', 'VmSize': '1107248 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97740 kB', 'VmRSS': '97740 kB', 'RssAnon': '60156 kB', 'RssFile': '37584 kB', 'RssShmem': '0 kB', 'VmData': '866000 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '127'} ('datou_batch_current', '1581468', '1107248', '0', '1107248', '866000', '97740', b'', 'marlene', '3709162') 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 (26780889) 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 (3709162 ) ) 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 (26780889) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1383365434, 'portfolio_id': 26780889}, {'photo_id': 1383365432, 'portfolio_id': 26780889}, {'photo_id': 1383365430, 'portfolio_id': 26780889}, {'photo_id': 1383365428, 'portfolio_id': 26780889}, {'photo_id': 1383365424, 'portfolio_id': 26780889}, {'photo_id': 1383365230, 'portfolio_id': 26780889}, {'photo_id': 1383365167, 'portfolio_id': 26780889}, {'photo_id': 1383365095, 'portfolio_id': 26780889}, {'photo_id': 1383365030, 'portfolio_id': 26780889}, {'photo_id': 1383364896, 'portfolio_id': 26780889}, {'photo_id': 1383364894, 'portfolio_id': 26780889}, {'photo_id': 1383364891, 'portfolio_id': 26780889}, {'photo_id': 1383364653, 'portfolio_id': 26780889}, {'photo_id': 1383364586, 'portfolio_id': 26780889}, {'photo_id': 1383364510, 'portfolio_id': 26780889}, {'photo_id': 1383364437, 'portfolio_id': 26780889}, {'photo_id': 1383364372, 'portfolio_id': 26780889}, {'photo_id': 1383363649, 'portfolio_id': 26780889}, {'photo_id': 1383363572, 'portfolio_id': 26780889}, {'photo_id': 1383363562, 'portfolio_id': 26780889}, {'photo_id': 1383363555, 'portfolio_id': 26780889}, {'photo_id': 1383363529, 'portfolio_id': 26780889}, {'photo_id': 1383363524, 'portfolio_id': 26780889}, {'photo_id': 1383363520, 'portfolio_id': 26780889}, {'photo_id': 1383363517, 'portfolio_id': 26780889}, {'photo_id': 1383363512, 'portfolio_id': 26780889}, {'photo_id': 1383363481, 'portfolio_id': 26780889}, {'photo_id': 1383363480, 'portfolio_id': 26780889}, {'photo_id': 1383363478, 'portfolio_id': 26780889}, {'photo_id': 1383363457, 'portfolio_id': 26780889}, {'photo_id': 1383363453, 'portfolio_id': 26780889}, {'photo_id': 1383363449, 'portfolio_id': 26780889}, {'photo_id': 1383363445, 'portfolio_id': 26780889}, {'photo_id': 1383363442, 'portfolio_id': 26780889}, {'photo_id': 1383363439, 'portfolio_id': 26780889}, {'photo_id': 1383363420, 'portfolio_id': 26780889}, {'photo_id': 1383363415, 'portfolio_id': 26780889}, {'photo_id': 1383363413, 'portfolio_id': 26780889}, {'photo_id': 1383363410, 'portfolio_id': 26780889}, {'photo_id': 1383363407, 'portfolio_id': 26780889}, {'photo_id': 1383363388, 'portfolio_id': 26780889}, {'photo_id': 1383363384, 'portfolio_id': 26780889}, {'photo_id': 1383363380, 'portfolio_id': 26780889}, {'photo_id': 1383363378, 'portfolio_id': 26780889}, {'photo_id': 1383363374, 'portfolio_id': 26780889}, {'photo_id': 1383363356, 'portfolio_id': 26780889}, {'photo_id': 1383363353, 'portfolio_id': 26780889}, {'photo_id': 1383363349, 'portfolio_id': 26780889}, {'photo_id': 1383363346, 'portfolio_id': 26780889}, {'photo_id': 1383363344, 'portfolio_id': 26780889}, {'photo_id': 1383363342, 'portfolio_id': 26780889}, {'photo_id': 1383363334, 'portfolio_id': 26780889}, {'photo_id': 1383363330, 'portfolio_id': 26780889}, {'photo_id': 1383363320, 'portfolio_id': 26780889}, {'photo_id': 1383363302, 'portfolio_id': 26780889}, {'photo_id': 1383363295, 'portfolio_id': 26780889}, {'photo_id': 1383363291, 'portfolio_id': 26780889}, {'photo_id': 1383363289, 'portfolio_id': 26780889}, {'photo_id': 1383363285, 'portfolio_id': 26780889}, {'photo_id': 1383363279, 'portfolio_id': 26780889}, {'photo_id': 1383363278, 'portfolio_id': 26780889}, {'photo_id': 1383363277, 'portfolio_id': 26780889}, {'photo_id': 1383363275, 'portfolio_id': 26780889}, {'photo_id': 1383363274, 'portfolio_id': 26780889}, {'photo_id': 1383363273, 'portfolio_id': 26780889}, {'photo_id': 1383363270, 'portfolio_id': 26780889}, {'photo_id': 1383363269, 'portfolio_id': 26780889}, {'photo_id': 1383363266, 'portfolio_id': 26780889}, {'photo_id': 1383363265, 'portfolio_id': 26780889}, {'photo_id': 1383363262, 'portfolio_id': 26780889}, {'photo_id': 1383363261, 'portfolio_id': 26780889}, {'photo_id': 1383363250, 'portfolio_id': 26780889}, {'photo_id': 1383363248, 'portfolio_id': 26780889}, {'photo_id': 1383363243, 'portfolio_id': 26780889}, {'photo_id': 1383363238, 'portfolio_id': 26780889}, {'photo_id': 1383363235, 'portfolio_id': 26780889}, {'photo_id': 1383363231, 'portfolio_id': 26780889}, {'photo_id': 1383363208, 'portfolio_id': 26780889}, {'photo_id': 1383363205, 'portfolio_id': 26780889}, {'photo_id': 1383363203, 'portfolio_id': 26780889}, {'photo_id': 1383363202, 'portfolio_id': 26780889}, {'photo_id': 1383363198, 'portfolio_id': 26780889}, {'photo_id': 1383363194, 'portfolio_id': 26780889}, {'photo_id': 1383363193, 'portfolio_id': 26780889}, {'photo_id': 1383363185, 'portfolio_id': 26780889}, {'photo_id': 1383363183, 'portfolio_id': 26780889}, {'photo_id': 1383363181, 'portfolio_id': 26780889}, {'photo_id': 1383363164, 'portfolio_id': 26780889}, {'photo_id': 1383363161, 'portfolio_id': 26780889}, {'photo_id': 1383363152, 'portfolio_id': 26780889}, {'photo_id': 1383363149, 'portfolio_id': 26780889}, {'photo_id': 1383363145, 'portfolio_id': 26780889}] map_portfolio_id_photo_id: {26780889: [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512, 1383363481, 1383363480, 1383363478, 1383363457, 1383363453, 1383363449, 1383363445, 1383363442, 1383363439, 1383363420, 1383363415, 1383363413, 1383363410, 1383363407, 1383363388, 1383363384, 1383363380, 1383363378, 1383363374, 1383363356, 1383363353, 1383363349, 1383363346, 1383363344, 1383363342, 1383363334, 1383363330, 1383363320, 1383363302, 1383363295, 1383363291, 1383363289, 1383363285, 1383363279, 1383363278, 1383363277, 1383363275, 1383363274, 1383363273, 1383363270, 1383363269, 1383363266, 1383363265, 1383363262, 1383363261, 1383363250, 1383363248, 1383363243, 1383363238, 1383363235, 1383363231, 1383363208, 1383363205, 1383363203, 1383363202, 1383363198, 1383363194, 1383363193, 1383363185, 1383363183, 1383363181, 1383363164, 1383363161, 1383363152, 1383363149, 1383363145]} ##### 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.015667200088500977 #### 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 Fri Sep 12 08:49:27 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 (26780889) 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 : 26780889 get user id for portfolio 26780889 get sub ptf for main ptf 26780889, type 3726 and hashtags ['Carton_gris', 'mal_croppe', 'metal', 'Teint_Dans_La_Masse', 'cartonnette', 'kraft', 'environnement', 'plastique', 'flou', 'autre_refus', 'Carton_brun', 'papier'] 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`=26780889 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','metal','Teint_Dans_La_Masse','cartonnette','kraft','environnement','plastique','flou','autre_refus','Carton_brun','papier')) 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`=26780889 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','metal','Teint_Dans_La_Masse','cartonnette','kraft','environnement','plastique','flou','autre_refus','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 26780889, 'sub_port_id': 26780900, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050400, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'environnement': {'main_port_id': 26780889, 'sub_port_id': 26780901, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050401, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'papier': {'main_port_id': 26780889, 'sub_port_id': 26780902, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050402, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'Carton_brun': {'main_port_id': 26780889, 'sub_port_id': 26780903, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050403, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'autre_refus': {'main_port_id': 26780889, 'sub_port_id': 26780904, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050404, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'plastique': {'main_port_id': 26780889, 'sub_port_id': 26780905, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050405, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'cartonnette': {'main_port_id': 26780889, 'sub_port_id': 26780906, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050406, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'flou': {'main_port_id': 26780889, 'sub_port_id': 26780907, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050407, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'kraft': {'main_port_id': 26780889, 'sub_port_id': 26780908, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050408, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'metal': {'main_port_id': 26780889, 'sub_port_id': 26780909, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050409, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'mal_croppe': {'main_port_id': 26780889, 'sub_port_id': 26780910, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050410, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26780889, 'sub_port_id': 26780912, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050411, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26780900 , 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=26780889 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 (26780900) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780901 , 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=26780889 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 (26780901) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780902 , 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=26780889 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 (26780902) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780903 , 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=26780889 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 (26780903) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780904 , 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=26780889 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 (26780904) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780905 , 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=26780889 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 (26780905) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780906 , 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=26780889 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 (26780906) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780907 , 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=26780889 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 (26780907) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780908 , 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=26780889 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 (26780908) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780909 , 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=26780889 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 (26780909) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780910 , 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=26780889 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 (26780910) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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 26780912 , 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=26780889 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 (26780912) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780889) result : ((1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,)) 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`=26780889 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','metal','Teint_Dans_La_Masse','cartonnette','kraft','environnement','plastique','flou','autre_refus','Carton_brun','papier')) 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`=26780889 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','metal','Teint_Dans_La_Masse','cartonnette','kraft','environnement','plastique','flou','autre_refus','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 26780889, 'sub_port_id': 26780913, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050412, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'environnement': {'main_port_id': 26780889, 'sub_port_id': 26780914, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050413, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'papier': {'main_port_id': 26780889, 'sub_port_id': 26780915, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050414, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'Carton_brun': {'main_port_id': 26780889, 'sub_port_id': 26780916, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050415, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'autre_refus': {'main_port_id': 26780889, 'sub_port_id': 26780917, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050416, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'plastique': {'main_port_id': 26780889, 'sub_port_id': 26780918, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050417, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'cartonnette': {'main_port_id': 26780889, 'sub_port_id': 26780919, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050418, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'flou': {'main_port_id': 26780889, 'sub_port_id': 26780920, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050419, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'kraft': {'main_port_id': 26780889, 'sub_port_id': 26780921, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050420, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'metal': {'main_port_id': 26780889, 'sub_port_id': 26780922, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050421, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'mal_croppe': {'main_port_id': 26780889, 'sub_port_id': 26780923, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050422, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 39, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 26780889, 'sub_port_id': 26780924, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18050423, 'last_updated_at': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 8, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 12, 8, 39, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780913,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780900 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780914,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780901 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780915,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780902 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780916,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780903 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780917,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780904 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780918,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780905 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780919,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780907 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780921,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780908 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780922,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780909 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780923,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26780924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26780912 lien utilise dans velours : https://marlene.fotonower.com/velours/26780913,26780914,26780915,26780916,26780917,26780918,26780919,26780920,26780921,26780922,26780923,26780924?tags=Carton_gris,environnement,papier,Carton_brun,autre_refus,plastique,cartonnette,flou,kraft,metal,mal_croppe,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26780889]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512] map_info['map_portfolio_photo'] : {26780889: [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512, 1383363481, 1383363480, 1383363478, 1383363457, 1383363453, 1383363449, 1383363445, 1383363442, 1383363439, 1383363420, 1383363415, 1383363413, 1383363410, 1383363407, 1383363388, 1383363384, 1383363380, 1383363378, 1383363374, 1383363356, 1383363353, 1383363349, 1383363346, 1383363344, 1383363342, 1383363334, 1383363330, 1383363320, 1383363302, 1383363295, 1383363291, 1383363289, 1383363285, 1383363279, 1383363278, 1383363277, 1383363275, 1383363274, 1383363273, 1383363270, 1383363269, 1383363266, 1383363265, 1383363262, 1383363261, 1383363250, 1383363248, 1383363243, 1383363238, 1383363235, 1383363231, 1383363208, 1383363205, 1383363203, 1383363202, 1383363198, 1383363194, 1383363193, 1383363185, 1383363183, 1383363181, 1383363164, 1383363161, 1383363152, 1383363149, 1383363145]} final : False mtd_id 4302 list_pids : [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512] Looping around the photos to save general results len do output : 1 /26780889. 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, '3709162') ('4302', '26780889', '1383365434', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365432', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365430', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365428', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365424', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365230', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365167', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365095', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365030', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364896', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364894', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364891', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364653', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364586', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364510', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364437', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364372', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363649', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363572', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363562', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363555', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363529', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363524', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363520', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363517', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363512', None, None, None, None, None, '3709162') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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, '26780889', "{'Carton_gris': 26780900, 'environnement': 26780901, 'papier': 26780902, 'Carton_brun': 26780903, 'autre_refus': 26780904, 'plastique': 26780905, 'cartonnette': 26780906, 'flou': 26780907, 'kraft': 26780908, 'metal': 26780909, 'mal_croppe': 26780910, 'Teint_Dans_La_Masse': 26780912}", None, None, None, None, '3709162'), ('4302', '26780889', '1383365434', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365432', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365430', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365428', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365424', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365230', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365167', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365095', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365030', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364896', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364894', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364891', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364653', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364586', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364510', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364437', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364372', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363649', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363572', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363562', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363555', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363529', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363524', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363520', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363517', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363512', None, None, None, None, None, '3709162')] time used for this insertion : 0.05275750160217285 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.699538230895996 time spend to save output : 0.0531315803527832 total time spend for step 1 : 1.7526698112487793 step2:final Fri Sep 12 08:49:29 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 (26780889) 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 26780889 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1383363164,1383363334,1383363208,1383363161,1383363330,1383363205,1383363152,1383363279,1383363278,1383363203,1383363149,1383363277,1383363275,1383363202,1383363145,1383363198,1383363194,1383363193,1383363185,1383363183,1383363181,1383363250,1383363248,1383363243,1383363238,1383363235,1383363231,1383363274,1383363273,1383363270,1383363269,1383363266,1383363265,1383363262,1383363261,1383363320,1383363302,1383363295,1383363291,1383363289,1383363285,1383363356,1383363353,1383363349,1383363346,1383363344,1383363342,1383363388,1383363384,1383363380,1383363378,1383363374,1383363420,1383363415,1383363413,1383363410,1383363407,1383363457,1383363453,1383363449,1383363445,1383363442,1383363439,1383363481,1383363480,1383363478,1383363529,1383363524,1383363520,1383363517,1383363512,1383363649,1383363572,1383363562,1383364653,1383363555,1383364586,1383364510,1383364437,1383364372,1383364896,1383364894,1383364891,1383365230,1383365434,1383365167,1383365432,1383365095,1383365430,1383365030,1383365428,1383365424); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26780889]) Inside saveOutput : final : False verbose : True original output for save of step final : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} new output for save of step final : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512] map_info['map_portfolio_photo'] : {26780889: [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512, 1383363481, 1383363480, 1383363478, 1383363457, 1383363453, 1383363449, 1383363445, 1383363442, 1383363439, 1383363420, 1383363415, 1383363413, 1383363410, 1383363407, 1383363388, 1383363384, 1383363380, 1383363378, 1383363374, 1383363356, 1383363353, 1383363349, 1383363346, 1383363344, 1383363342, 1383363334, 1383363330, 1383363320, 1383363302, 1383363295, 1383363291, 1383363289, 1383363285, 1383363279, 1383363278, 1383363277, 1383363275, 1383363274, 1383363273, 1383363270, 1383363269, 1383363266, 1383363265, 1383363262, 1383363261, 1383363250, 1383363248, 1383363243, 1383363238, 1383363235, 1383363231, 1383363208, 1383363205, 1383363203, 1383363202, 1383363198, 1383363194, 1383363193, 1383363185, 1383363183, 1383363181, 1383363164, 1383363161, 1383363152, 1383363149, 1383363145]} final : False mtd_id 4302 list_pids : [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512] Looping around the photos to save general results len do output : 26 /1383365434.Didn't retrieve data . /1383365432.Didn't retrieve data . /1383365430.Didn't retrieve data . /1383365428.Didn't retrieve data . /1383365424.Didn't retrieve data . /1383365230.Didn't retrieve data . /1383365167.Didn't retrieve data . /1383365095.Didn't retrieve data . /1383365030.Didn't retrieve data . /1383364896.Didn't retrieve data . /1383364894.Didn't retrieve data . /1383364891.Didn't retrieve data . /1383364653.Didn't retrieve data . /1383364586.Didn't retrieve data . /1383364510.Didn't retrieve data . /1383364437.Didn't retrieve data . /1383364372.Didn't retrieve data . /1383363649.Didn't retrieve data . /1383363572.Didn't retrieve data . /1383363562.Didn't retrieve data . /1383363555.Didn't retrieve data . /1383363529.Didn't retrieve data . /1383363524.Didn't retrieve data . /1383363520.Didn't retrieve data . /1383363517.Didn't retrieve data . /1383363512.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, '3709162') ('4302', '26780889', '1383365434', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365432', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365430', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365428', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365424', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365230', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365167', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365095', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365030', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364896', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364894', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364891', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364653', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364586', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364510', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364437', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364372', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363649', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363572', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363562', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363555', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363529', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363524', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363520', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363517', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363512', None, None, None, None, None, '3709162') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 78 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', '26780889', '1383365434', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383365432', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383365430', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383365428', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383365424', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383365230', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383365167', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383365095', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383365030', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383364896', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383364894', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383364891', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383364653', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383364586', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383364510', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383364437', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383364372', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383363649', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383363572', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383363562', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383363555', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383363529', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383363524', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383363520', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383363517', '0.0', None, None, None, None, '3709162'), ('4302', '26780889', '1383363512', '0.0', None, None, None, None, '3709162')] time used for this insertion : 0.01708078384399414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0576016902923584 time spend to save output : 0.018664121627807617 total time spend for step 2 : 0.07626581192016602 step3:velours_tree Fri Sep 12 08:49:29 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 : {26780889: [{'Carton_gris': 26780900, 'environnement': 26780901, 'papier': 26780902, 'Carton_brun': 26780903, 'autre_refus': 26780904, 'plastique': 26780905, 'cartonnette': 26780906, 'flou': 26780907, 'kraft': 26780908, 'metal': 26780909, 'mal_croppe': 26780910, 'Teint_Dans_La_Masse': 26780912}]} input_args_next_step : {26780889: ()} output_args : {26780889: [{'Carton_gris': 26780900, 'environnement': 26780901, 'papier': 26780902, 'Carton_brun': 26780903, 'autre_refus': 26780904, 'plastique': 26780905, 'cartonnette': 26780906, 'flou': 26780907, 'kraft': 26780908, 'metal': 26780909, 'mal_croppe': 26780910, 'Teint_Dans_La_Masse': 26780912}]} args : 26780889 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 26780900, 'environnement': 26780901, 'papier': 26780902, 'Carton_brun': 26780903, 'autre_refus': 26780904, 'plastique': 26780905, 'cartonnette': 26780906, 'flou': 26780907, 'kraft': 26780908, 'metal': 26780909, 'mal_croppe': 26780910, 'Teint_Dans_La_Masse': 26780912},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26780889) 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([26780889]) 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.2839176654815674 time spend to save output : 4.5299530029296875e-05 total time spend for step 3 : 0.2839629650115967 step4:send_mail_cod Fri Sep 12 08:49:29 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 : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} input_args_next_step : {1383365434: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383365434 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383365432 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383365430 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383365428 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383365424 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383365230 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383365167 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383365095 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383365030 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383364896 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383364894 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383364891 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383364653 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383364586 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383364510 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383364437 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383364372 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383363649 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383363572 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383363562 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383363555 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383363529 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383363524 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383363520 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383363517 depend.output_id : 0 input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ()} output_args : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',)} args : 1383363512 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 : {26780889: [{'Carton_gris': 26780900, 'environnement': 26780901, 'papier': 26780902, 'Carton_brun': 26780903, 'autre_refus': 26780904, 'plastique': 26780905, 'cartonnette': 26780906, 'flou': 26780907, 'kraft': 26780908, 'metal': 26780909, 'mal_croppe': 26780910, 'Teint_Dans_La_Masse': 26780912}]} input_args_next_step : {1383365434: ('0.0',), 1383365432: ('0.0',), 1383365430: ('0.0',), 1383365428: ('0.0',), 1383365424: ('0.0',), 1383365230: ('0.0',), 1383365167: ('0.0',), 1383365095: ('0.0',), 1383365030: ('0.0',), 1383364896: ('0.0',), 1383364894: ('0.0',), 1383364891: ('0.0',), 1383364653: ('0.0',), 1383364586: ('0.0',), 1383364510: ('0.0',), 1383364437: ('0.0',), 1383364372: ('0.0',), 1383363649: ('0.0',), 1383363572: ('0.0',), 1383363562: ('0.0',), 1383363555: ('0.0',), 1383363529: ('0.0',), 1383363524: ('0.0',), 1383363520: ('0.0',), 1383363517: ('0.0',), 1383363512: ('0.0',), 26780889: ()} output_args : {26780889: [{'Carton_gris': 26780900, 'environnement': 26780901, 'papier': 26780902, 'Carton_brun': 26780903, 'autre_refus': 26780904, 'plastique': 26780905, 'cartonnette': 26780906, 'flou': 26780907, 'kraft': 26780908, 'metal': 26780909, 'mal_croppe': 26780910, 'Teint_Dans_La_Masse': 26780912}]} args : 26780889 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 :27, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26780889) 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 (1383365434,1383365432,1383365430,1383365428,1383365424,1383365230,1383365167,1383365095,1383365030,1383364896,1383364894,1383364891,1383364653,1383364586,1383364510,1383364437,1383364372,1383363649,1383363572,1383363562,1383363555,1383363529,1383363524,1383363520,1383363517,1383363512) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1383363512 begin to download photo : 1383363562 begin to download photo : 1383364586 begin to download photo : 1383365095 begin to download photo : 1383365432 download finish for photo 1383364586 begin to download photo : 1383364653 download finish for photo 1383365095 begin to download photo : 1383365167 download finish for photo 1383363562 begin to download photo : 1383363572 download finish for photo 1383365432 begin to download photo : 1383365434 download finish for photo 1383363512 begin to download photo : 1383363517 download finish for photo 1383364653 begin to download photo : 1383364891 download finish for photo 1383363572 begin to download photo : 1383363649 download finish for photo 1383365167 begin to download photo : 1383365230 download finish for photo 1383365434 download finish for photo 1383363517 begin to download photo : 1383363520 download finish for photo 1383364891 begin to download photo : 1383364894 download finish for photo 1383365230 begin to download photo : 1383365424 download finish for photo 1383363649 begin to download photo : 1383364372 download finish for photo 1383363520 begin to download photo : 1383363524 download finish for photo 1383364894 begin to download photo : 1383364896 download finish for photo 1383365424 begin to download photo : 1383365428 download finish for photo 1383364372 begin to download photo : 1383364437 download finish for photo 1383364896 begin to download photo : 1383365030 download finish for photo 1383363524 begin to download photo : 1383363529 download finish for photo 1383365428 begin to download photo : 1383365430 download finish for photo 1383365030 download finish for photo 1383364437 begin to download photo : 1383364510 download finish for photo 1383363529 begin to download photo : 1383363555 download finish for photo 1383365430 download finish for photo 1383364510 download finish for photo 1383363555 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette267809041757659770/ imagette267809051757659770/ imagette267809061757659770/ imagette267809071757659770/ imagette267809081757659770/ imagette267809091757659770/ imagette267809101757659770/ imagette267809001757659770/ imagette267809031757659770/ imagette267809121757659770/ length of list_filenames : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P26780889_12-09-2025_08_49_30.pdf 26780904 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=26780904 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267809041757659770 26780905 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=26780905 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267809051757659770 26780906 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=26780906 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267809061757659770 26780907 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=26780907 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267809071757659770 26780908 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=26780908 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267809081757659770 26780909 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=26780909 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267809091757659770 26780910 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=26780910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267809101757659770 26780900 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=26780900 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267809001757659770 26780903 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=26780903 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267809031757659770 26780912 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=26780912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267809121757659770 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26780889 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26780913,26780914,26780915,26780916,26780917,26780918,26780919,26780920,26780921,26780922,26780923,26780924?tags=Carton_gris,environnement,papier,Carton_brun,autre_refus,plastique,cartonnette,flou,kraft,metal,mal_croppe,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1383365434] : ('0.0',) no score found for photo 1383365434 We are sending mail with results at report@fotonower.com args[1383365432] : ('0.0',) no score found for photo 1383365432 We are sending mail with results at report@fotonower.com args[1383365430] : ('0.0',) no score found for photo 1383365430 We are sending mail with results at report@fotonower.com args[1383365428] : ('0.0',) no score found for photo 1383365428 We are sending mail with results at report@fotonower.com args[1383365424] : ('0.0',) no score found for photo 1383365424 We are sending mail with results at report@fotonower.com args[1383365230] : ('0.0',) no score found for photo 1383365230 We are sending mail with results at report@fotonower.com args[1383365167] : ('0.0',) no score found for photo 1383365167 We are sending mail with results at report@fotonower.com args[1383365095] : ('0.0',) no score found for photo 1383365095 We are sending mail with results at report@fotonower.com args[1383365030] : ('0.0',) no score found for photo 1383365030 We are sending mail with results at report@fotonower.com args[1383364896] : ('0.0',) no score found for photo 1383364896 We are sending mail with results at report@fotonower.com args[1383364894] : ('0.0',) no score found for photo 1383364894 We are sending mail with results at report@fotonower.com args[1383364891] : ('0.0',) no score found for photo 1383364891 We are sending mail with results at report@fotonower.com args[1383364653] : ('0.0',) no score found for photo 1383364653 We are sending mail with results at report@fotonower.com args[1383364586] : ('0.0',) no score found for photo 1383364586 We are sending mail with results at report@fotonower.com args[1383364510] : ('0.0',) no score found for photo 1383364510 We are sending mail with results at report@fotonower.com args[1383364437] : ('0.0',) no score found for photo 1383364437 We are sending mail with results at report@fotonower.com args[1383364372] : ('0.0',) no score found for photo 1383364372 We are sending mail with results at report@fotonower.com args[1383363649] : ('0.0',) no score found for photo 1383363649 We are sending mail with results at report@fotonower.com args[1383363572] : ('0.0',) no score found for photo 1383363572 We are sending mail with results at report@fotonower.com args[1383363562] : ('0.0',) no score found for photo 1383363562 We are sending mail with results at report@fotonower.com args[1383363555] : ('0.0',) no score found for photo 1383363555 We are sending mail with results at report@fotonower.com args[1383363529] : ('0.0',) no score found for photo 1383363529 We are sending mail with results at report@fotonower.com args[1383363524] : ('0.0',) no score found for photo 1383363524 We are sending mail with results at report@fotonower.com args[1383363520] : ('0.0',) no score found for photo 1383363520 We are sending mail with results at report@fotonower.com args[1383363517] : ('0.0',) no score found for photo 1383363517 We are sending mail with results at report@fotonower.com args[1383363512] : ('0.0',) no score found for photo 1383363512 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26780889 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780889_12-09-2025_08_49_30.pdf results_Auto_P26780889_12-09-2025_08_49_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780889_12-09-2025_08_49_30.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26780889','results_Auto_P26780889_12-09-2025_08_49_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780889_12-09-2025_08_49_30.pdf','pdf','','0.2','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26780889]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512] map_info['map_portfolio_photo'] : {26780889: [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512, 1383363481, 1383363480, 1383363478, 1383363457, 1383363453, 1383363449, 1383363445, 1383363442, 1383363439, 1383363420, 1383363415, 1383363413, 1383363410, 1383363407, 1383363388, 1383363384, 1383363380, 1383363378, 1383363374, 1383363356, 1383363353, 1383363349, 1383363346, 1383363344, 1383363342, 1383363334, 1383363330, 1383363320, 1383363302, 1383363295, 1383363291, 1383363289, 1383363285, 1383363279, 1383363278, 1383363277, 1383363275, 1383363274, 1383363273, 1383363270, 1383363269, 1383363266, 1383363265, 1383363262, 1383363261, 1383363250, 1383363248, 1383363243, 1383363238, 1383363235, 1383363231, 1383363208, 1383363205, 1383363203, 1383363202, 1383363198, 1383363194, 1383363193, 1383363185, 1383363183, 1383363181, 1383363164, 1383363161, 1383363152, 1383363149, 1383363145]} final : False mtd_id 4302 list_pids : [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512] 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, '3709162') ('4302', '26780889', '1383365434', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365432', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365430', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365428', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365424', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365230', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365167', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365095', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365030', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364896', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364894', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364891', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364653', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364586', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364510', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364437', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364372', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363649', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363572', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363562', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363555', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363529', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363524', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363520', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363517', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363512', None, None, None, None, None, '3709162') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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', '26780889', '1383365434', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365432', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365430', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365428', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365424', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365230', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365167', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365095', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365030', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364896', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364894', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364891', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364653', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364586', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364510', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364437', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364372', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363649', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363572', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363562', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363555', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363529', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363524', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363520', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363517', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363512', None, None, None, None, None, '3709162')] time used for this insertion : 0.015748977661132812 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.5466325283050537 time spend to save output : 0.01620030403137207 total time spend for step 4 : 2.562832832336426 step5:split_time_score Fri Sep 12 08:49:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26780889'] 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 : [('26780889',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26780889) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1383365432: {'path': 'temp/1757659769_1581468_1383365432_5322cdac22bb5cc0377b237479c0b5b9.jpg', 'extension': 'jpg'}, 1383365434: {'path': 'temp/1757659769_1581468_1383365434_4e7e03bedce25e6cc50a747a77a6480a.jpg', 'extension': 'jpg'}, 1383364586: {'path': 'temp/1757659769_1581468_1383364586_345d09d882c9866e209b3fa865681928.jpg', 'extension': 'jpg'}, 1383364653: {'path': 'temp/1757659769_1581468_1383364653_99283f1ce57953e1d376acc15b57e4ab.jpg', 'extension': 'jpg'}, 1383364891: {'path': 'temp/1757659769_1581468_1383364891_d03d663ae44e70a8c09ec171741c59e4.jpg', 'extension': 'jpg'}, 1383364894: {'path': 'temp/1757659769_1581468_1383364894_ed61969f1d6a0fe11f31b08e6e5fcdc3.jpg', 'extension': 'jpg'}, 1383364896: {'path': 'temp/1757659769_1581468_1383364896_252de601fad13507a0d1fb7b8482d732.jpg', 'extension': 'jpg'}, 1383365030: {'path': 'temp/1757659769_1581468_1383365030_481a5cf38c4784e3cf12b33e2fe72b9d.jpg', 'extension': 'jpg'}, 1383365095: {'path': 'temp/1757659769_1581468_1383365095_be927a5608a7c875c088fc3093842d9f.jpg', 'extension': 'jpg'}, 1383365167: {'path': 'temp/1757659769_1581468_1383365167_84313eba6c8e8026ebec46c599ffb96f.jpg', 'extension': 'jpg'}, 1383365230: {'path': 'temp/1757659769_1581468_1383365230_aec6968e7e04d0ebea886e7e4a2af0c0.jpg', 'extension': 'jpg'}, 1383365424: {'path': 'temp/1757659769_1581468_1383365424_fc001bd3c78277b26e6e7e16d4521200.jpg', 'extension': 'jpg'}, 1383365428: {'path': 'temp/1757659769_1581468_1383365428_e4465574457327e1e451bbf6f84f4b58.jpg', 'extension': 'jpg'}, 1383365430: {'path': 'temp/1757659769_1581468_1383365430_de5c05255c62e2fedf0ec0d18401b311.jpg', 'extension': 'jpg'}, 1383363562: {'path': 'temp/1757659769_1581468_1383363562_cabe122e4ca20c908635721432e43fc9.jpg', 'extension': 'jpg'}, 1383363572: {'path': 'temp/1757659769_1581468_1383363572_a33b19483c11c3ca500380c198fa946b.jpg', 'extension': 'jpg'}, 1383363649: {'path': 'temp/1757659769_1581468_1383363649_00e10c6b502278ed9d46b5ca69eef2d6.jpg', 'extension': 'jpg'}, 1383364372: {'path': 'temp/1757659769_1581468_1383364372_652a6882b7a86b9b8307715753a0eaef.jpg', 'extension': 'jpg'}, 1383364437: {'path': 'temp/1757659769_1581468_1383364437_c72cf874efba5c6a6258cbc16482b85f.jpg', 'extension': 'jpg'}, 1383364510: {'path': 'temp/1757659769_1581468_1383364510_48c4bed9622c230be7be0989db2b3bfa.jpg', 'extension': 'jpg'}, 1383363512: {'path': 'temp/1757659769_1581468_1383363512_9ba061547e332a602cbe942d96bafdfc.jpg', 'extension': 'jpg'}, 1383363517: {'path': 'temp/1757659769_1581468_1383363517_270578d382afc1b92fc23b12fa47c588.jpg', 'extension': 'jpg'}, 1383363520: {'path': 'temp/1757659769_1581468_1383363520_15d58baa29be3c77f37e9e5de1d0ce48.jpg', 'extension': 'jpg'}, 1383363524: {'path': 'temp/1757659769_1581468_1383363524_0bcab478a75e29808f6880fb648764ed.jpg', 'extension': 'jpg'}, 1383363529: {'path': 'temp/1757659769_1581468_1383363529_0e6bc5a82af4226b1f83833f96183735.jpg', 'extension': 'jpg'}, 1383363555: {'path': 'temp/1757659769_1581468_1383363555_03e3d59d310f41011c1b0acdc5de3e13.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 = 26780889; (('arc_en_ciel_jrm_live',),) 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 = 26780889 group by h (('08', 92),) 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=26780889 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 (26780889) 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 (26780889) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12092025 26780889 Nombre de photos uploadées : 92 / 23040 (0%) 12092025 26780889 Nombre de photos taguées (types de déchets): 0 / 92 (0%) 12092025 26780889 Nombre de photos taguées (volume) : 0 / 92 (0%) [{'photo_id': 1383363164, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/8e4d8c525e248eecc12086f714ec3057.jpg', 'username': None, 'uploaded_at': 1757658668, 'text': 'image_12092025_08_30_04_10223.jpg'}, {'photo_id': 1383363334, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/b014276563535aaaf170d18a34e353c1.jpg', 'username': None, 'uploaded_at': 1757658942, 'text': 'image_12092025_08_30_04_10223.jpg'}, {'photo_id': 1383363208, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/4e4b32596469b1608bc3539576b08013.jpg', 'username': None, 'uploaded_at': 1757658768, 'text': 'image_12092025_08_30_04_10223.jpg'}, {'photo_id': 1383363161, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/3e2e9abfe26b265394cee871dae50c13.jpg', 'username': None, 'uploaded_at': 1757658668, 'text': 'image_12092025_08_30_14_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ???????????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003957271575927734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 26780889, '2025-09-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-09-12' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2274539,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21115684509277344 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= 2274539 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2274539, 'dashboard_run_id': 2283525, 'mtr_portfolio_id': 26780037, 'dashboard_result_id': 15070900, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780037_12-09-2025_08_17_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26780066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26780067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26780068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26780069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26780070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26780071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26780072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26780073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26780074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26780075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26780076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26780077, 'pht': 3726}}"}, {'dashboat_entry_day': 2274539, 'dashboard_run_id': 2283525, 'mtr_portfolio_id': 26780421, 'dashboard_result_id': 15070901, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780421_12-09-2025_08_39_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26780432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26780433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26780434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26780435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26780436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26780437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26780438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26780439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26780440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26780441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26780442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26780443, 'pht': 3726}}"}, {'dashboat_entry_day': 2274539, 'dashboard_run_id': 2283525, 'mtr_portfolio_id': 26780889, 'dashboard_result_id': 15070902, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780889_12-09-2025_08_41_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26780900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26780901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26780902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26780903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26780904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26780905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26780906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26780907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26780908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26780909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26780910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26780912, 'pht': 3726}}"}, {'dashboat_entry_day': 2274539, 'dashboard_run_id': 2283525, 'mtr_portfolio_id': 26781097, 'dashboard_result_id': 15070903, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26781097_12-09-2025_08_49_02.pdf'}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26780037 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26780037 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26780037 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26780037 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26780037 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26780037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780037_12-09-2025_08_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26780037 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780037_12-09-2025_08_17_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26780066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26780067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26780068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26780069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26780070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26780071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26780072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26780073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26780074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26780075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26780076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26780077, 'pht': 3726}}" where mtr_portfolio_id = 26780037 and dashboard_run_id = 2283525 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 = 26780421 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26780421 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26780421 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26780421 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26780421 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26780421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780421_12-09-2025_08_39_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26780421 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780421_12-09-2025_08_39_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26780432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26780433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26780434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26780435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26780436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26780437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26780438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26780439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26780440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26780441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26780442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26780443, 'pht': 3726}}" where mtr_portfolio_id = 26780421 and dashboard_run_id = 2283525 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 = 26780889 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26780889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26780889 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26780889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26780889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26780889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780889_12-09-2025_08_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26780889 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26780889_12-09-2025_08_49_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26780900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26780901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26780902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26780903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26780904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26780905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26780906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26780907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26780908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26780909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26780910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26780912, 'pht': 3726}}" where mtr_portfolio_id = 26780889 and dashboard_run_id = 2283525 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 = 26781097 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26781097 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26781097 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26781097 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26781097 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26781097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26781097_12-09-2025_08_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26781097 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26781097_12-09-2025_08_49_02.pdf'}" where mtr_portfolio_id = 26781097 and dashboard_run_id = 2283525 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26780037,26780421,26780889,26781097) result : ((1383359622,), (1383359627,), (1383359632,), (1383359684,), (1383359731,), (1383359734,), (1383359736,), (1383359740,), (1383359742,), (1383359745,), (1383359754,), (1383359757,), (1383359762,), (1383359765,), (1383359787,), (1383359791,), (1383359793,), (1383359795,), (1383359797,), (1383359802,), (1383359814,), (1383359818,), (1383359821,), (1383359822,), (1383359823,), (1383359824,), (1383359834,), (1383359838,), (1383359842,), (1383359848,), (1383359852,), (1383359871,), (1383359877,), (1383359879,), (1383359885,), (1383359890,), (1383360475,), (1383360543,), (1383360612,), (1383360674,), (1383360744,), (1383360985,), (1383361017,), (1383361027,), (1383361029,), (1383361060,), (1383361118,), (1383361119,), (1383361121,), (1383361124,), (1383361127,), (1383361130,), (1383361138,), (1383361141,), (1383361144,), (1383361147,), (1383361161,), (1383361166,), (1383361170,), (1383361173,), (1383361175,), (1383361177,), (1383361189,), (1383361194,), (1383361196,), (1383361219,), (1383361220,), (1383361221,), (1383361223,), (1383361244,), (1383361248,), (1383361251,), (1383361254,), (1383361258,), (1383361275,), (1383361277,), (1383361279,), (1383361281,), (1383361284,), (1383361288,), (1383361303,), (1383361309,), (1383361312,), (1383361318,), (1383361320,), (1383361326,), (1383361343,), (1383361335,), (1383361339,), (1383361367,), (1383361369,), (1383361370,), (1383361372,), (1383361375,), (1383361403,), (1383361407,), (1383361410,), (1383361414,), (1383361419,), (1383361444,), (1383361446,), (1383361456,), (1383361525,), (1383361593,), (1383362338,), (1383362404,), (1383362407,), (1383362411,), (1383362441,), (1383362443,), (1383362444,), (1383362451,), (1383362858,), (1383362865,), (1383362867,), (1383362870,), (1383362873,), (1383362877,), (1383362890,), (1383362894,), (1383362896,), (1383362899,), (1383362902,), (1383362915,), (1383362920,), (1383362922,), (1383362926,), (1383362930,), (1383362946,), (1383362949,), (1383362952,), (1383362956,), (1383362960,), (1383362962,), (1383362983,), (1383362984,), (1383362986,), (1383362989,), (1383362995,), (1383363021,), (1383363025,), (1383363031,), (1383363035,), (1383363042,), (1383363049,), (1383363053,), (1383363056,), (1383363077,), (1383363081,), (1383363106,), (1383363109,), (1383363110,), (1383363114,), (1383363121,), (1383363126,), (1383363168,), (1383363212,), (1383363337,), (1383363145,), (1383363149,), (1383363152,), (1383363161,), (1383363164,), (1383363181,), (1383363183,), (1383363185,), (1383363193,), (1383363194,), (1383363198,), (1383363202,), (1383363203,), (1383363205,), (1383363208,), (1383363231,), (1383363235,), (1383363238,), (1383363243,), (1383363248,), (1383363250,), (1383363261,), (1383363262,), (1383363265,), (1383363266,), (1383363269,), (1383363270,), (1383363273,), (1383363274,), (1383363275,), (1383363277,), (1383363278,), (1383363279,), (1383363285,), (1383363289,), (1383363291,), (1383363295,), (1383363302,), (1383363320,), (1383363330,), (1383363334,), (1383363342,), (1383363344,), (1383363346,), (1383363349,), (1383363353,), (1383363356,), (1383363374,), (1383363378,), (1383363380,), (1383363384,), (1383363388,), (1383363407,), (1383363410,), (1383363413,), (1383363415,), (1383363420,), (1383363439,), (1383363442,), (1383363445,), (1383363449,), (1383363453,), (1383363457,), (1383363478,), (1383363480,), (1383363481,), (1383363512,), (1383363517,), (1383363520,), (1383363524,), (1383363529,), (1383363555,), (1383363562,), (1383363572,), (1383363649,), (1383364372,), (1383364437,), (1383364510,), (1383364586,), (1383364653,), (1383364891,), (1383364894,), (1383364896,), (1383365030,), (1383365095,), (1383365167,), (1383365230,), (1383365424,), (1383365428,), (1383365430,), (1383365432,), (1383365434,), (1383365409,), (1383365412,), (1383365415,), (1383365419,), (1383365421,), (1383365443,), (1383365446,), (1383365450,), (1383365456,), (1383365481,), (1383365485,), (1383365489,), (1383365493,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12092025': {'nb_upload': 92, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26780889]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512] map_info['map_portfolio_photo'] : {26780889: [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512, 1383363481, 1383363480, 1383363478, 1383363457, 1383363453, 1383363449, 1383363445, 1383363442, 1383363439, 1383363420, 1383363415, 1383363413, 1383363410, 1383363407, 1383363388, 1383363384, 1383363380, 1383363378, 1383363374, 1383363356, 1383363353, 1383363349, 1383363346, 1383363344, 1383363342, 1383363334, 1383363330, 1383363320, 1383363302, 1383363295, 1383363291, 1383363289, 1383363285, 1383363279, 1383363278, 1383363277, 1383363275, 1383363274, 1383363273, 1383363270, 1383363269, 1383363266, 1383363265, 1383363262, 1383363261, 1383363250, 1383363248, 1383363243, 1383363238, 1383363235, 1383363231, 1383363208, 1383363205, 1383363203, 1383363202, 1383363198, 1383363194, 1383363193, 1383363185, 1383363183, 1383363181, 1383363164, 1383363161, 1383363152, 1383363149, 1383363145]} final : True mtd_id 4302 list_pids : [1383365434, 1383365432, 1383365430, 1383365428, 1383365424, 1383365230, 1383365167, 1383365095, 1383365030, 1383364896, 1383364894, 1383364891, 1383364653, 1383364586, 1383364510, 1383364437, 1383364372, 1383363649, 1383363572, 1383363562, 1383363555, 1383363529, 1383363524, 1383363520, 1383363517, 1383363512] Looping around the photos to save general results len do output : 1 /26780889Didn'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, '3709162') ('4302', '26780889', '1383365434', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365432', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365430', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365428', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365424', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365230', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365167', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365095', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383365030', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364896', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364894', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364891', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364653', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364586', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364510', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364437', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383364372', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363649', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363572', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363562', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363555', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363529', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363524', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363520', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363517', None, None, None, None, None, '3709162') ('4302', None, None, None, None, None, None, None, '3709162') ('4302', '26780889', '1383363512', None, None, None, None, None, '3709162') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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, '26780889', 'None', None, None, None, None, '3709162'), ('4302', '26780889', '1383365434', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365432', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365430', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365428', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365424', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365230', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365167', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365095', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383365030', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364896', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364894', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364891', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364653', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364586', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364510', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364437', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383364372', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363649', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363572', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363562', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363555', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363529', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363524', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363520', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363517', None, None, None, None, None, '3709162'), ('4302', '26780889', '1383363512', None, None, None, None, None, '3709162')] time used for this insertion : 0.017316102981567383 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.45296502113342285 time spend to save output : 0.01779913902282715 total time spend for step 5 : 0.47076416015625 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 (3709162) 2.53user 2.18system 0:07.62elapsed 61%CPU (0avgtext+0avgdata 166732maxresident)k 720inputs+13784outputs (8major+80209minor)pagefaults 0swaps