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 : 4127944 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 (2579752) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2579752) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479465 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2579752'] with mtr_portfolio_ids : ['20479465'] and first list_photo_ids : [] new path : /proc/4127944/ Name: python3 Umask: 0002 State: R (running) Tgid: 4127944 Ngid: 0 Pid: 4127944 PPid: 4127943 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4127944 NSpid: 4127944 NSpgid: 4124540 NSsid: 4124540 VmPeak: 1106924 kB VmSize: 1106924 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99504 kB VmRSS: 99504 kB RssAnon: 59744 kB RssFile: 39760 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 100 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4127944', 'Ngid': '0', 'Pid': '4127944', 'PPid': '4127943', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4127944', 'NSpid': '4127944', 'NSpgid': '4124540', 'NSsid': '4124540', 'VmPeak': '1106924 kB', 'VmSize': '1106924 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99504 kB', 'VmRSS': '99504 kB', 'RssAnon': '59744 kB', 'RssFile': '39760 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '100'} ('datou_batch_current', '4127944', '1106924', '0', '1106924', '865676', '99504', b'', 'marlene', '2579752') 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 (20479465) 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 (2579752 ) ) 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 (20479465) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1337130781, 'portfolio_id': 20479465}, {'photo_id': 1337130774, 'portfolio_id': 20479465}, {'photo_id': 1337130694, 'portfolio_id': 20479465}, {'photo_id': 1337130633, 'portfolio_id': 20479465}, {'photo_id': 1337130256, 'portfolio_id': 20479465}, {'photo_id': 1337130249, 'portfolio_id': 20479465}, {'photo_id': 1337130150, 'portfolio_id': 20479465}, {'photo_id': 1337130035, 'portfolio_id': 20479465}, {'photo_id': 1337130031, 'portfolio_id': 20479465}, {'photo_id': 1337130029, 'portfolio_id': 20479465}, {'photo_id': 1337129935, 'portfolio_id': 20479465}, {'photo_id': 1337129931, 'portfolio_id': 20479465}, {'photo_id': 1337129674, 'portfolio_id': 20479465}, {'photo_id': 1337128876, 'portfolio_id': 20479465}, {'photo_id': 1337128708, 'portfolio_id': 20479465}, {'photo_id': 1337128701, 'portfolio_id': 20479465}, {'photo_id': 1337128696, 'portfolio_id': 20479465}, {'photo_id': 1337128692, 'portfolio_id': 20479465}, {'photo_id': 1337128685, 'portfolio_id': 20479465}, {'photo_id': 1337128567, 'portfolio_id': 20479465}, {'photo_id': 1337128006, 'portfolio_id': 20479465}, {'photo_id': 1337128001, 'portfolio_id': 20479465}, {'photo_id': 1337127999, 'portfolio_id': 20479465}, {'photo_id': 1337127995, 'portfolio_id': 20479465}, {'photo_id': 1337127992, 'portfolio_id': 20479465}, {'photo_id': 1337127990, 'portfolio_id': 20479465}, {'photo_id': 1337127957, 'portfolio_id': 20479465}, {'photo_id': 1337127952, 'portfolio_id': 20479465}, {'photo_id': 1337127947, 'portfolio_id': 20479465}, {'photo_id': 1337127945, 'portfolio_id': 20479465}, {'photo_id': 1337127839, 'portfolio_id': 20479465}, {'photo_id': 1337127837, 'portfolio_id': 20479465}, {'photo_id': 1337127834, 'portfolio_id': 20479465}, {'photo_id': 1337127824, 'portfolio_id': 20479465}, {'photo_id': 1337127822, 'portfolio_id': 20479465}, {'photo_id': 1337127790, 'portfolio_id': 20479465}, {'photo_id': 1337127786, 'portfolio_id': 20479465}, {'photo_id': 1337127783, 'portfolio_id': 20479465}, {'photo_id': 1337127747, 'portfolio_id': 20479465}, {'photo_id': 1337127745, 'portfolio_id': 20479465}, {'photo_id': 1337127299, 'portfolio_id': 20479465}, {'photo_id': 1337127297, 'portfolio_id': 20479465}, {'photo_id': 1337127285, 'portfolio_id': 20479465}, {'photo_id': 1337127282, 'portfolio_id': 20479465}, {'photo_id': 1337127106, 'portfolio_id': 20479465}, {'photo_id': 1337127065, 'portfolio_id': 20479465}, {'photo_id': 1337126850, 'portfolio_id': 20479465}, {'photo_id': 1337126571, 'portfolio_id': 20479465}, {'photo_id': 1337126424, 'portfolio_id': 20479465}] map_portfolio_id_photo_id: {20479465: [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674, 1337128876, 1337128708, 1337128701, 1337128696, 1337128692, 1337128685, 1337128567, 1337128006, 1337128001, 1337127999, 1337127995, 1337127992, 1337127990, 1337127957, 1337127952, 1337127947, 1337127945, 1337127839, 1337127837, 1337127834, 1337127824, 1337127822, 1337127790, 1337127786, 1337127783, 1337127747, 1337127745, 1337127299, 1337127297, 1337127285, 1337127282, 1337127106, 1337127065, 1337126850, 1337126571, 1337126424]} ##### 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.01690959930419922 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Feb 12 16:11:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20479465) 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 : 20479465 get user id for portfolio 20479465 get sub ptf for main ptf 20479465, type 3726 and hashtags ['plastique', 'Carton_gris', 'Teint_Dans_La_Masse', 'metal', 'kraft', 'papier', 'flou', 'Carton_brun', 'autre_refus', 'cartonnette', 'environnement', 'mal_croppe'] 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`=20479465 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','Teint_Dans_La_Masse','metal','kraft','papier','flou','Carton_brun','autre_refus','cartonnette','environnement','mal_croppe')) 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`=20479465 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','Teint_Dans_La_Masse','metal','kraft','papier','flou','Carton_brun','autre_refus','cartonnette','environnement','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 20479465, 'sub_port_id': 20479478, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150569, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'Carton_gris': {'main_port_id': 20479465, 'sub_port_id': 20479479, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150570, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'kraft': {'main_port_id': 20479465, 'sub_port_id': 20479480, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150571, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'mal_croppe': {'main_port_id': 20479465, 'sub_port_id': 20479481, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150572, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'papier': {'main_port_id': 20479465, 'sub_port_id': 20479482, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150573, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'flou': {'main_port_id': 20479465, 'sub_port_id': 20479483, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150574, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'metal': {'main_port_id': 20479465, 'sub_port_id': 20479484, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150575, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'environnement': {'main_port_id': 20479465, 'sub_port_id': 20479485, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150576, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'plastique': {'main_port_id': 20479465, 'sub_port_id': 20479486, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150577, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'cartonnette': {'main_port_id': 20479465, 'sub_port_id': 20479487, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150578, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'Carton_brun': {'main_port_id': 20479465, 'sub_port_id': 20479488, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150579, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20479465, 'sub_port_id': 20479489, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150580, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20479478 , 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=20479465 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 (20479478) result : ((1337128330,), (1337129211,), (1337130016,), (1337130799,), (1337130800,), (1337130846,), (1337130847,), (1337130848,), (1337130849,), (1337130850,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479479 , 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=20479465 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 (20479479) result : ((1337127983,), (1337127984,), (1337127985,), (1337127986,), (1337128375,), (1337128376,), (1337128378,), (1337128379,), (1337128380,), (1337128707,), (1337130018,), (1337130802,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479480 , 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=20479465 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 (20479480) result : ((1337127988,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479481 , 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=20479465 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 (20479481) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479482 , 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=20479465 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 (20479482) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479483 , 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=20479465 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 (20479483) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479484 , 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=20479465 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 (20479484) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479485 , 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=20479465 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 (20479485) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479486 , 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=20479465 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 (20479486) result : ((1337129394,), (1337129397,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479487 , 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=20479465 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 (20479487) result : ((1337128410,), (1337128411,), (1337128413,), (1337128709,), (1337128710,), (1337128711,), (1337128712,), (1337129266,), (1337130020,), (1337130021,), (1337130022,), (1337130023,), (1337130024,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479488 , 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=20479465 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 (20479488) result : ((1337128425,), (1337129318,), (1337130804,), (1337130805,), (1337130806,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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 20479489 , 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=20479465 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 (20479489) result : ((1337127981,), (1337127982,), (1337128298,), (1337128299,), (1337128301,), (1337128303,), (1337128304,), (1337128306,), (1337128307,), (1337128308,), (1337128310,), (1337128311,), (1337128704,), (1337128705,), (1337129151,), (1337130013,), (1337130014,), (1337130841,), (1337130842,), (1337130843,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479465) result : ((1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) 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`=20479465 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','Teint_Dans_La_Masse','metal','kraft','papier','flou','Carton_brun','autre_refus','cartonnette','environnement','mal_croppe')) 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`=20479465 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','Teint_Dans_La_Masse','metal','kraft','papier','flou','Carton_brun','autre_refus','cartonnette','environnement','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 20479465, 'sub_port_id': 20479490, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150581, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'Carton_gris': {'main_port_id': 20479465, 'sub_port_id': 20479491, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150582, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'kraft': {'main_port_id': 20479465, 'sub_port_id': 20479492, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150583, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'mal_croppe': {'main_port_id': 20479465, 'sub_port_id': 20479493, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150584, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'papier': {'main_port_id': 20479465, 'sub_port_id': 20479494, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150585, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'flou': {'main_port_id': 20479465, 'sub_port_id': 20479495, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150586, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'metal': {'main_port_id': 20479465, 'sub_port_id': 20479496, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150587, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'environnement': {'main_port_id': 20479465, 'sub_port_id': 20479497, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150588, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'plastique': {'main_port_id': 20479465, 'sub_port_id': 20479498, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150589, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'cartonnette': {'main_port_id': 20479465, 'sub_port_id': 20479499, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150590, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'Carton_brun': {'main_port_id': 20479465, 'sub_port_id': 20479500, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150591, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20479465, 'sub_port_id': 20479501, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13150592, 'last_updated_at': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 16, 8, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 16, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479487 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479488 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20479501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20479489 lien utilise dans velours : https://www.fotonower.com/velours/20479490,20479491,20479492,20479493,20479494,20479495,20479496,20479497,20479498,20479499,20479500,20479501?tags=autre_refus,Carton_gris,kraft,mal_croppe,papier,flou,metal,environnement,plastique,cartonnette,Carton_brun,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20479465]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674] map_info['map_portfolio_photo'] : {20479465: [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674, 1337128876, 1337128708, 1337128701, 1337128696, 1337128692, 1337128685, 1337128567, 1337128006, 1337128001, 1337127999, 1337127995, 1337127992, 1337127990, 1337127957, 1337127952, 1337127947, 1337127945, 1337127839, 1337127837, 1337127834, 1337127824, 1337127822, 1337127790, 1337127786, 1337127783, 1337127747, 1337127745, 1337127299, 1337127297, 1337127285, 1337127282, 1337127106, 1337127065, 1337126850, 1337126571, 1337126424]} final : False mtd_id 4302 list_pids : [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674] Looping around the photos to save general results len do output : 1 /20479465. 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, '2579752') ('4302', '20479465', '1337130781', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130774', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130694', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130633', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130256', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130249', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130150', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130035', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130031', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130029', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129935', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129931', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129674', None, None, None, None, None, '2579752') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20479465', "{'autre_refus': 20479478, 'Carton_gris': 20479479, 'kraft': 20479480, 'mal_croppe': 20479481, 'papier': 20479482, 'flou': 20479483, 'metal': 20479484, 'environnement': 20479485, 'plastique': 20479486, 'cartonnette': 20479487, 'Carton_brun': 20479488, 'Teint_Dans_La_Masse': 20479489}", None, None, None, None, '2579752'), ('4302', '20479465', '1337130781', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130774', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130694', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130633', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130256', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130249', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130150', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130035', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130031', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130029', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337129935', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337129931', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337129674', None, None, None, None, None, '2579752')] time used for this insertion : 0.014762639999389648 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.519700288772583 time spend to save output : 0.015095710754394531 total time spend for step 1 : 1.5347959995269775 step2:final Wed Feb 12 16:11:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (20479465) 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 20479465 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1337127106,1337127065,1337126850,1337126571,1337126424,1337127299,1337127297,1337127285,1337127282,1337127790,1337127786,1337127783,1337127747,1337127745,1337127839,1337127837,1337127834,1337127824,1337127822,1337127957,1337127952,1337127947,1337127945,1337128006,1337128001,1337127999,1337127995,1337127992,1337127990,1337128708,1337128701,1337128696,1337128692,1337128685,1337128567,1337129935,1337129931,1337129674,1337130256,1337128876,1337130249,1337130150,1337130035,1337130031,1337130029,1337130781,1337130774,1337130694,1337130633); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20479465]) Inside saveOutput : final : False verbose : True original output for save of step final : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} new output for save of step final : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674] map_info['map_portfolio_photo'] : {20479465: [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674, 1337128876, 1337128708, 1337128701, 1337128696, 1337128692, 1337128685, 1337128567, 1337128006, 1337128001, 1337127999, 1337127995, 1337127992, 1337127990, 1337127957, 1337127952, 1337127947, 1337127945, 1337127839, 1337127837, 1337127834, 1337127824, 1337127822, 1337127790, 1337127786, 1337127783, 1337127747, 1337127745, 1337127299, 1337127297, 1337127285, 1337127282, 1337127106, 1337127065, 1337126850, 1337126571, 1337126424]} final : False mtd_id 4302 list_pids : [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674] Looping around the photos to save general results len do output : 13 /1337130781.Didn't retrieve data . /1337130774.Didn't retrieve data . /1337130694.Didn't retrieve data . /1337130633.Didn't retrieve data . /1337130256.Didn't retrieve data . /1337130249.Didn't retrieve data . /1337130150.Didn't retrieve data . /1337130035.Didn't retrieve data . /1337130031.Didn't retrieve data . /1337130029.Didn't retrieve data . /1337129935.Didn't retrieve data . /1337129931.Didn't retrieve data . /1337129674.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, '2579752') ('4302', '20479465', '1337130781', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130774', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130694', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130633', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130256', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130249', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130150', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130035', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130031', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130029', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129935', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129931', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129674', None, None, None, None, None, '2579752') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '20479465', '1337130781', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337130774', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337130694', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337130633', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337130256', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337130249', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337130150', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337130035', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337130031', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337130029', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337129935', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337129931', '0.05036305145258888', None, None, None, None, '2579752'), ('4302', '20479465', '1337129674', '0.05036305145258888', None, None, None, None, '2579752')] time used for this insertion : 0.013275861740112305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06901073455810547 time spend to save output : 0.01399850845336914 total time spend for step 2 : 0.08300924301147461 step3:velours_tree Wed Feb 12 16:11:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20479465: [{'autre_refus': 20479478, 'Carton_gris': 20479479, 'kraft': 20479480, 'mal_croppe': 20479481, 'papier': 20479482, 'flou': 20479483, 'metal': 20479484, 'environnement': 20479485, 'plastique': 20479486, 'cartonnette': 20479487, 'Carton_brun': 20479488, 'Teint_Dans_La_Masse': 20479489}]} input_args_next_step : {20479465: ()} output_args : {20479465: [{'autre_refus': 20479478, 'Carton_gris': 20479479, 'kraft': 20479480, 'mal_croppe': 20479481, 'papier': 20479482, 'flou': 20479483, 'metal': 20479484, 'environnement': 20479485, 'plastique': 20479486, 'cartonnette': 20479487, 'Carton_brun': 20479488, 'Teint_Dans_La_Masse': 20479489}]} args : 20479465 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 : ({'autre_refus': 20479478, 'Carton_gris': 20479479, 'kraft': 20479480, 'mal_croppe': 20479481, 'papier': 20479482, 'flou': 20479483, 'metal': 20479484, 'environnement': 20479485, 'plastique': 20479486, 'cartonnette': 20479487, 'Carton_brun': 20479488, 'Teint_Dans_La_Masse': 20479489},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20479465) 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([20479465]) 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.357180118560791 time spend to save output : 5.888938903808594e-05 total time spend for step 3 : 0.3572390079498291 step4:send_mail_cod Wed Feb 12 16:11:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} input_args_next_step : {1337130781: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337130781 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337130774 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337130694 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337130633 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337130256 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337130249 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337130150 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337130035 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337130031 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337130029 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337129935 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337129931 depend.output_id : 0 input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ()} output_args : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',)} args : 1337129674 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 : {20479465: [{'autre_refus': 20479478, 'Carton_gris': 20479479, 'kraft': 20479480, 'mal_croppe': 20479481, 'papier': 20479482, 'flou': 20479483, 'metal': 20479484, 'environnement': 20479485, 'plastique': 20479486, 'cartonnette': 20479487, 'Carton_brun': 20479488, 'Teint_Dans_La_Masse': 20479489}]} input_args_next_step : {1337130781: ('0.05036305145258888',), 1337130774: ('0.05036305145258888',), 1337130694: ('0.05036305145258888',), 1337130633: ('0.05036305145258888',), 1337130256: ('0.05036305145258888',), 1337130249: ('0.05036305145258888',), 1337130150: ('0.05036305145258888',), 1337130035: ('0.05036305145258888',), 1337130031: ('0.05036305145258888',), 1337130029: ('0.05036305145258888',), 1337129935: ('0.05036305145258888',), 1337129931: ('0.05036305145258888',), 1337129674: ('0.05036305145258888',), 20479465: ()} output_args : {20479465: [{'autre_refus': 20479478, 'Carton_gris': 20479479, 'kraft': 20479480, 'mal_croppe': 20479481, 'papier': 20479482, 'flou': 20479483, 'metal': 20479484, 'environnement': 20479485, 'plastique': 20479486, 'cartonnette': 20479487, 'Carton_brun': 20479488, 'Teint_Dans_La_Masse': 20479489}]} args : 20479465 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 :14, first value : ('0.05036305145258888',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20479465) 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 (1337130781,1337130774,1337130694,1337130633,1337130256,1337130249,1337130150,1337130035,1337130031,1337130029,1337129935,1337129931,1337129674) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1337129674 begin to download photo : 1337130029 begin to download photo : 1337130150 begin to download photo : 1337130633 begin to download photo : 1337130781 download finish for photo 1337130633 begin to download photo : 1337130694 download finish for photo 1337130781 download finish for photo 1337129674 begin to download photo : 1337129931 download finish for photo 1337130029 begin to download photo : 1337130031 download finish for photo 1337129931 begin to download photo : 1337129935 download finish for photo 1337130694 begin to download photo : 1337130774 download finish for photo 1337130031 begin to download photo : 1337130035 download finish for photo 1337130150 begin to download photo : 1337130249 download finish for photo 1337129935 download finish for photo 1337130774 download finish for photo 1337130035 download finish for photo 1337130249 begin to download photo : 1337130256 download finish for photo 1337130256 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P20479465_12-02-2025_16_11_02.pdf 20479478 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=20479478 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337128330: '1739372713_3872073_1337127786_72abc88102066ebd0c263ec766964b0d_rle_crop_3671926515_0.png', 1337129211: '1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927735_0.png', 1337130016: '1739372851_3876352_1337126571_33967db3662d9e204148191122a3e5a5_rle_crop_3671928733_0.png', 1337130799: '1739372933_3878052_1337128696_9e55b6b31b393bc063d35d4428a44d91_rle_crop_3671929514_0.png', 1337130800: '1739372933_3878052_1337128567_969d34015c82c0ca71d479b3c225ce6c_rle_crop_3671929576_0.png', 1337130846: '1739372942_3878229_1337128708_8069d8ee55b01a02140184c81373121e_rle_crop_3671929613_0.png', 1337130847: '1739372942_3878229_1337128001_5940f2fed1cc986d9346d15d4811c770_rle_crop_3671929642_0.png', 1337130848: '1739372942_3878229_1337127999_bb1e035573a4ebfaabc011faeab9d997_rle_crop_3671929668_0.png', 1337130849: '1739372942_3878229_1337127995_81841cbab5dee2fa737e0cdbe91b684f_rle_crop_3671929686_0.png', 1337130850: '1739372942_3878229_1337127992_333b46954a28a26198405cce492c47d2_rle_crop_3671929705_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/255a91b7d39bcf3cb16a409c721e7157_23522205.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/e30a87facf22bbde75ba9124a3f58a19_23228478.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/1dc18dbeb9c4a021a3231c487cddc531_21469551.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/661a71d4429b2d26fe9ce615558962cb_89658333.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/fb14559b44bc39fbcc4b281d6d4ca2dd_52421595.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/114230a846438c73862ce802520f657c_24939866.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/5a45a88821f0de8ecd39e7ab32969890_94208202.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/1d22ca35d565553d9e8e047035c8edbc_89080745.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/af0fbd28d7c4cf17c9e9e572f0995193_88200849.png change filename to text .imagette204794781739373062/ imagette204794781739373062/1739372942_3878229_1337127992_333b46954a28a26198405cce492c47d2_rle_crop_3671929705_0.png.png imagette204794781739373062/1739372933_3878052_1337128696_9e55b6b31b393bc063d35d4428a44d91_rle_crop_3671929514_0.png.png imagette204794781739373062/1739372851_3876352_1337126571_33967db3662d9e204148191122a3e5a5_rle_crop_3671928733_0.png.png imagette204794781739373062/1739372942_3878229_1337127995_81841cbab5dee2fa737e0cdbe91b684f_rle_crop_3671929686_0.png.png imagette204794781739373062/1739372942_3878229_1337128001_5940f2fed1cc986d9346d15d4811c770_rle_crop_3671929642_0.png.png imagette204794781739373062/1739372933_3878052_1337128567_969d34015c82c0ca71d479b3c225ce6c_rle_crop_3671929576_0.png.png imagette204794781739373062/1739372942_3878229_1337127999_bb1e035573a4ebfaabc011faeab9d997_rle_crop_3671929668_0.png.png imagette204794781739373062/1739372942_3878229_1337128708_8069d8ee55b01a02140184c81373121e_rle_crop_3671929613_0.png.png imagette204794781739373062/1739372713_3872073_1337127786_72abc88102066ebd0c263ec766964b0d_rle_crop_3671926515_0.png.png imagette204794781739373062/1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927735_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/699bfbe82c4cfffab089542989025edf_15680736.png imagette204794781739373062 20479480 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=20479480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337127988: '1739372691_3871748_1337127282_2f79e152d6a557b0dbe92febc49a85fb_rle_crop_3671926262_0.png'} change filename to text .imagette204794801739373063/ imagette204794801739373063/1739372691_3871748_1337127282_2f79e152d6a557b0dbe92febc49a85fb_rle_crop_3671926262_0.png.png imagette204794811739373063/ imagette204794831739373063/ imagette204794841739373063/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/c4e7f18f6c78ab314ebc5bc2306f7b08_28716851.png imagette204794801739373063 20479481 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=20479481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204794811739373063 20479483 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=20479483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204794831739373063 20479484 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=20479484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204794841739373063 20479486 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=20479486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337129394: '1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927749_0.png', 1337129397: '1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927745_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/257562a3bbeab3a1ddeb2dd3f1585a05_58057995.png change filename to text .imagette204794861739373063/ imagette204794861739373063/1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927749_0.png.png imagette204794861739373063/1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927745_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/c992fdcd6a26e5a0f6849753f6365cbc_75867168.png imagette204794861739373063 20479487 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=20479487 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337128410: '1739372713_3872073_1337127783_2911ae8a53f0ed3deaef658e882c2d1b_rle_crop_3671926539_0.png', 1337128411: '1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926744_0.png', 1337128413: '1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926737_0.png', 1337128709: '1739372754_3872776_1337127299_60e916c3ba630e5d3c41f4d44261e21f_rle_crop_3671926855_0.png', 1337128710: '1739372754_3872776_1337127065_0d4d934cf980fe002c07a389ed733e3b_rle_crop_3671926883_0.png', 1337128711: '1739372754_3872776_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671926998_0.png', 1337128712: '1739372754_3872776_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671927000_0.png', 1337129266: '1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927741_0.png', 1337130020: '1739372851_3876352_1337127299_60e916c3ba630e5d3c41f4d44261e21f_bib_crop_3671926855_0.jpg', 1337130021: '1739372851_3876352_1337127299_60e916c3ba630e5d3c41f4d44261e21f_rle_crop_3671928674_0.png', 1337130022: '1739372851_3876352_1337127065_0d4d934cf980fe002c07a389ed733e3b_rle_crop_3671926883_0.png', 1337130023: '1739372851_3876352_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671926998_0.png', 1337130024: '1739372851_3876352_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671927000_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f315a33075920ffa443cd2fa865bbd43_93406516.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/bf9102381b0074ef637ba10e30edc6ed_40615032.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/96d4453f02467a0a8d01e2c7027fdd86_50562903.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/16383246524dba268d800cab80a6c9ca_91389273.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/5dbc2961954305c7fcd6558ad011b1c9_67028328.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/dd3a018cd2bd9110a5ca3d3c707be258_10084844.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/4ad1489fa4bd113e7e99648c2cc73bc4_80969907.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/35ddfa2b90e2b1094eb00d6efaf4ec16_27737442.png change filename to text .wget -O 9.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/4c96a079b8f315138ffc6768db675af6_8324069.jpg change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/96fc85fbf1133216a9fd6158628761be_6702930.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/5dbc2961954305c7fcd6558ad011b1c9_90157498.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/dd3a018cd2bd9110a5ca3d3c707be258_49074458.png change filename to text .imagette204794871739373063/ imagette204794871739373063/1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927741_0.png.png imagette204794871739373063/1739372851_3876352_1337127065_0d4d934cf980fe002c07a389ed733e3b_rle_crop_3671926883_0.png.png imagette204794871739373063/1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926744_0.png.png imagette204794871739373063/1739372713_3872073_1337127783_2911ae8a53f0ed3deaef658e882c2d1b_rle_crop_3671926539_0.png.png imagette204794871739373063/1739372851_3876352_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671926998_0.png.png imagette204794871739373063/1739372851_3876352_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671927000_0.png.png imagette204794871739373063/1739372754_3872776_1337127065_0d4d934cf980fe002c07a389ed733e3b_rle_crop_3671926883_0.png.png imagette204794871739373063/1739372851_3876352_1337127299_60e916c3ba630e5d3c41f4d44261e21f_bib_crop_3671926855_0.jpg.jpg imagette204794871739373063/1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926737_0.png.png imagette204794871739373063/1739372754_3872776_1337127299_60e916c3ba630e5d3c41f4d44261e21f_rle_crop_3671926855_0.png.png imagette204794871739373063/1739372754_3872776_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671927000_0.png.png imagette204794871739373063/1739372754_3872776_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671926998_0.png.png imagette204794871739373063/1739372851_3876352_1337127299_60e916c3ba630e5d3c41f4d44261e21f_rle_crop_3671928674_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/4ad1489fa4bd113e7e99648c2cc73bc4_71576544.png imagette204794871739373063 20479479 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=20479479 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337127983: '1739372691_3871748_1337127285_49a0370b8c24b96866dd4c898e56cea2_rle_crop_3671926049_0.png', 1337127984: '1739372691_3871748_1337127282_2f79e152d6a557b0dbe92febc49a85fb_rle_crop_3671926263_0.png', 1337127985: '1739372691_3871748_1337127282_2f79e152d6a557b0dbe92febc49a85fb_rle_crop_3671926267_0.png', 1337127986: '1739372691_3871748_1337127282_2f79e152d6a557b0dbe92febc49a85fb_rle_crop_3671926261_0.png', 1337128375: '1739372713_3872073_1337127839_990fd9d5217acf3948292bab26ff2200_rle_crop_3671926499_0.png', 1337128376: '1739372713_3872073_1337127786_72abc88102066ebd0c263ec766964b0d_rle_crop_3671926511_0.png', 1337128378: '1739372713_3872073_1337127786_72abc88102066ebd0c263ec766964b0d_rle_crop_3671926517_0.png', 1337128379: '1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926743_0.png', 1337128380: '1739372713_3872073_1337127745_f6bae6528a103a0dc1805cf954e7c139_rle_crop_3671926828_0.png', 1337128707: '1739372754_3872776_1337127106_55ec37fbeecad2fd23e3a2310f92da1f_rle_crop_3671926871_0.png', 1337130018: '1739372851_3876352_1337127106_55ec37fbeecad2fd23e3a2310f92da1f_rle_crop_3671926871_0.png', 1337130802: '1739372933_3878052_1337128685_6847388eec84ca0b87c47c4a19c6551a_rle_crop_3671929561_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/3113d22280e39a725cb19d03a1ba3ac7_35514575.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/204ed46ca254dcc611206356599d17bc_70522830.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/3bdb62efbfc2b693ebedc46a40bc0b3f_69791146.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/1ff62614da2b3383a2ae0a8702284e72_85660900.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/99ef025f9ebab1613d6bc86a297dda5f_7848327.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/50a94481b5d7ec797008c19612ad2319_23861548.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/fe313228ddb914a4d63142bed270c7d4_92498261.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/7f7595cf552c9284410bffff064d6bc2_51120068.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/a5bd6825639e8e021dbedf7aa47a6b1f_12323270.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/8867750f5f7b57b92a1ebaa953dfb29d_59553450.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/8867750f5f7b57b92a1ebaa953dfb29d_32497083.png change filename to text .imagette204794791739373065/ imagette204794791739373065/1739372691_3871748_1337127282_2f79e152d6a557b0dbe92febc49a85fb_rle_crop_3671926267_0.png.png imagette204794791739373065/1739372691_3871748_1337127282_2f79e152d6a557b0dbe92febc49a85fb_rle_crop_3671926263_0.png.png imagette204794791739373065/1739372754_3872776_1337127106_55ec37fbeecad2fd23e3a2310f92da1f_rle_crop_3671926871_0.png.png imagette204794791739373065/1739372713_3872073_1337127786_72abc88102066ebd0c263ec766964b0d_rle_crop_3671926511_0.png.png imagette204794791739373065/1739372933_3878052_1337128685_6847388eec84ca0b87c47c4a19c6551a_rle_crop_3671929561_0.png.png imagette204794791739373065/1739372713_3872073_1337127786_72abc88102066ebd0c263ec766964b0d_rle_crop_3671926517_0.png.png imagette204794791739373065/1739372713_3872073_1337127839_990fd9d5217acf3948292bab26ff2200_rle_crop_3671926499_0.png.png imagette204794791739373065/1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926743_0.png.png imagette204794791739373065/1739372713_3872073_1337127745_f6bae6528a103a0dc1805cf954e7c139_rle_crop_3671926828_0.png.png imagette204794791739373065/1739372691_3871748_1337127285_49a0370b8c24b96866dd4c898e56cea2_rle_crop_3671926049_0.png.png imagette204794791739373065/1739372691_3871748_1337127282_2f79e152d6a557b0dbe92febc49a85fb_rle_crop_3671926261_0.png.png imagette204794791739373065/1739372851_3876352_1337127106_55ec37fbeecad2fd23e3a2310f92da1f_rle_crop_3671926871_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/43ac57170c092721e0e4d81f3a2069dc_20158438.png imagette204794791739373065 20479488 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=20479488 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337128425: '1739372713_3872073_1337127783_2911ae8a53f0ed3deaef658e882c2d1b_rle_crop_3671926542_0.png', 1337129318: '1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927738_0.png', 1337130804: '1739372933_3878052_1337128701_d803b5c216aff4a959157d380eb19df3_rle_crop_3671929500_0.png', 1337130805: '1739372933_3878052_1337128692_3bfab23cd24cc2907569c6375e8cc481_rle_crop_3671929548_0.png', 1337130806: '1739372933_3878052_1337128685_6847388eec84ca0b87c47c4a19c6551a_rle_crop_3671929564_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/4c3600fc091f5a5568bc30a392c28a04_52122623.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/fb45fc8807292f70cbd36fef2738f74f_51447017.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/a7d6c85c419dc81a94a79e8092fdbdc0_72116118.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/1e4f18ce0565db8e54293cb4c8cb1bde_58812348.png change filename to text .imagette204794881739373066/ imagette204794881739373066/1739372933_3878052_1337128701_d803b5c216aff4a959157d380eb19df3_rle_crop_3671929500_0.png.png imagette204794881739373066/1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927738_0.png.png imagette204794881739373066/1739372933_3878052_1337128685_6847388eec84ca0b87c47c4a19c6551a_rle_crop_3671929564_0.png.png imagette204794881739373066/1739372713_3872073_1337127783_2911ae8a53f0ed3deaef658e882c2d1b_rle_crop_3671926542_0.png.png imagette204794881739373066/1739372933_3878052_1337128692_3bfab23cd24cc2907569c6375e8cc481_rle_crop_3671929548_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/6807be6d1f9234b348622892feb3994a_91671299.png imagette204794881739373066 20479489 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=20479489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337128310: '1739372713_3872073_1337127745_f6bae6528a103a0dc1805cf954e7c139_rle_crop_3671926834_0.png', 1337130843: '1739372942_3878229_1337127990_90f7130a4afc20df9aea8176b4dd3f2e_rle_crop_3671929766_0.png', 1337130842: '1739372942_3878229_1337127992_333b46954a28a26198405cce492c47d2_rle_crop_3671929710_0.png', 1337130841: '1739372942_3878229_1337127992_333b46954a28a26198405cce492c47d2_rle_crop_3671929713_0.png', 1337130014: '1739372851_3876352_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671927008_0.png', 1337130013: '1739372851_3876352_1337127299_60e916c3ba630e5d3c41f4d44261e21f_rle_crop_3671926856_0.png', 1337129151: '1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927737_0.png', 1337128705: '1739372754_3872776_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671927008_0.png', 1337128704: '1739372754_3872776_1337127299_60e916c3ba630e5d3c41f4d44261e21f_rle_crop_3671926856_0.png', 1337128311: '1739372713_3872073_1337127745_f6bae6528a103a0dc1805cf954e7c139_rle_crop_3671926831_0.png', 1337127981: '1739372691_3871748_1337127285_49a0370b8c24b96866dd4c898e56cea2_rle_crop_3671926055_0.png', 1337128308: '1739372713_3872073_1337127745_f6bae6528a103a0dc1805cf954e7c139_rle_crop_3671926838_0.png', 1337128307: '1739372713_3872073_1337127745_f6bae6528a103a0dc1805cf954e7c139_rle_crop_3671926832_0.png', 1337128306: '1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926751_0.png', 1337128304: '1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926742_0.png', 1337128303: '1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926747_0.png', 1337128301: '1739372713_3872073_1337127783_2911ae8a53f0ed3deaef658e882c2d1b_rle_crop_3671926537_0.png', 1337128299: '1739372713_3872073_1337127839_990fd9d5217acf3948292bab26ff2200_rle_crop_3671926500_0.png', 1337128298: '1739372713_3872073_1337127839_990fd9d5217acf3948292bab26ff2200_rle_crop_3671926496_0.png', 1337127982: '1739372691_3871748_1337127282_2f79e152d6a557b0dbe92febc49a85fb_rle_crop_3671926264_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/676daf73633349307bd72be31d502ac0_52839201.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/18238808a417ffa3c766970ba86809dd_36487160.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/0ea6eed61acd04deb1f53dd206d4f8cb_80558611.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/fb9ba87040852500da33722bb8706cf7_14899379.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/ad58825773b952d564a8f3c3622a46ec_99173212.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/20980fabf73fc43f9d8add41b4864cc5_93697240.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/142e89ca4516b7e85feb99b91e3e965b_85833097.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/ad58825773b952d564a8f3c3622a46ec_90745631.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/20980fabf73fc43f9d8add41b4864cc5_65199966.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/ebfe19e6a0f8f187b015947a07f710cf_95112730.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/6e5c3cc76c3a14692c4bdb60e1894d94_2740757.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/d5dc30bba430acdcefa0e127f501413f_58839155.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f294845c8785809b501752d3fe6b8313_32939085.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/4a1787893fc6e2efbeb8a4efee18601b_75787022.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/240ede2f61dcd5616b6be418ce30ee5f_49634774.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/5dd3b6a23230cb4b4d2ef78d2818e7d8_25504231.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/69cdb14fbb45a8b66b0e100b0ee6efd5_18236395.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/6000e9f9700a5dd60d883b8e798a0a8f_17448809.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/9d1c4456486a1a4b646096b4ce363693_69627990.png change filename to text .imagette204794891739373066/ imagette204794891739373066/1739372754_3872776_1337127299_60e916c3ba630e5d3c41f4d44261e21f_rle_crop_3671926856_0.png.png imagette204794891739373066/1739372713_3872073_1337127745_f6bae6528a103a0dc1805cf954e7c139_rle_crop_3671926838_0.png.png imagette204794891739373066/1739372713_3872073_1337127839_990fd9d5217acf3948292bab26ff2200_rle_crop_3671926500_0.png.png imagette204794891739373066/1739372691_3871748_1337127285_49a0370b8c24b96866dd4c898e56cea2_rle_crop_3671926055_0.png.png imagette204794891739373066/1739372713_3872073_1337127839_990fd9d5217acf3948292bab26ff2200_rle_crop_3671926496_0.png.png imagette204794891739373066/1739372713_3872073_1337127783_2911ae8a53f0ed3deaef658e882c2d1b_rle_crop_3671926537_0.png.png imagette204794891739373066/1739372942_3878229_1337127992_333b46954a28a26198405cce492c47d2_rle_crop_3671929713_0.png.png imagette204794891739373066/1739372833_3876086_1337127952_f3726b0cbbda026f649e9f3151dc8e40_rle_crop_3671927737_0.png.png imagette204794891739373066/1739372713_3872073_1337127745_f6bae6528a103a0dc1805cf954e7c139_rle_crop_3671926831_0.png.png imagette204794891739373066/1739372754_3872776_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671927008_0.png.png imagette204794891739373066/1739372713_3872073_1337127745_f6bae6528a103a0dc1805cf954e7c139_rle_crop_3671926834_0.png.png imagette204794891739373066/1739372713_3872073_1337127745_f6bae6528a103a0dc1805cf954e7c139_rle_crop_3671926832_0.png.png imagette204794891739373066/1739372691_3871748_1337127282_2f79e152d6a557b0dbe92febc49a85fb_rle_crop_3671926264_0.png.png imagette204794891739373066/1739372851_3876352_1337126424_4fb1a526cbc47372de82a491183fd8f7_rle_crop_3671927008_0.png.png imagette204794891739373066/1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926742_0.png.png imagette204794891739373066/1739372942_3878229_1337127990_90f7130a4afc20df9aea8176b4dd3f2e_rle_crop_3671929766_0.png.png imagette204794891739373066/1739372942_3878229_1337127992_333b46954a28a26198405cce492c47d2_rle_crop_3671929710_0.png.png imagette204794891739373066/1739372851_3876352_1337127299_60e916c3ba630e5d3c41f4d44261e21f_rle_crop_3671926856_0.png.png imagette204794891739373066/1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926751_0.png.png imagette204794891739373066/1739372713_3872073_1337127747_8f599abc85682cbee0a520c17a56c58b_rle_crop_3671926747_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f5ef391e9483e7855da601b2ff42ced9_23430327.png imagette204794891739373066 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20479465 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20479490,20479491,20479492,20479493,20479494,20479495,20479496,20479497,20479498,20479499,20479500,20479501?tags=autre_refus,Carton_gris,kraft,mal_croppe,papier,flou,metal,environnement,plastique,cartonnette,Carton_brun,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1337130781] : ('0.05036305145258888',) no score found for photo 1337130781 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337130774] : ('0.05036305145258888',) no score found for photo 1337130774 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337130694] : ('0.05036305145258888',) no score found for photo 1337130694 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337130633] : ('0.05036305145258888',) no score found for photo 1337130633 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337130256] : ('0.05036305145258888',) no score found for photo 1337130256 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337130249] : ('0.05036305145258888',) no score found for photo 1337130249 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337130150] : ('0.05036305145258888',) no score found for photo 1337130150 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337130035] : ('0.05036305145258888',) no score found for photo 1337130035 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337130031] : ('0.05036305145258888',) no score found for photo 1337130031 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337130029] : ('0.05036305145258888',) no score found for photo 1337130029 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337129935] : ('0.05036305145258888',) no score found for photo 1337129935 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337129931] : ('0.05036305145258888',) no score found for photo 1337129931 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com args[1337129674] : ('0.05036305145258888',) no score found for photo 1337129674 apple ('0.05036305145258888',) We are sending mail with results at report@fotonower.com refus_total : 0.05036305145258888 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=20479465 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_P20479465_12-02-2025_16_11_02.pdf results_Auto_P20479465_12-02-2025_16_11_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20479465_12-02-2025_16_11_02.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','20479465','results_Auto_P20479465_12-02-2025_16_11_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20479465_12-02-2025_16_11_02.pdf','pdf','','0.26','0.05036305145258888') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20479465]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674] map_info['map_portfolio_photo'] : {20479465: [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674, 1337128876, 1337128708, 1337128701, 1337128696, 1337128692, 1337128685, 1337128567, 1337128006, 1337128001, 1337127999, 1337127995, 1337127992, 1337127990, 1337127957, 1337127952, 1337127947, 1337127945, 1337127839, 1337127837, 1337127834, 1337127824, 1337127822, 1337127790, 1337127786, 1337127783, 1337127747, 1337127745, 1337127299, 1337127297, 1337127285, 1337127282, 1337127106, 1337127065, 1337126850, 1337126571, 1337126424]} final : False mtd_id 4302 list_pids : [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674] 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, '2579752') ('4302', '20479465', '1337130781', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130774', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130694', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130633', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130256', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130249', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130150', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130035', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130031', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130029', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129935', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129931', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129674', None, None, None, None, None, '2579752') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20479465', '1337130781', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130774', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130694', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130633', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130256', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130249', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130150', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130035', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130031', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130029', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337129935', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337129931', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337129674', None, None, None, None, None, '2579752')] time used for this insertion : 0.013086557388305664 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.846036195755005 time spend to save output : 0.013454437255859375 total time spend for step 4 : 6.859490633010864 step5:split_time_score Wed Feb 12 16:11:08 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 : ['20479465'] 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 : [('20479465',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20479465) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1337130781: {'path': 'temp/1739373062_4127944_1337130781_afc35df2953914218b663b69e9836aac.jpg', 'extension': 'jpg'}, 1337129674: {'path': 'temp/1739373062_4127944_1337129674_8a1a7e7a0f6f71f1f30f96b417cb0df7.jpg', 'extension': 'jpg'}, 1337129931: {'path': 'temp/1739373062_4127944_1337129931_9a8ed6d16549b8f5c83fe61908e0b444.jpg', 'extension': 'jpg'}, 1337129935: {'path': 'temp/1739373062_4127944_1337129935_36b59ac1a52087978d4c4715d2025c46.jpg', 'extension': 'jpg'}, 1337130633: {'path': 'temp/1739373062_4127944_1337130633_4c846193fb1b872755519245764aee35.jpg', 'extension': 'jpg'}, 1337130694: {'path': 'temp/1739373062_4127944_1337130694_bd8161228696ea91c14b983b7d5cff6b.jpg', 'extension': 'jpg'}, 1337130774: {'path': 'temp/1739373062_4127944_1337130774_a119331637fb0a5a386b625261a686f9.jpg', 'extension': 'jpg'}, 1337130029: {'path': 'temp/1739373062_4127944_1337130029_fc08f25ea0d328556e2824172e9293cd.jpg', 'extension': 'jpg'}, 1337130031: {'path': 'temp/1739373062_4127944_1337130031_9d9ef3a6cd299ef007c9af079043ba71.jpg', 'extension': 'jpg'}, 1337130035: {'path': 'temp/1739373062_4127944_1337130035_12824ba7462d5b535d0e9d0c5e221278.jpg', 'extension': 'jpg'}, 1337130150: {'path': 'temp/1739373062_4127944_1337130150_406992a9ab680a194da789d55ac9bc2a.jpg', 'extension': 'jpg'}, 1337130249: {'path': 'temp/1739373062_4127944_1337130249_02f1f2c5e7d66f4fd39801ecfb5ed174.jpg', 'extension': 'jpg'}, 1337130256: {'path': 'temp/1739373062_4127944_1337130256_e431788839af351bd3376777e3837d29.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 = 20479465; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 20479465 group by h (('16', 49),) 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=20479465 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 (20479465) 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 (20479465) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12022025 20479465 Nombre de photos uploadées : 49 / 23040 (0%) 12022025 20479465 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 12022025 20479465 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1337127106, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/55ec37fbeecad2fd23e3a2310f92da1f.jpg', 'username': None, 'uploaded_at': 1739372467, 'text': 'image_12022025_16_00_04_10165.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1337127065, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/0d4d934cf980fe002c07a389ed733e3b.jpg', 'username': None, 'uploaded_at': 1739372467, 'text': 'image_12022025_16_00_13_9125.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1337126850, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/605d8191294d796df9a6c8dc30a69a59.jpg', 'username': None, 'uploaded_at': 1739372467, 'text': 'image_12022025_16_00_23_10135.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337126571, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/33967db3662d9e204148191122a3e5a5.jpg', 'username': None, 'uploaded_at': 1739372467, 'text': 'image_12022025_16_00_33_10137.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013926029205322266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20479465, '2025-02-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1596586,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022464275360107422 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= 1596586 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1596586, 'dashboard_run_id': 1605836, 'mtr_portfolio_id': 20479461, 'dashboard_result_id': 8841207, '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_P20479461_12-02-2025_16_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479513, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1605836, 'mtr_portfolio_id': 20479465, 'dashboard_result_id': 8841208, '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_P20479465_12-02-2025_16_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479489, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20479461 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2579751, 'mtr_portfolio_id': 20479461, 'created_at': datetime.datetime(2025, 2, 12, 16, 3, 29), 'result': '0.05547802939626233', 'result_long': None, 'result_double': None}] Qualite : 0.05547802939626233 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20479461 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20479461_12-02-2025_16_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20479461 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_P20479461_12-02-2025_16_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479513, 'pht': 3726}}" where mtr_portfolio_id = 20479461 and dashboard_run_id = 1605836 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20479461 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8841207, 0.05547802939626233, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20479461_12-02-2025_16_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479513, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20479465 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2579752, 'mtr_portfolio_id': 20479465, 'created_at': datetime.datetime(2025, 2, 12, 16, 11, 1), 'result': '0.05036305145258888', 'result_long': None, 'result_double': None}] Qualite : 0.05036305145258888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20479465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20479465_12-02-2025_16_11_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20479465 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_P20479465_12-02-2025_16_11_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479489, 'pht': 3726}}" where mtr_portfolio_id = 20479465 and dashboard_run_id = 1605836 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20479465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8841208, 0.05036305145258888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20479465_12-02-2025_16_11_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479489, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20479461,20479465) result : ((1337125561,), (1337125748,), (1337126274,), (1337126281,), (1337126290,), (1337126312,), (1337126322,), (1337126336,), (1337126380,), (1337126384,), (1337126388,), (1337127247,), (1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12022025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20479465]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674] map_info['map_portfolio_photo'] : {20479465: [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674, 1337128876, 1337128708, 1337128701, 1337128696, 1337128692, 1337128685, 1337128567, 1337128006, 1337128001, 1337127999, 1337127995, 1337127992, 1337127990, 1337127957, 1337127952, 1337127947, 1337127945, 1337127839, 1337127837, 1337127834, 1337127824, 1337127822, 1337127790, 1337127786, 1337127783, 1337127747, 1337127745, 1337127299, 1337127297, 1337127285, 1337127282, 1337127106, 1337127065, 1337126850, 1337126571, 1337126424]} final : True mtd_id 4302 list_pids : [1337130781, 1337130774, 1337130694, 1337130633, 1337130256, 1337130249, 1337130150, 1337130035, 1337130031, 1337130029, 1337129935, 1337129931, 1337129674] Looping around the photos to save general results len do output : 1 /20479465Didn'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, '2579752') ('4302', '20479465', '1337130781', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130774', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130694', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130633', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130256', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130249', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130150', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130035', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130031', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337130029', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129935', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129931', None, None, None, None, None, '2579752') ('4302', None, None, None, None, None, None, None, '2579752') ('4302', '20479465', '1337129674', None, None, None, None, None, '2579752') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20479465', 'None', None, None, None, None, '2579752'), ('4302', '20479465', '1337130781', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130774', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130694', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130633', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130256', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130249', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130150', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130035', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130031', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337130029', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337129935', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337129931', None, None, None, None, None, '2579752'), ('4302', '20479465', '1337129674', None, None, None, None, None, '2579752')] time used for this insertion : 0.013229608535766602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2304525375366211 time spend to save output : 0.013523101806640625 total time spend for step 5 : 0.24397563934326172 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 (2579752) 2.44user 2.44system 0:13.10elapsed 37%CPU (0avgtext+0avgdata 160932maxresident)k 1560inputs+14640outputs (33major+74761minor)pagefaults 0swaps