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 : 966479 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 (2722151) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2722151) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039469 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2722151'] with mtr_portfolio_ids : ['22039469'] and first list_photo_ids : [] new path : /proc/966479/ Name: python3 Umask: 0002 State: R (running) Tgid: 966479 Ngid: 0 Pid: 966479 PPid: 966478 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 966479 NSpid: 966479 NSpgid: 964204 NSsid: 964204 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97676 kB VmRSS: 97676 kB RssAnon: 59796 kB RssFile: 37880 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '966479', 'Ngid': '0', 'Pid': '966479', 'PPid': '966478', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '966479', 'NSpid': '966479', 'NSpgid': '964204', 'NSsid': '964204', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97676 kB', 'VmRSS': '97676 kB', 'RssAnon': '59796 kB', 'RssFile': '37880 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'Ca result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,)) 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 22039543 , 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=22039469 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 (22039543) result : ((1349902435,), (1349902437,), (1349902439,), (1349902522,), (1349902523,), (1349902546,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,)) 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 22039544 , 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=22039469 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 (22039544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,)) 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 22039545 , 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=22039469 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 (22039545) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,)) 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 22039546 , 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=22039469 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 (22039546) result : ((1349902449,), (1349902451,), (1349902455,), (1349902457,), (1349902460,), (1349902535,), (1349902536,), (1349902538,), (1349902539,), (1349902551,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,)) 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`=22039469 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','papier','Carton_brun','Teint_Dans_La_Masse','metal','flou','Carton_gris','autre_refus','environnement','mal_croppe','plastique')) 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`=22039469 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','papier','Carton_brun','Teint_Dans_La_Masse','metal','flou','Carton_gris','autre_refus','environnement','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22039469, 'sub_port_id': 22039547, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531570, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'autre_refus': {'main_port_id': 22039469, 'sub_port_id': 22039548, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531571, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'papier': {'main_port_id': 22039469, 'sub_port_id': 22039549, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531572, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'flou': {'main_port_id': 22039469, 'sub_port_id': 22039550, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531573, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 22039469, 'sub_port_id': 22039551, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531574, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'mal_croppe': {'main_port_id': 22039469, 'sub_port_id': 22039552, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531575, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'cartonnette': {'main_port_id': 22039469, 'sub_port_id': 22039553, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531576, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'Carton_gris': {'main_port_id': 22039469, 'sub_port_id': 22039554, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531577, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'Carton_brun': {'main_port_id': 22039469, 'sub_port_id': 22039555, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531578, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'metal': {'main_port_id': 22039469, 'sub_port_id': 22039556, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531579, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'kraft': {'main_port_id': 22039469, 'sub_port_id': 22039557, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531580, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'plastique': {'main_port_id': 22039469, 'sub_port_id': 22039558, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531581, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 53, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 53, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039546 lien utilise dans velours : https://www.fotonower.com/velours/22039547,22039548,22039549,22039550,22039551,22039552,22039553,22039554,22039555,22039556,22039557,22039558?tags=environnement,autre_refus,papier,flou,Teint_Dans_La_Masse,mal_croppe,cartonnette,Carton_gris,Carton_brun,metal,kraft,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22039469]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239] map_info['map_portfolio_photo'] : {22039469: [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239, 1349902134, 1349902094, 1349902061, 1349902033, 1349902015, 1349901989, 1349901905, 1349901890, 1349901884, 1349901865, 1349901846, 1349901841, 1349901826, 1349901819, 1349901803, 1349901795, 1349901730, 1349901712, 1349901693, 1349901641, 1349901611, 1349901586, 1349901514, 1349901508, 1349901489, 1349901451, 1349901366, 1349901340, 1349901320, 1349901311, 1349901305, 1349901294, 1349901208, 1349901197, 1349901179, 1349901162, 1349900992, 1349900734, 1349900629, 1349900609, 1349900579]} final : False mtd_id 4302 list_pids : [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239] Looping around the photos to save general results len do output : 1 /22039469. 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, '2722151') ('4302', '22039469', '1349902658', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902641', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902636', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902610', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902532', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902499', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902477', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902458', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902430', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902406', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902387', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902381', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902279', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902239', None, None, None, None, None, '2722151') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22039469', "{'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546}", None, None, None, None, '2722151'), ('4302', '22039469', '1349902658', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902641', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902636', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902610', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902532', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902499', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902477', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902458', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902430', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902406', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902387', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902381', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902279', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902239', None, None, None, None, None, '2722151')] time used for this insertion : 0.03886723518371582 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.182529449462891 time spend to save output : 0.03924751281738281 total time spend for step 1 : 4.221776962280273 step2:final Thu Apr 3 22:55:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (22039469) 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 22039469 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349900629,1349900609,1349900579,1349901514,1349901208,1349901508,1349901197,1349901489,1349901179,1349901451,1349901162,1349901366,1349900992,1349901340,1349900734,1349901320,1349901311,1349901305,1349901294,1349901730,1349901712,1349901693,1349901641,1349901611,1349901586,1349901905,1349901890,1349901884,1349901865,1349901841,1349901846,1349901819,1349901826,1349901803,1349901795,1349902134,1349902094,1349902061,1349902033,1349902015,1349901989,1349902387,1349902381,1349902279,1349902239,1349902532,1349902499,1349902477,1349902458,1349902430,1349902406,1349902658,1349902641,1349902636,1349902610); 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([22039469]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} new output for save of step final : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239] map_info['map_portfolio_photo'] : {22039469: [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239, 1349902134, 1349902094, 1349902061, 1349902033, 1349902015, 1349901989, 1349901905, 1349901890, 1349901884, 1349901865, 1349901846, 1349901841, 1349901826, 1349901819, 1349901803, 1349901795, 1349901730, 1349901712, 1349901693, 1349901641, 1349901611, 1349901586, 1349901514, 1349901508, 1349901489, 1349901451, 1349901366, 1349901340, 1349901320, 1349901311, 1349901305, 1349901294, 1349901208, 1349901197, 1349901179, 1349901162, 1349900992, 1349900734, 1349900629, 1349900609, 1349900579]} final : False mtd_id 4302 list_pids : [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239] Looping around the photos to save general results len do output : 14 /1349902658.Didn't retrieve data . /1349902641.Didn't retrieve data . /1349902636.Didn't retrieve data . /1349902610.Didn't retrieve data . /1349902532.Didn't retrieve data . /1349902499.Didn't retrieve data . /1349902477.Didn't retrieve data . /1349902458.Didn't retrieve data . /1349902430.Didn't retrieve data . /1349902406.Didn't retrieve data . /1349902387.Didn't retrieve data . /1349902381.Didn't retrieve data . /1349902279.Didn't retrieve data . /1349902239.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, '2722151') ('4302', '22039469', '1349902658', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902641', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902636', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902610', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902532', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902499', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902477', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902458', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902430', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902406', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902387', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902381', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902279', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902239', None, None, None, None, None, '2722151') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22039469', '1349902658', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902641', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902636', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902610', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902532', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902499', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902477', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902458', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902430', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902406', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902387', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902381', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902279', '0.05281627787971825', None, None, None, None, '2722151'), ('4302', '22039469', '1349902239', '0.05281627787971825', None, None, None, None, '2722151')] time used for this insertion : 0.03767132759094238 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.22568655014038086 time spend to save output : 0.038362979888916016 total time spend for step 2 : 0.2640495300292969 step3:velours_tree Thu Apr 3 22:55:03 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 : {22039469: [{'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546}]} input_args_next_step : {22039469: ()} output_args : {22039469: [{'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546}]} args : 22039469 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 : ({'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22039469) 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([22039469]) 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.4643402099609375 time spend to save output : 7.271766662597656e-05 total time spend for step 3 : 0.4644129276275635 step4:send_mail_cod Thu Apr 3 22:55:03 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 : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} input_args_next_step : {1349902658: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902658 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902641 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902636 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902610 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902532 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902499 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902477 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902458 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902430 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902406 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902387 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902381 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902279 depend.output_id : 0 input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ()} output_args : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',)} args : 1349902239 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 : {22039469: [{'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546}]} input_args_next_step : {1349902658: ('0.05281627787971825',), 1349902641: ('0.05281627787971825',), 1349902636: ('0.05281627787971825',), 1349902610: ('0.05281627787971825',), 1349902532: ('0.05281627787971825',), 1349902499: ('0.05281627787971825',), 1349902477: ('0.05281627787971825',), 1349902458: ('0.05281627787971825',), 1349902430: ('0.05281627787971825',), 1349902406: ('0.05281627787971825',), 1349902387: ('0.05281627787971825',), 1349902381: ('0.05281627787971825',), 1349902279: ('0.05281627787971825',), 1349902239: ('0.05281627787971825',), 22039469: ()} output_args : {22039469: [{'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546}]} args : 22039469 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.05281627787971825',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22039469) 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 (1349902658,1349902641,1349902636,1349902610,1349902532,1349902499,1349902477,1349902458,1349902430,1349902406,1349902387,1349902381,1349902279,1349902239) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349902239 begin to download photo : 1349902387 begin to download photo : 1349902458 begin to download photo : 1349902532 begin to download photo : 1349902641 download finish for photo 1349902641 begin to download photo : 1349902658 download finish for photo 1349902239 begin to download photo : 1349902279 download finish for photo 1349902532 begin to download photo : 1349902610 download finish for photo 1349902387 begin to download photo : 1349902406 download finish for photo 1349902458 begin to download photo : 1349902477 download finish for photo 1349902279 begin to download photo : 1349902381 download finish for photo 1349902610 begin to download photo : 1349902636 download finish for photo 1349902406 begin to download photo : 1349902430 download finish for photo 1349902658 download finish for photo 1349902477 begin to download photo : 1349902499 download finish for photo 1349902636 download finish for photo 1349902430 download finish for photo 1349902381 download finish for photo 1349902499 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 : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22039469_03-04-2025_22_55_04.pdf 22039536 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=22039536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349902411: '1743713548_1128780_1349901693_2a80d0879f024102f04d251c5edcd4fe_rle_crop_3746870639_0.png'} change filename to text .imagette220395361743713704/ imagette220395361743713704/1743713548_1128780_1349901693_2a80d0879f024102f04d251c5edcd4fe_rle_crop_3746870639_0.png.png imagette220395381743713704/ imagette220395401743713704/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/154d4b04eb0ed788616d6be30e2add65_31166547.png imagette220395361743713704 22039538 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=22039538 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220395381743713704 22039540 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=22039540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220395401743713704 22039541 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=22039541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349901880: '1743713373_2669271_1349900992_26eaccd100c6b8cb1bcb7d052aff01b5_rle_crop_3746869003_0.png', 1349902513: '1743713551_2672013_1349901826_54af8c4c7c42c8dc52238a25169fb93e_rle_crop_3746870926_0.png', 1349902514: '1743713551_2672013_1349901826_54af8c4c7c42c8dc52238a25169fb93e_rle_crop_3746870922_0.png', 1349902515: '1743713551_2672013_1349901819_04058d437ff884dcf133420db39c9ebd_rle_crop_3746870946_0.png', 1349902516: '1743713551_2672013_1349901819_04058d437ff884dcf133420db39c9ebd_rle_crop_3746870942_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5f1e21b6ccc6433ee6814e1a0a6776a5_48393962.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3565e61ffb3c2a4f68bb792d50033fde_86716186.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d562525a1bdd88da5c38e559b046d175_27378262.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3565e61ffb3c2a4f68bb792d50033fde_53588755.png change filename to text .imagette220395411743713704/ imagette220395411743713704/1743713551_2672013_1349901826_54af8c4c7c42c8dc52238a25169fb93e_rle_crop_3746870922_0.png.png imagette220395411743713704/1743713551_2672013_1349901819_04058d437ff884dcf133420db39c9ebd_rle_crop_3746870942_0.png.png imagette220395411743713704/1743713373_2669271_1349900992_26eaccd100c6b8cb1bcb7d052aff01b5_rle_crop_3746869003_0.png.png imagette220395411743713704/1743713551_2672013_1349901819_04058d437ff884dcf133420db39c9ebd_rle_crop_3746870946_0.png.png imagette220395411743713704/1743713551_2672013_1349901826_54af8c4c7c42c8dc52238a25169fb93e_rle_crop_3746870926_0.png.png imagette220395441743713704/ imagette220395451743713704/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d562525a1bdd88da5c38e559b046d175_37864990.png imagette220395411743713704 22039544 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=22039544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220395441743713704 22039545 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=22039545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220395451743713704 22039546 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=22039546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349902449: '1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870576_0.png', 1349902451: '1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870569_0.png', 1349902455: '1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870587_0.png', 1349902457: '1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870580_0.png', 1349902460: '1743713548_1128780_1349901586_4328f39908cef17bf8c913002194dca0_rle_crop_3746870685_0.png', 1349902535: '1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870859_0.png', 1349902536: '1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870858_0.png', 1349902538: '1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870872_0.png', 1349902539: '1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870871_0.png', 1349902551: '1743713571_2672238_1349901311_d1d1af5a958b24a06ce647bddbbdf441_rle_crop_3746870972_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/212d0eb866949036867aeff7a5c32ac2_685945.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a6ada367f3d72a250b3635547b2ed653_50092658.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/212d0eb866949036867aeff7a5c32ac2_28833994.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a6ada367f3d72a250b3635547b2ed653_87498012.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0a4af2f9d95aeef77078d9ee9822846e_10006005.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d2aab244bf97729dc236eba5bed6312b_27248645.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/84a1fa789c3fb355f0325407c6e55aef_22227852.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d2aab244bf97729dc236eba5bed6312b_83153122.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/84a1fa789c3fb355f0325407c6e55aef_95267310.png change filename to text .imagette220395461743713704/ imagette220395461743713704/1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870872_0.png.png imagette220395461743713704/1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870580_0.png.png imagette220395461743713704/1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870858_0.png.png imagette220395461743713704/1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870859_0.png.png imagette220395461743713704/1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870871_0.png.png imagette220395461743713704/1743713571_2672238_1349901311_d1d1af5a958b24a06ce647bddbbdf441_rle_crop_3746870972_0.png.png imagette220395461743713704/1743713548_1128780_1349901586_4328f39908cef17bf8c913002194dca0_rle_crop_3746870685_0.png.png imagette220395461743713704/1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870569_0.png.png imagette220395461743713704/1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870587_0.png.png imagette220395461743713704/1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870576_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e7d1764e46c42bd5e748fafdb2b39f2d_79862427.png imagette220395461743713704 22039539 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=22039539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349902502: '1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870854_0.png', 1349902503: '1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870867_0.png', 1349902530: '1743713571_2672238_1349901305_47d557f783199840fcb34aa9f8f221e9_rle_crop_3746870983_0.png', 1349902531: '1743713571_2672238_1349901294_86fd21882afe0418ea2a2a8d9c27e857_rle_crop_3746871063_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f6204dfa61af3a487d920818a3b21200_25600657.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f6204dfa61af3a487d920818a3b21200_46502354.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/26c8d5ab1668dba9c001900e0065d63b_58022885.png change filename to text .imagette220395391743713705/ imagette220395391743713705/1743713571_2672238_1349901305_47d557f783199840fcb34aa9f8f221e9_rle_crop_3746870983_0.png.png imagette220395391743713705/1743713571_2672238_1349901294_86fd21882afe0418ea2a2a8d9c27e857_rle_crop_3746871063_0.png.png imagette220395391743713705/1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870854_0.png.png imagette220395391743713705/1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870867_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/328c58dd467edcc2b9955cde271d73b5_86102200.png imagette220395391743713705 22039542 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=22039542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349901869: '1743713373_2669271_1349901162_066f3ae05b523b829fd88b2dd569fd4b_rle_crop_3746868968_0.png', 1349901870: '1743713373_2669271_1349901162_066f3ae05b523b829fd88b2dd569fd4b_rle_crop_3746868966_0.png', 1349901872: '1743713373_2669271_1349900992_26eaccd100c6b8cb1bcb7d052aff01b5_rle_crop_3746869005_0.png', 1349902420: '1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870570_0.png', 1349902423: '1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870571_0.png', 1349902425: '1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870581_0.png', 1349902427: '1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870582_0.png', 1349902540: '1743713571_2672238_1349901294_86fd21882afe0418ea2a2a8d9c27e857_rle_crop_3746871055_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1ac88a314e3d3664a44daf100576412b_25161946.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a1a3501ed8d98e4ffd4bb377f68e8772_80085628.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/aadc17be99d9dfd60624c24468d6d8f5_67144979.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/eb706debff378df131c23947d99ca172_79544488.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a39ce9192c10308cc4980788ba55df58_21653794.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/eb706debff378df131c23947d99ca172_17477008.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a39ce9192c10308cc4980788ba55df58_84950183.png change filename to text .imagette220395421743713705/ imagette220395421743713705/1743713373_2669271_1349900992_26eaccd100c6b8cb1bcb7d052aff01b5_rle_crop_3746869005_0.png.png imagette220395421743713705/1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870571_0.png.png imagette220395421743713705/1743713373_2669271_1349901162_066f3ae05b523b829fd88b2dd569fd4b_rle_crop_3746868966_0.png.png imagette220395421743713705/1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870582_0.png.png imagette220395421743713705/1743713571_2672238_1349901294_86fd21882afe0418ea2a2a8d9c27e857_rle_crop_3746871055_0.png.png imagette220395421743713705/1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870570_0.png.png imagette220395421743713705/1743713373_2669271_1349901162_066f3ae05b523b829fd88b2dd569fd4b_rle_crop_3746868968_0.png.png imagette220395421743713705/1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870581_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b12cfbb0280799fdf4b614f78e31f5fd_41839019.png imagette220395421743713705 22039543 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=22039543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349902435: '1743713548_1128780_1349901693_2a80d0879f024102f04d251c5edcd4fe_rle_crop_3746870634_0.png', 1349902437: '1743713548_1128780_1349901611_22c7f22aaa2925fa66c88b8dc63dd255_rle_crop_3746870675_0.png', 1349902439: '1743713548_1128780_1349901611_22c7f22aaa2925fa66c88b8dc63dd255_rle_crop_3746870673_0.png', 1349902522: '1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870855_0.png', 1349902523: '1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870868_0.png', 1349902546: '1743713571_2672238_1349901311_d1d1af5a958b24a06ce647bddbbdf441_rle_crop_3746870974_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7d95d8d5d099a79e88ee0af23202bcd7_89006415.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d3d7e43556b0275e19e8318c785a801c_52640104.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/87567dd8f7db4c9ebbb8d441d916cde7_76901122.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/29872ddf69139cb7429ebe0f923bdd95_68391646.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/29872ddf69139cb7429ebe0f923bdd95_45156522.png change filename to text .imagette220395431743713706/ imagette220395431743713706/1743713548_1128780_1349901611_22c7f22aaa2925fa66c88b8dc63dd255_rle_crop_3746870675_0.png.png imagette220395431743713706/1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870855_0.png.png imagette220395431743713706/1743713571_2672238_1349901311_d1d1af5a958b24a06ce647bddbbdf441_rle_crop_3746870974_0.png.png imagette220395431743713706/1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870868_0.png.png imagette220395431743713706/1743713548_1128780_1349901693_2a80d0879f024102f04d251c5edcd4fe_rle_crop_3746870634_0.png.png imagette220395431743713706/1743713548_1128780_1349901611_22c7f22aaa2925fa66c88b8dc63dd255_rle_crop_3746870673_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bc024f764186aa686a520b71a3931a16_64276912.png imagette220395431743713706 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22039469 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22039547,22039548,22039549,22039550,22039551,22039552,22039553,22039554,22039555,22039556,22039557,22039558?tags=environnement,autre_refus,papier,flou,Teint_Dans_La_Masse,mal_croppe,cartonnette,Carton_gris,Carton_brun,metal,kraft,plastique your option no_mail is active, we will not send the real mail to your client args[1349902658] : ('0.05281627787971825',) no score found for photo 1349902658 We are sending mail with results at report@fotonower.com args[1349902641] : ('0.05281627787971825',) no score found for photo 1349902641 We are sending mail with results at report@fotonower.com args[1349902636] : ('0.05281627787971825',) no score found for photo 1349902636 We are sending mail with results at report@fotonower.com args[1349902610] : ('0.05281627787971825',) no score found for photo 1349902610 We are sending mail with results at report@fotonower.com args[1349902532] : ('0.05281627787971825',) no score found for photo 1349902532 We are sending mail with results at report@fotonower.com args[1349902499] : ('0.05281627787971825',) no score found for photo 1349902499 We are sending mail with results at report@fotonower.com args[1349902477] : ('0.05281627787971825',) no score found for photo 1349902477 We are sending mail with results at report@fotonower.com args[1349902458] : ('0.05281627787971825',) no score found for photo 1349902458 We are sending mail with results at report@fotonower.com args[1349902430] : ('0.05281627787971825',) no score found for photo 1349902430 We are sending mail with results at report@fotonower.com args[1349902406] : ('0.05281627787971825',) no score found for photo 1349902406 We are sending mail with results at report@fotonower.com args[1349902387] : ('0.05281627787971825',) no score found for photo 1349902387 We are sending mail with results at report@fotonower.com args[1349902381] : ('0.05281627787971825',) no score found for photo 1349902381 We are sending mail with results at report@fotonower.com args[1349902279] : ('0.05281627787971825',) no score found for photo 1349902279 We are sending mail with results at report@fotonower.com args[1349902239] : ('0.05281627787971825',) no score found for photo 1349902239 We are sending mail with results at report@fotonower.com refus_total : 0.05281627787971825 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=22039469 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_P22039469_03-04-2025_22_55_04.pdf results_Auto_P22039469_03-04-2025_22_55_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22039469_03-04-2025_22_55_04.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','22039469','results_Auto_P22039469_03-04-2025_22_55_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22039469_03-04-2025_22_55_04.pdf','pdf','','0.21','0.05281627787971825') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22039469]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239] map_info['map_portfolio_photo'] : {22039469: [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239, 1349902134, 1349902094, 1349902061, 1349902033, 1349902015, 1349901989, 1349901905, 1349901890, 1349901884, 1349901865, 1349901846, 1349901841, 1349901826, 1349901819, 1349901803, 1349901795, 1349901730, 1349901712, 1349901693, 1349901641, 1349901611, 1349901586, 1349901514, 1349901508, 1349901489, 1349901451, 1349901366, 1349901340, 1349901320, 1349901311, 1349901305, 1349901294, 1349901208, 1349901197, 1349901179, 1349901162, 1349900992, 1349900734, 1349900629, 1349900609, 1349900579]} final : False mtd_id 4302 list_pids : [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239] 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, '2722151') ('4302', '22039469', '1349902658', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902641', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902636', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902610', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902532', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902499', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902477', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902458', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902430', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902406', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902387', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902381', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902279', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902239', None, None, None, None, None, '2722151') 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', '22039469', '1349902658', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902641', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902636', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902610', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902532', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902499', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902477', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902458', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902430', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902406', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902387', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902381', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902279', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902239', None, None, None, None, None, '2722151')] time used for this insertion : 0.031320810317993164 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.510647296905518 time spend to save output : 0.03155183792114258 total time spend for step 4 : 4.54219913482666 step5:split_time_score Thu Apr 3 22:55: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 : ['22039469'] 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 : [('22039469',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22039469) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349902641: {'path': 'temp/1743713703_966479_1349902641_41176c3a3bbe836b208e9735efc27c97.jpg', 'extension': 'jpg'}, 1349902658: {'path': 'temp/1743713703_966479_1349902658_97bfb6eae433403ca33e5061ae4f72ec.jpg', 'extension': 'jpg'}, 1349902532: {'path': 'temp/1743713703_966479_1349902532_eb2dd6290c790b53f220a4cd126b7a53.jpg', 'extension': 'jpg'}, 1349902610: {'path': 'temp/1743713703_966479_1349902610_9b65c27315fb78e6fe5aa91f16508b61.jpg', 'extension': 'jpg'}, 1349902636: {'path': 'temp/1743713703_966479_1349902636_59519990c16e429554f958efe0f3723d.jpg', 'extension': 'jpg'}, 1349902387: {'path': 'temp/1743713703_966479_1349902387_3b28c903f1e8093fe8e3f15e62dd469c.jpg', 'extension': 'jpg'}, 1349902406: {'path': 'temp/1743713703_966479_1349902406_af149aace80ae3bec38e2a9f6023ece3.jpg', 'extension': 'jpg'}, 1349902430: {'path': 'temp/1743713703_966479_1349902430_8579e75c184cb85d2fe8f83d59f96293.jpg', 'extension': 'jpg'}, 1349902239: {'path': 'temp/1743713703_966479_1349902239_a46419d7d5a07a0c066af8013f0bd0c0.jpg', 'extension': 'jpg'}, 1349902279: {'path': 'temp/1743713703_966479_1349902279_32ce462a15dd2900e7c78814001570fe.jpg', 'extension': 'jpg'}, 1349902381: {'path': 'temp/1743713703_966479_1349902381_6fd60825f8a9b4f5fe5abbcd1e041a7e.jpg', 'extension': 'jpg'}, 1349902458: {'path': 'temp/1743713703_966479_1349902458_8624418c7afddedc25892eeff01ecd95.jpg', 'extension': 'jpg'}, 1349902477: {'path': 'temp/1743713703_966479_1349902477_210da9c3ae5edcebbd34024f2cf4dcf7.jpg', 'extension': 'jpg'}, 1349902499: {'path': 'temp/1743713703_966479_1349902499_672794e7813b34205d89407c84f7668c.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 = 22039469; (('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 = 22039469 group by h (('22', 55),) 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=22039469 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 (22039469) 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 (22039469) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03042025 22039469 Nombre de photos uploadées : 55 / 23040 (0%) 03042025 22039469 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 03042025 22039469 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1349900629, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f487550848bc1fe10a738de7c9653637.jpg', 'username': None, 'uploaded_at': 1743713192, 'text': 'image_03042025_22_45_05_10138.jpg'}, {'photo_id': 1349900609, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8ac751fcd74b6c752baa0917ef93338d.jpg', 'username': None, 'uploaded_at': 1743713192, 'text': 'image_03042025_22_45_34_9125.jpg'}, {'photo_id': 1349900579, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6bace758efa5596b2dc3f70c244ccd56.jpg', 'username': None, 'uploaded_at': 1743713192, 'text': 'image_03042025_22_45_44_10133.jpg'}, {'photo_id': 1349901514, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9030d7484501f6080659f7cac374bd81.jpg', 'username': None, 'uploaded_at': 1743713332, 'text': 'image_03042025_22_45_54_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026230812072753906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22039469, '2025-04-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1712161,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.06278157234191895 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1712161 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722970, 'mtr_portfolio_id': 22036518, 'dashboard_result_id': 9860705, '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_P22036518_03-04-2025_22_19_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036539, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722970, 'mtr_portfolio_id': 22037273, 'dashboard_result_id': 9860706, '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_P22037273_03-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22037278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037289, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722970, 'mtr_portfolio_id': 22038344, 'dashboard_result_id': 9860707, '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_P22038344_03-04-2025_22_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22038404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038416, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722970, 'mtr_portfolio_id': 22039469, 'dashboard_result_id': 9860708, '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_P22039469_03-04-2025_22_53_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22039535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22039536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22039537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22039538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22039539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22039540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22039541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22039542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22039543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22039544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22039545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22039546, '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 = 22036518 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': 2721975, 'mtr_portfolio_id': 22036518, 'created_at': datetime.datetime(2025, 4, 3, 22, 19, 31), 'result': '0.04906538214992941', 'result_long': None, 'result_double': None}] Qualite : 0.04906538214992941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22036518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22036518_03-04-2025_22_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22036518 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_P22036518_03-04-2025_22_19_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036539, 'pht': 3726}}" where mtr_portfolio_id = 22036518 and dashboard_run_id = 1722970 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`=22036518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9860705, 0.04906538214992941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22036518_03-04-2025_22_19_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036539, '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 = 22037273 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': 2722027, 'mtr_portfolio_id': 22037273, 'created_at': datetime.datetime(2025, 4, 3, 22, 32, 59), 'result': '0.05394404993520578', 'result_long': None, 'result_double': None}] Qualite : 0.05394404993520578 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22037273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037273_03-04-2025_22_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22037273 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_P22037273_03-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22037278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037289, 'pht': 3726}}" where mtr_portfolio_id = 22037273 and dashboard_run_id = 1722970 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`=22037273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9860706, 0.05394404993520578, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037273_03-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22037278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037289, '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 = 22038344 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': 2722100, 'mtr_portfolio_id': 22038344, 'created_at': datetime.datetime(2025, 4, 3, 22, 48, 59), 'result': '0.03883786613367081', 'result_long': None, 'result_double': None}] Qualite : 0.03883786613367081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22038344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038344_03-04-2025_22_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22038344 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_P22038344_03-04-2025_22_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22038404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038416, 'pht': 3726}}" where mtr_portfolio_id = 22038344 and dashboard_run_id = 1722970 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`=22038344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9860707, 0.03883786613367081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038344_03-04-2025_22_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22038404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038416, '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 = 22039469 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': 2722151, 'mtr_portfolio_id': 22039469, 'created_at': datetime.datetime(2025, 4, 3, 22, 55, 3), 'result': '0.05281627787971825', 'result_long': None, 'result_double': None}] Qualite : 0.05281627787971825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22039469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22039469_03-04-2025_22_55_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22039469 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_P22039469_03-04-2025_22_55_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22039535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22039536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22039537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22039538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22039539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22039540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22039541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22039542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22039543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22039544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22039545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22039546, 'pht': 3726}}" where mtr_portfolio_id = 22039469 and dashboard_run_id = 1722970 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`=22039469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9860708, 0.05281627787971825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22039469_03-04-2025_22_55_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22039535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22039536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22039537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22039538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22039539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22039540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22039541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22039542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22039543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22039544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22039545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22039546, '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 (22036518,22037273,22038344,22039469) result : ((1349874294,), (1349874321,), (1349874569,), (1349874576,), (1349874586,), (1349874631,), (1349874636,), (1349874706,), (1349874831,), (1349875894,), (1349875919,), (1349875946,), (1349875957,), (1349876371,), (1349876492,), (1349876497,), (1349876552,), (1349876561,), (1349876581,), (1349876906,), (1349876967,), (1349877002,), (1349877061,), (1349877125,), (1349877622,), (1349877704,), (1349877956,), (1349878062,), (1349878284,), (1349878734,), (1349878780,), (1349878832,), (1349878870,), (1349879408,), (1349879526,), (1349879571,), (1349879610,), (1349880129,), (1349880517,), (1349880576,), (1349881072,), (1349881133,), (1349881186,), (1349881879,), (1349881936,), (1349881995,), (1349882080,), (1349882156,), (1349882705,), (1349882749,), (1349882783,), (1349882846,), (1349882858,), (1349883345,), (1349883400,), (1349883453,), (1349883494,), (1349883879,), (1349883725,), (1349883748,), (1349883788,), (1349883830,), (1349883853,), (1349883971,), (1349883992,), (1349884024,), (1349884052,), (1349884103,), (1349884143,), (1349884589,), (1349884673,), (1349885167,), (1349885202,), (1349885235,), (1349885260,), (1349885848,), (1349885934,), (1349885978,), (1349886013,), (1349886058,), (1349886341,), (1349886398,), (1349886458,), (1349886810,), (1349886854,), (1349886882,), (1349886927,), (1349886982,), (1349887040,), (1349887300,), (1349887332,), (1349887384,), (1349887427,), (1349887895,), (1349887959,), (1349888019,), (1349888078,), (1349888157,), (1349888228,), (1349888562,), (1349888592,), (1349888635,), (1349888669,), (1349888694,), (1349888727,), (1349888901,), (1349888956,), (1349889001,), (1349889036,), (1349889311,), (1349889347,), (1349889384,), (1349889412,), (1349889455,), (1349889505,), (1349889823,), (1349889871,), (1349889951,), (1349890025,), (1349890857,), (1349890952,), (1349891044,), (1349891170,), (1349891206,), (1349891259,), (1349891466,), (1349891532,), (1349891593,), (1349891645,), (1349891681,), (1349892455,), (1349892242,), (1349892319,), (1349892383,), (1349892873,), (1349892937,), (1349893012,), (1349893050,), (1349893075,), (1349893113,), (1349893304,), (1349893387,), (1349893483,), (1349893940,), (1349894017,), (1349894098,), (1349894146,), (1349894200,), (1349894526,), (1349894566,), (1349894594,), (1349894911,), (1349894951,), (1349894979,), (1349895024,), (1349895590,), (1349895836,), (1349896027,), (1349896230,), (1349896394,), (1349896415,), (1349896438,), (1349897099,), (1349897172,), (1349897221,), (1349897280,), (1349897336,), (1349897805,), (1349897854,), (1349897915,), (1349897959,), (1349898020,), (1349898394,), (1349898426,), (1349898492,), (1349898532,), (1349898582,), (1349898622,), (1349898871,), (1349898916,), (1349898964,), (1349898994,), (1349899045,), (1349899064,), (1349899241,), (1349899274,), (1349899310,), (1349899462,), (1349899688,), (1349899724,), (1349899746,), (1349899803,), (1349899858,), (1349899900,), (1349899999,), (1349900029,), (1349900053,), (1349900070,), (1349900114,), (1349900162,), (1349900286,), (1349900348,), (1349900412,), (1349900432,), (1349900476,), (1349900515,), (1349900651,), (1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22039469]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239] map_info['map_portfolio_photo'] : {22039469: [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239, 1349902134, 1349902094, 1349902061, 1349902033, 1349902015, 1349901989, 1349901905, 1349901890, 1349901884, 1349901865, 1349901846, 1349901841, 1349901826, 1349901819, 1349901803, 1349901795, 1349901730, 1349901712, 1349901693, 1349901641, 1349901611, 1349901586, 1349901514, 1349901508, 1349901489, 1349901451, 1349901366, 1349901340, 1349901320, 1349901311, 1349901305, 1349901294, 1349901208, 1349901197, 1349901179, 1349901162, 1349900992, 1349900734, 1349900629, 1349900609, 1349900579]} final : True mtd_id 4302 list_pids : [1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239] Looping around the photos to save general results len do output : 1 /22039469Didn'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, '2722151') ('4302', '22039469', '1349902658', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902641', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902636', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902610', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902532', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902499', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902477', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902458', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902430', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902406', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902387', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902381', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902279', None, None, None, None, None, '2722151') ('4302', None, None, None, None, None, None, None, '2722151') ('4302', '22039469', '1349902239', None, None, None, None, None, '2722151') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22039469', 'None', None, None, None, None, '2722151'), ('4302', '22039469', '1349902658', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902641', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902636', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902610', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902532', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902499', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902477', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902458', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902430', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902406', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902387', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902381', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902279', None, None, None, None, None, '2722151'), ('4302', '22039469', '1349902239', None, None, None, None, None, '2722151')] time used for this insertion : 0.03926825523376465 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0793957710266113 time spend to save output : 0.03952741622924805 total time spend for step 5 : 1.1189231872558594 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 (2722151) 2.31user 2.33system 0:14.85elapsed 31%CPU (0avgtext+0avgdata 160776maxresident)k 44688inputs+14232outputs (211major+75033minor)pagefaults 0swaps