$œ’m…Îmo“LÒDüÜ;˜%gÏ?wêÁÅ·øîùovH0õÉa‡5£Ú*î Ø’ÃÌlÍ››S iyä”rÕO7ª“ž�%L]Ý×%±ºÇhk¶«·÷>v1­HB£®±ßÞÚd\�(e oIx¢>3´6BS%ÌØá“( œÛf$Ãhýé ¿¶åeÔŽôÚèHœ�‚`ݶ f{�Fo©Yò¿Ôó@00uMb’z-ëìXI$&ÂgfÖú¶7Ó´Þu|'K.ÌoP PÝÀùFË.Ðýoûò9B<~.’ïÅË[’´˜Ë<Ù­„$¯•¢·ä{1¹A�•.òbKxºL �¯�Ý·'¯u8n5 ’ºe,]ñH©–’ÆV¨ŒWwÃ$ùCƒel¹“|zys«™KŠi-ðqÊݬbk,wnGÿâ;¥ ~ ÖeÉrÍ’‰ÜÔ~' 1`V⦫¹-*[ÉñLÔKÄ'2@ŸÜþÐ仪 ²n‘Íß2¸N߈ƶµG•¢ói/U¢µ'Eï@¦`H湘;J•�¼¼ÜŽÅ +Jén#»¼‚6Ú´—ĹG•ü¡NÒGð'—Z!öáí¸‰Wi�»NJ @óàšAûÜZ|ª[¨ï$q}i�Ò·µQbtTEC$œ’m…Îmo“LÒDüÜ;˜%gÏ?wêÁÅ·øîùovH0õÉa‡5£Ú*î Ø’ÃÌlÍ››S iyä”rÕO7ª“ž�%L]Ý×%±ºÇhk¶«·÷>v1­HB£®±ßÞÚd\�(e oIx¢>3´6BS%ÌØá“( œÛf$Ãhýé ¿¶åeÔŽôÚèHœ�‚`ݶ f{�Fo©Yò¿Ôó@00uMb’z-ëìXI$&ÂgfÖú¶7Ó´Þu|'K.ÌoP PÝÀùFË.Ðýoûò9B<~.’ïÅË[’´˜Ë<Ù­„$¯•¢·ä{1¹A�•.òbKxºL �¯�Ý·'¯u8n5 ’ºe,]ñH©–’ÆV¨ŒWwÃ$ùCƒel¹“|zys«™KŠi-ðqÊݬbk,wnGÿâ;¥ ~ ÖeÉrÍ’‰ÜÔ~' 1`V⦫¹-*[ÉñLÔKÄ'2@ŸÜþÐ仪 ²n‘Íß2¸N߈ƶµG•¢ói/U¢µ'Eï@¦`H湘;J•�¼¼ÜŽÅ +Jén#»¼‚6Ú´—ĹG•ü¡NÒGð'—Z!öáí¸‰Wi�»NJ @óàšAûÜZ|ª[¨ï$q}i�Ò·µQbtTEC$œ’m…Îmo“LÒDüÜ;˜%gÏ?wêÁÅ·øîùovH0õÉa‡5£Ú*î Ø’ÃÌlÍ››S iyä”rÕO7ª“ž�%L]Ý×%±ºÇhk¶«·÷>v1­HB£®±ßÞÚd\�(e oIx¢>3´6BS%ÌØá“( œÛf$Ãhýé ¿¶åeÔŽôÚèHœ�‚`ݶ f{�Fo©Yò¿Ôó@00uMb’z-ëìXI$&ÂgfÖú¶7Ó´Þu|'K.ÌoP PÝÀùFË.Ðýoûò9B<~.’ïÅË[’´˜Ë<Ù­„$¯•¢·ä{1¹A�•.òbKxºL �¯�Ý·'¯u8n5 ’ºe,]ñH©–’ÆV¨ŒWwÃ$ùCƒel¹“|zys«™KŠi-ðqÊݬbk,wnGÿâ;¥ ~ ÖeÉrÍ’‰ÜÔ~' 1`V⦫¹-*[ÉñLÔKÄ'2@ŸÜþÐ仪 ²n‘Íß2¸N߈ƶµG•¢ói/U¢µ'Eï@¦`H湘;J•�¼¼ÜŽÅ +Jén#»¼‚6Ú´—ĹG•ü¡NÒGð'—Z!öáí¸‰Wi�»NJ @óàšAûÜZ|ª[¨ï$q}i�Ò·µQbtTEC$œ’m…Îmo“LÒDüÜ;˜%gÏ?wêÁÅ·øîùovH0õÉa‡5£Ú*î Ø’ÃÌlÍ››S iyä”rÕO7ª“ž�%L]Ý×%±ºÇhk¶«·÷>v1­HB£®±ßÞÚd\�(e oIx¢>3´6BS%ÌØá“( œÛf$Ãhýé ¿¶åeÔŽôÚèHœ�‚`ݶ f{�Fo©Yò¿Ôó@00uMb’z-ëìXI$&ÂgfÖú¶7Ó´Þu|'K.ÌoP PÝÀùFË.Ðýoûò9B<~.’ïÅË[’´˜Ë<Ù­„$¯•¢·ä{1¹A�•.òbKxºL �¯�Ý·'¯u8n5 ’ºe,]ñH©–’ÆV¨ŒWwÃ$ùCƒel¹“|zys«™KŠi-ðqÊݬbk,wnGÿâ;¥ ~ ÖeÉrÍ’‰ÜÔ~' 1`V⦫¹-*[ÉñLÔKÄ'2@ŸÜþÐ仪 ²n‘Íß2¸N߈ƶµG•¢ói/U¢µ'Eï@¦`H湘;J•�¼¼ÜŽÅ +Jén#»¼‚6Ú´—ĹG•ü¡NÒGð'—Z!öáí¸‰Wi�»NJ @óàšAûÜZ|ª[¨ï$q}i�Ò·µQbtTEC$œ’m…Îmo“LÒDüÜ;˜%gÏ?wêÁÅ·øîùovH0õÉa‡5£Ú*î Ø’ÃÌlÍ››S iyä”rÕO7ª“ž�%L]Ý×%±ºÇhk¶«·÷>v1­HB£®±ßÞÚd\�(e oIx¢>3´6BS%ÌØá“( œÛf$Ãhýé ¿¶åeÔŽôÚèHœ�‚`ݶ f{�Fo©Yò¿Ôó@00uMb’z-ëìXI$&ÂgfÖú¶7Ó´Þu|'K.ÌoP PÝÀùFË.Ðýoûò9B<~.’ïÅË[’´˜Ë<Ù­„$¯•¢·ä{1¹A�•.òbKxºL �¯�Ý·'¯u8n5 ’ºe,]ñH©–’ÆV¨ŒWwÃ$ùCƒel¹“|zys«™KŠi-ðqÊݬbk,wnGÿâ;¥ ~ ÖeÉrÍ’‰ÜÔ~' 1`V⦫¹-*[ÉñLÔKÄ'2@ŸÜþÐ仪 ²n‘Íß2¸N߈ƶµG•¢ói/U¢µ'Eï@¦`H湘;J•�¼¼ÜŽÅ +Jén#»¼‚6Ú´—ĹG•ü¡NÒGð'—Z!öáí¸‰Wi�»NJ @óàšAûÜZ|ª[¨ï$q}i�Ò·µQbtTEC$œ’m…Îmo“LÒDüÜ;˜%gÏ?wêÁÅ·øîùovH0õÉa‡5£Ú*î Ø’ÃÌlÍ››S iyä”rÕO7ª“ž�%L]Ý×%±ºÇhk¶«·÷>v1­HB£®±ßÞÚd\�(e oIx¢>3´6BS%ÌØá“( œÛf$Ãhýé ¿¶åeÔŽôÚèHœ�‚`ݶ f{�Fo©Yò¿Ôó@00uMb’z-ëìXI$&ÂgfÖú¶7Ó´Þu|'K.ÌoP PÝÀùFË.Ðýoûò9B<~.’ïÅË[’´˜Ë<Ù­„$¯•¢·ä{1¹A�•.òbKxºL �¯�Ý·'¯u8n5 ’ºe,]ñH©–’ÆV¨ŒWwÃ$ùCƒel¹“|zys«™KŠi-ðqÊݬbk,wnGÿâ;¥ ~ ÖeÉrÍ’‰ÜÔ~' 1`V⦫¹-*[ÉñLÔKÄ'2@ŸÜþÐ仪 ²n‘Íß2¸N߈ƶµG•¢ói/U¢µ'Eï@¦`H湘;J•�¼¼ÜŽÅ +Jén#»¼‚6Ú´—ĹG•ü¡NÒGð'—Z!öáí¸‰Wi�»NJ @óàšAûÜZ|ª[¨ï$q}i�Ò·µQbtTEC$œ’m…Îmo“LÒDüÜ;˜%gÏ?wêÁÅ·øîùovH0õÉa‡5£Ú*î Ø’ÃÌlÍ››S iyä”rÕO7ª“ž�%L]Ý×%±ºÇhk¶«·÷>v1­HB£®±ßÞÚd\�(e oIx¢>3´6BS%ÌØá“( œÛf$Ãhýé ¿¶åeÔŽôÚèHœ�‚`ݶ f{�Fo©Yò¿Ôó@00uMb’z-ëìXI$&ÂgfÖú¶7Ó´Þu|'K.ÌoP PÝÀùFË.Ðýoûò9B<~.’ïÅË[’´˜Ë<Ù­„$¯•¢·ä{1¹A�•.òbKxºL �¯�Ý·'¯u8n5 ’ºe,]ñH©–’ÆV¨ŒWwÃ$ùCƒel¹“|zys«™KŠi-ðqÊݬbk,wnGÿâ;¥ ~ ÖeÉrÍ’‰ÜÔ~' 1`V⦫¹-*[ÉñLÔKÄ'2@ŸÜþÐ仪 ²n‘Íß2¸N߈ƶµG•¢ói/U¢µ'Eï@¦`H湘;J•�¼¼ÜŽÅ +Jén#»¼‚6Ú´—ĹG•ü¡NÒGð'—Z!öáí¸‰Wi�»NJ @óàšAûÜZ|ª[¨ï$q}i�Ò·µQbtTEC$œ’m…Îmo“LÒDüÜ;˜%gÏ?wêÁÅ·øîùovH0õÉa‡5£Ú*î Ø’ÃÌlÍ››S iyä”rÕO7ª“ž�%L]Ý×%±ºÇhk¶«·÷>v1­HB£®±ßÞÚd\�(e oIx¢>3´6BS%ÌØá“( œÛf$Ãhýé ¿¶åeÔŽôÚèHœ�‚`ݶ f{�Fo©Yò¿Ôó@00uMb’z-ëìXI$&ÂgfÖú¶7Ó´Þu|'K.ÌoP PÝÀùFË.Ðýoûò9B<~.’ïÅË[’´˜Ë<Ù­„$¯•¢·ä{1¹A�•.òbKxºL �¯�Ý·'¯u8n5 ’ºe,]ñH©–’ÆV¨ŒWwÃ$ùCƒel¹“|zys«™KŠi-ðqÊݬbk,wnGÿâ;¥ ~ ÖeÉrÍ’‰ÜÔ~' 1`V⦫¹-*[ÉñLÔKÄ'2@ŸÜþÐ仪 ²n‘Íß2¸N߈ƶµG•¢ói/U¢µ'Eï@¦`H湘;J•�¼¼ÜŽÅ +Jén#»¼‚6Ú´—ĹG•ü¡NÒGð'—Z!öáí¸‰Wi�»NJ @óàšAûÜZ|ª[¨ï$q}i�Ò·µQbtTECwas 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 (2620953) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2620953) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894367 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2620953'] with mtr_portfolio_ids : ['20894367'] and first list_photo_ids : [] new path : /proc/1343945/ Name: python3 Umask: 0002 State: R (running) Tgid: 1343945 Ngid: 0 Pid: 1343945 PPid: 1343944 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1343945 NSpid: 1343945 NSpgid: 1340560 NSsid: 1340560 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100048 kB VmRSS: 100048 kB RssAnon: 59804 kB RssFile: 40244 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 47 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1343945', 'Ngid': '0', 'Pid': '1343945', 'PPid': '1343944', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1343945', 'NSpid': '1343945', 'NSpgid': '1340560', 'NSsid': '1340560', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100048 kB', 'VmRSS': '100048 kB', 'RssAnon': '59804 kB', 'RssFile': '40244 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '47', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '1343945', '1106844', '0', '1106844', '865592', '100048', b'', 'marlene', '2620953') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (20894367) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (2620953 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (20894367) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339987650, 'portfolio_id': 20894367}, {'photo_id': 1339987614, 'portfolio_id': 20894367}, {'photo_id': 1339987611, 'portfolio_id': 20894367}, {'photo_id': 1339987608, 'portfolio_id': 20894367}, {'photo_id': 1339987523, 'portfolio_id': 20894367}, {'photo_id': 1339987514, 'portfolio_id': 20894367}, {'photo_id': 1339987512, 'portfolio_id': 20894367}, {'photo_id': 1339987496, 'portfolio_id': 20894367}, {'photo_id': 1339987495, 'portfolio_id': 20894367}, {'photo_id': 1339987494, 'portfolio_id': 20894367}, {'photo_id': 1339987140, 'portfolio_id': 20894367}, {'photo_id': 1339987138, 'portfolio_id': 20894367}, {'photo_id': 1339987136, 'portfolio_id': 20894367}, {'photo_id': 1339987129, 'portfolio_id': 20894367}, {'photo_id': 1339987124, 'portfolio_id': 20894367}, {'photo_id': 1339987095, 'portfolio_id': 20894367}, {'photo_id': 1339987092, 'portfolio_id': 20894367}, {'photo_id': 1339987090, 'portfolio_id': 20894367}, {'photo_id': 1339987088, 'portfolio_id': 20894367}, {'photo_id': 1339987087, 'portfolio_id': 20894367}, {'photo_id': 1339987086, 'portfolio_id': 20894367}, {'photo_id': 1339987030, 'portfolio_id': 20894367}, {'photo_id': 1339987016, 'portfolio_id': 20894367}, {'photo_id': 1339987013, 'portfolio_id': 20894367}, {'photo_id': 1339986993, 'portfolio_id': 20894367}, {'photo_id': 1339986796, 'portfolio_id': 20894367}, {'photo_id': 1339986789, 'portfolio_id': 20894367}, {'photo_id': 1339986741, 'portfolio_id': 20894367}, {'photo_id': 1339986543, 'portfolio_id': 20894367}, {'photo_id': 1339986422, 'portfolio_id': 20894367}, {'photo_id': 1339986421, 'portfolio_id': 20894367}, {'photo_id': 1339986382, 'portfolio_id': 20894367}, {'photo_id': 1339986379, 'portfolio_id': 20894367}, {'photo_id': 1339986376, 'portfolio_id': 20894367}, {'photo_id': 1339986374, 'portfolio_id': 20894367}, {'photo_id': 1339986372, 'portfolio_id': 20894367}, {'photo_id': 1339986342, 'portfolio_id': 20894367}, {'photo_id': 1339986341, 'portfolio_id': 20894367}, {'photo_id': 1339986339, 'portfolio_id': 20894367}, {'photo_id': 1339986338, 'portfolio_id': 20894367}, {'photo_id': 1339986337, 'portfolio_id': 20894367}, {'photo_id': 1339986289, 'portfolio_id': 20894367}, {'photo_id': 1339986286, 'portfolio_id': 20894367}, {'photo_id': 1339986283, 'portfolio_id': 20894367}, {'photo_id': 1339986281, 'portfolio_id': 20894367}] map_portfolio_id_photo_id: {20894367: [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494, 1339987140, 1339987138, 1339987136, 1339987129, 1339987124, 1339987095, 1339987092, 1339987090, 1339987088, 1339987087, 1339987086, 1339987030, 1339987016, 1339987013, 1339986993, 1339986796, 1339986789, 1339986741, 1339986543, 1339986422, 1339986421, 1339986382, 1339986379, 1339986376, 1339986374, 1339986372, 1339986342, 1339986341, 1339986339, 1339986338, 1339986337, 1339986289, 1339986286, 1339986283, 1339986281]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.016010522842407227 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 27 21:40:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20894367) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 20894367 get user id for portfolio 20894367 get sub ptf for main ptf 20894367, type 3726 and hashtags ['Teint_Dans_La_Masse', 'environnement', 'cartonnette', 'flou', 'papier', 'Carton_gris', 'kraft', 'metal', 'Carton_brun', 'plastique', 'autre_refus', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20894367 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','cartonnette','flou','papier','Carton_gris','kraft','metal','Carton_brun','plastique','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20894367 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','cartonnette','flou','papier','Carton_gris','kraft','metal','Carton_brun','plastique','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 20894367, 'sub_port_id': 20894372, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523429, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'flou': {'main_port_id': 20894367, 'sub_port_id': 20894373, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523430, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'Carton_brun': {'main_port_id': 20894367, 'sub_port_id': 20894374, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523431, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'kraft': {'main_port_id': 20894367, 'sub_port_id': 20894375, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523432, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'papier': {'main_port_id': 20894367, 'sub_port_id': 20894376, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523433, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'metal': {'main_port_id': 20894367, 'sub_port_id': 20894377, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523434, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'Carton_gris': {'main_port_id': 20894367, 'sub_port_id': 20894378, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523435, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'cartonnette': {'main_port_id': 20894367, 'sub_port_id': 20894379, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523436, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'plastique': {'main_port_id': 20894367, 'sub_port_id': 20894380, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523437, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'environnement': {'main_port_id': 20894367, 'sub_port_id': 20894381, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523438, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 20894367, 'sub_port_id': 20894382, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523439, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}, 'mal_croppe': {'main_port_id': 20894367, 'sub_port_id': 20894383, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523440, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20894372 , 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=20894367 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894372) result : ((1339986941,), (1339986942,), (1339986943,), (1339987125,), (1339987126,), (1339987190,), (1339987191,), (1339987192,), (1339987949,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894373 , 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=20894367 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894373) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894374 , 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=20894367 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 (20894374) result : ((1339986988,), (1339986989,), (1339986990,), (1339987130,), (1339987131,), (1339987265,), (1339987267,), (1339987268,), (1339987269,), (1339987615,), (1339987664,), (1339987964,), (1339987965,), (1339987966,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894375 , 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=20894367 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 (20894375) result : ((1339986992,), (1339987335,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894376 , 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=20894367 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894376) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894377 , 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=20894367 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 (20894377) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894378 , 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=20894367 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894378) result : ((1339986961,), (1339987128,), (1339987213,), (1339987660,), (1339987661,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894379 , 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=20894367 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894379) result : ((1339987663,), (1339987952,), (1339987953,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894380 , 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=20894367 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 (20894380) result : ((1339986991,), (1339987310,), (1339987312,), (1339987313,), (1339987648,), (1339987649,), (1339987668,), (1339987669,), (1339987670,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894381 , 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=20894367 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894381) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894382 , 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=20894367 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894382) result : ((1339986936,), (1339986937,), (1339986938,), (1339986939,), (1339987186,), (1339987187,), (1339987188,), (1339987189,), (1339987545,), (1339987546,), (1339987655,), (1339987656,), (1339987657,), (1339987947,), (1339987948,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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 20894383 , 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=20894367 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894383) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20894367) result : ((1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) 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`=20894367 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','cartonnette','flou','papier','Carton_gris','kraft','metal','Carton_brun','plastique','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20894367 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','cartonnette','flou','papier','Carton_gris','kraft','metal','Carton_brun','plastique','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 20894367, 'sub_port_id': 20894384, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523441, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'flou': {'main_port_id': 20894367, 'sub_port_id': 20894385, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523442, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'Carton_brun': {'main_port_id': 20894367, 'sub_port_id': 20894386, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523443, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'kraft': {'main_port_id': 20894367, 'sub_port_id': 20894387, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523444, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'papier': {'main_port_id': 20894367, 'sub_port_id': 20894388, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523445, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'metal': {'main_port_id': 20894367, 'sub_port_id': 20894389, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523446, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'Carton_gris': {'main_port_id': 20894367, 'sub_port_id': 20894390, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523447, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'cartonnette': {'main_port_id': 20894367, 'sub_port_id': 20894391, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523448, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'plastique': {'main_port_id': 20894367, 'sub_port_id': 20894392, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523449, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'environnement': {'main_port_id': 20894367, 'sub_port_id': 20894393, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523450, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20894367, 'sub_port_id': 20894394, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523451, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}, 'mal_croppe': {'main_port_id': 20894367, 'sub_port_id': 20894395, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13523452, 'last_updated_at': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 21, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 21, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894384,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894372 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894385,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894373 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894386,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894374 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894387,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894375 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894388,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894376 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894389,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894377 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894390,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894378 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894391,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894379 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894392,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894380 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894393,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894381 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894394,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894382 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20894395,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20894383 lien utilise dans velours : https://www.fotonower.com/velours/20894384,20894385,20894386,20894387,20894388,20894389,20894390,20894391,20894392,20894393,20894394,20894395?tags=autre_refus,flou,Carton_brun,kraft,papier,metal,Carton_gris,cartonnette,plastique,environnement,Teint_Dans_La_Masse,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20894367]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494] map_info['map_portfolio_photo'] : {20894367: [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494, 1339987140, 1339987138, 1339987136, 1339987129, 1339987124, 1339987095, 1339987092, 1339987090, 1339987088, 1339987087, 1339987086, 1339987030, 1339987016, 1339987013, 1339986993, 1339986796, 1339986789, 1339986741, 1339986543, 1339986422, 1339986421, 1339986382, 1339986379, 1339986376, 1339986374, 1339986372, 1339986342, 1339986341, 1339986339, 1339986338, 1339986337, 1339986289, 1339986286, 1339986283, 1339986281]} final : False mtd_id 4302 list_pids : [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494] Looping around the photos to save general results len do output : 1 /20894367. 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, '2620953') ('4302', '20894367', '1339987650', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987614', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987611', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987608', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987523', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987514', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987512', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987496', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987495', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987494', None, None, None, None, None, '2620953') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '20894367', "{'autre_refus': 20894372, 'flou': 20894373, 'Carton_brun': 20894374, 'kraft': 20894375, 'papier': 20894376, 'metal': 20894377, 'Carton_gris': 20894378, 'cartonnette': 20894379, 'plastique': 20894380, 'environnement': 20894381, 'Teint_Dans_La_Masse': 20894382, 'mal_croppe': 20894383}", None, None, None, None, '2620953'), ('4302', '20894367', '1339987650', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987614', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987611', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987608', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987523', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987514', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987512', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987496', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987495', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987494', None, None, None, None, None, '2620953')] time used for this insertion : 0.013582944869995117 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2652342319488525 time spend to save output : 0.013867378234863281 total time spend for step 1 : 3.279101610183716 step2:final Thu Feb 27 21:41:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20894367) 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 20894367 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339986289,1339986286,1339986283,1339986281,1339986342,1339986341,1339986339,1339986338,1339986337,1339986382,1339986379,1339986376,1339986374,1339986372,1339986796,1339986789,1339986741,1339986543,1339986422,1339986421,1339987030,1339987016,1339987013,1339986993,1339987095,1339987092,1339987090,1339987088,1339987087,1339987086,1339987140,1339987138,1339987136,1339987129,1339987124,1339987523,1339987514,1339987512,1339987496,1339987495,1339987494,1339987650,1339987614,1339987611,1339987608); 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([20894367]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} new output for save of step final : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494] map_info['map_portfolio_photo'] : {20894367: [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494, 1339987140, 1339987138, 1339987136, 1339987129, 1339987124, 1339987095, 1339987092, 1339987090, 1339987088, 1339987087, 1339987086, 1339987030, 1339987016, 1339987013, 1339986993, 1339986796, 1339986789, 1339986741, 1339986543, 1339986422, 1339986421, 1339986382, 1339986379, 1339986376, 1339986374, 1339986372, 1339986342, 1339986341, 1339986339, 1339986338, 1339986337, 1339986289, 1339986286, 1339986283, 1339986281]} final : False mtd_id 4302 list_pids : [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494] Looping around the photos to save general results len do output : 10 /1339987650.Didn't retrieve data . /1339987614.Didn't retrieve data . /1339987611.Didn't retrieve data . /1339987608.Didn't retrieve data . /1339987523.Didn't retrieve data . /1339987514.Didn't retrieve data . /1339987512.Didn't retrieve data . /1339987496.Didn't retrieve data . /1339987495.Didn't retrieve data . /1339987494.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, '2620953') ('4302', '20894367', '1339987650', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987614', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987611', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987608', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987523', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987514', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987512', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987496', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987495', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987494', None, None, None, None, None, '2620953') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '20894367', '1339987650', '0.10365750725583851', None, None, None, None, '2620953'), ('4302', '20894367', '1339987614', '0.10365750725583851', None, None, None, None, '2620953'), ('4302', '20894367', '1339987611', '0.10365750725583851', None, None, None, None, '2620953'), ('4302', '20894367', '1339987608', '0.10365750725583851', None, None, None, None, '2620953'), ('4302', '20894367', '1339987523', '0.10365750725583851', None, None, None, None, '2620953'), ('4302', '20894367', '1339987514', '0.10365750725583851', None, None, None, None, '2620953'), ('4302', '20894367', '1339987512', '0.10365750725583851', None, None, None, None, '2620953'), ('4302', '20894367', '1339987496', '0.10365750725583851', None, None, None, None, '2620953'), ('4302', '20894367', '1339987495', '0.10365750725583851', None, None, None, None, '2620953'), ('4302', '20894367', '1339987494', '0.10365750725583851', None, None, None, None, '2620953')] time used for this insertion : 0.013359546661376953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06636667251586914 time spend to save output : 0.013965129852294922 total time spend for step 2 : 0.08033180236816406 step3:velours_tree Thu Feb 27 21:41:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20894367: [{'autre_refus': 20894372, 'flou': 20894373, 'Carton_brun': 20894374, 'kraft': 20894375, 'papier': 20894376, 'metal': 20894377, 'Carton_gris': 20894378, 'cartonnette': 20894379, 'plastique': 20894380, 'environnement': 20894381, 'Teint_Dans_La_Masse': 20894382, 'mal_croppe': 20894383}]} input_args_next_step : {20894367: ()} output_args : {20894367: [{'autre_refus': 20894372, 'flou': 20894373, 'Carton_brun': 20894374, 'kraft': 20894375, 'papier': 20894376, 'metal': 20894377, 'Carton_gris': 20894378, 'cartonnette': 20894379, 'plastique': 20894380, 'environnement': 20894381, 'Teint_Dans_La_Masse': 20894382, 'mal_croppe': 20894383}]} args : 20894367 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'autre_refus': 20894372, 'flou': 20894373, 'Carton_brun': 20894374, 'kraft': 20894375, 'papier': 20894376, 'metal': 20894377, 'Carton_gris': 20894378, 'cartonnette': 20894379, 'plastique': 20894380, 'environnement': 20894381, 'Teint_Dans_La_Masse': 20894382, 'mal_croppe': 20894383},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20894367) 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([20894367]) 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.30550336837768555 time spend to save output : 6.151199340820312e-05 total time spend for step 3 : 0.30556488037109375 step4:send_mail_cod Thu Feb 27 21:41:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} input_args_next_step : {1339987650: ()} output_args : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} args : 1339987650 depend.output_id : 0 input_args_next_step : {1339987650: ('0.10365750725583851',), 1339987614: ()} output_args : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} args : 1339987614 depend.output_id : 0 input_args_next_step : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ()} output_args : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} args : 1339987611 depend.output_id : 0 input_args_next_step : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ()} output_args : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} args : 1339987608 depend.output_id : 0 input_args_next_step : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ()} output_args : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} args : 1339987523 depend.output_id : 0 input_args_next_step : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ()} output_args : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} args : 1339987514 depend.output_id : 0 input_args_next_step : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ()} output_args : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} args : 1339987512 depend.output_id : 0 input_args_next_step : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ()} output_args : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} args : 1339987496 depend.output_id : 0 input_args_next_step : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ()} output_args : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} args : 1339987495 depend.output_id : 0 input_args_next_step : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ()} output_args : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',)} args : 1339987494 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 : {20894367: [{'autre_refus': 20894372, 'flou': 20894373, 'Carton_brun': 20894374, 'kraft': 20894375, 'papier': 20894376, 'metal': 20894377, 'Carton_gris': 20894378, 'cartonnette': 20894379, 'plastique': 20894380, 'environnement': 20894381, 'Teint_Dans_La_Masse': 20894382, 'mal_croppe': 20894383}]} input_args_next_step : {1339987650: ('0.10365750725583851',), 1339987614: ('0.10365750725583851',), 1339987611: ('0.10365750725583851',), 1339987608: ('0.10365750725583851',), 1339987523: ('0.10365750725583851',), 1339987514: ('0.10365750725583851',), 1339987512: ('0.10365750725583851',), 1339987496: ('0.10365750725583851',), 1339987495: ('0.10365750725583851',), 1339987494: ('0.10365750725583851',), 20894367: ()} output_args : {20894367: [{'autre_refus': 20894372, 'flou': 20894373, 'Carton_brun': 20894374, 'kraft': 20894375, 'papier': 20894376, 'metal': 20894377, 'Carton_gris': 20894378, 'cartonnette': 20894379, 'plastique': 20894380, 'environnement': 20894381, 'Teint_Dans_La_Masse': 20894382, 'mal_croppe': 20894383}]} args : 20894367 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 :11, first value : ('0.10365750725583851',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20894367) 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 (1339987650,1339987614,1339987611,1339987608,1339987523,1339987514,1339987512,1339987496,1339987495,1339987494) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339987494 begin to download photo : 1339987512 begin to download photo : 1339987608 begin to download photo : 1339987650 download finish for photo 1339987512 begin to download photo : 1339987514 download finish for photo 1339987650 download finish for photo 1339987608 begin to download photo : 1339987611 download finish for photo 1339987494 begin to download photo : 1339987495 download finish for photo 1339987514 begin to download photo : 1339987523 download finish for photo 1339987611 begin to download photo : 1339987614 download finish for photo 1339987495 begin to download photo : 1339987496 download finish for photo 1339987523 download finish for photo 1339987614 download finish for photo 1339987496 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20894367_27-02-2025_21_41_01.pdf 20894372 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=20894372 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339986941: '1740688432_1826670_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075586_0.png', 1339986942: '1740688432_1826670_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075582_0.png', 1339986943: '1740688432_1826670_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075607_0.png', 1339987125: '1740688532_1827938_1339986341_e1a3a6c77fedc75e1b57f6691d842661_rle_crop_3689077245_0.png', 1339987126: '1740688532_1827938_1339986337_c19a278f52c76a881cc0681b29738524_rle_crop_3689077998_0.png', 1339987190: '1740688574_1828443_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075586_0.png', 1339987191: '1740688574_1828443_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075582_0.png', 1339987192: '1740688574_1828443_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075607_0.png', 1339987949: '1740688751_1835719_1339987095_68136faa73aba1069e2d0ceba448d19e_rle_crop_3689079080_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/32b03fdb80c8da7b8b4c3ecc9c16b073_86320033.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c49399735f1b8b40e16aa1e703ce5b11_16997197.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6d6edb6be3242dd3c0c8a47aa1134641_3355274.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/20d35c3053616d79406c9db40d114af7_71577927.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1e6f142a325154ec7b23b5e268dce40c_35863235.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/32b03fdb80c8da7b8b4c3ecc9c16b073_88638474.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c49399735f1b8b40e16aa1e703ce5b11_60253224.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6d6edb6be3242dd3c0c8a47aa1134641_77921492.png change filename to text .imagette208943721740688861/ imagette208943721740688861/1740688432_1826670_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075582_0.png.png imagette208943721740688861/1740688532_1827938_1339986337_c19a278f52c76a881cc0681b29738524_rle_crop_3689077998_0.png.png imagette208943721740688861/1740688432_1826670_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075607_0.png.png imagette208943721740688861/1740688574_1828443_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075582_0.png.png imagette208943721740688861/1740688574_1828443_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075607_0.png.png imagette208943721740688861/1740688574_1828443_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075586_0.png.png imagette208943721740688861/1740688432_1826670_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075586_0.png.png imagette208943721740688861/1740688532_1827938_1339986341_e1a3a6c77fedc75e1b57f6691d842661_rle_crop_3689077245_0.png.png imagette208943721740688861/1740688751_1835719_1339987095_68136faa73aba1069e2d0ceba448d19e_rle_crop_3689079080_0.png.png imagette208943731740688862/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/8230f9846057eec2e5d7d8ddeb086c01_57967521.png imagette208943721740688861 20894373 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=20894373 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208943731740688862 20894375 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=20894375 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339986992: '1740688432_1826670_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075579_0.png', 1339987335: '1740688574_1828443_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075579_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/405000912888c5969be8b2e53696e41c_88768971.png change filename to text .imagette208943751740688862/ imagette208943751740688862/1740688574_1828443_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075579_0.png.png imagette208943751740688862/1740688432_1826670_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075579_0.png.png imagette208943771740688862/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/405000912888c5969be8b2e53696e41c_29268641.png imagette208943751740688862 20894377 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=20894377 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208943771740688862 20894379 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=20894379 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339987663: '1740688711_1835142_1339986543_dc9c22192f7bd99d9111fbd976e753ed_rle_crop_3689078767_0.png', 1339987952: '1740688751_1835719_1339987095_68136faa73aba1069e2d0ceba448d19e_rle_crop_3689079085_0.png', 1339987953: '1740688751_1835719_1339986993_9a93fd85d5c6243d54c7272a54f7a29e_rle_crop_3689078469_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fba9fba44062f3431bb9a2318861ceae_46371105.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/852e8698216bb01dbf64c9255e3a9a7e_12440137.png change filename to text .imagette208943791740688862/ imagette208943791740688862/1740688751_1835719_1339986993_9a93fd85d5c6243d54c7272a54f7a29e_rle_crop_3689078469_0.png.png imagette208943791740688862/1740688751_1835719_1339987095_68136faa73aba1069e2d0ceba448d19e_rle_crop_3689079085_0.png.png imagette208943791740688862/1740688711_1835142_1339986543_dc9c22192f7bd99d9111fbd976e753ed_rle_crop_3689078767_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/eb70ddd4523a3fe1179c79cc60f5e2ac_46255102.png imagette208943791740688862 20894380 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=20894380 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339986991: '1740688432_1826670_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075598_0.png', 1339987310: '1740688574_1828443_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078049_0.png', 1339987312: '1740688574_1828443_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078055_0.png', 1339987313: '1740688574_1828443_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075598_0.png', 1339987648: '1740688733_1835377_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078049_0.png', 1339987649: '1740688733_1835377_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078055_0.png', 1339987668: '1740688711_1835142_1339986422_8bd38aee26603a11d325e421307b5bfc_rle_crop_3689078785_0.png', 1339987669: '1740688711_1835142_1339986422_8bd38aee26603a11d325e421307b5bfc_rle_crop_3689078780_0.png', 1339987670: '1740688711_1835142_1339986421_3627acf88b11e1c5ed9bc2c3a11a47a6_rle_crop_3689078804_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/5bcd2c09f9464a148b8a830afa45af91_88663034.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/de92a66ff46408c5c9128da6a95191b4_9920165.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ce28f52e263fbecdb713ae9c7a203134_58071299.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/5bcd2c09f9464a148b8a830afa45af91_19315964.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/de92a66ff46408c5c9128da6a95191b4_74010748.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ce28f52e263fbecdb713ae9c7a203134_51560355.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/3a57712626934b6b418f1bb105c4cf1e_57931338.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/e8d4339ded2144b33da7743ed7c5a916_75493034.png change filename to text .imagette208943801740688862/ imagette208943801740688862/1740688733_1835377_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078055_0.png.png imagette208943801740688862/1740688711_1835142_1339986421_3627acf88b11e1c5ed9bc2c3a11a47a6_rle_crop_3689078804_0.png.png imagette208943801740688862/1740688711_1835142_1339986422_8bd38aee26603a11d325e421307b5bfc_rle_crop_3689078785_0.png.png imagette208943801740688862/1740688574_1828443_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078055_0.png.png imagette208943801740688862/1740688733_1835377_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078049_0.png.png imagette208943801740688862/1740688711_1835142_1339986422_8bd38aee26603a11d325e421307b5bfc_rle_crop_3689078780_0.png.png imagette208943801740688862/1740688574_1828443_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078049_0.png.png imagette208943801740688862/1740688574_1828443_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075598_0.png.png imagette208943801740688862/1740688432_1826670_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075598_0.png.png imagette208943831740688863/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/70d65d675f82c9fef43f702a0515110a_50534591.png imagette208943801740688862 20894383 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=20894383 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208943831740688863 20894374 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=20894374 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339986988: '1740688432_1826670_1339986289_662d42ac4def0bc839ab1ce188cd7e94_rle_crop_3689075397_0.png', 1339986989: '1740688432_1826670_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075590_0.png', 1339986990: '1740688432_1826670_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075584_0.png', 1339987130: '1740688532_1827938_1339986339_7a6beea9cfebc99e57cbe171495812ed_rle_crop_3689077287_0.png', 1339987131: '1740688532_1827938_1339986338_1584f4254ddf3950c1e9844cdc78d301_rle_crop_3689077966_0.png', 1339987265: '1740688574_1828443_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078051_0.png', 1339987267: '1740688574_1828443_1339986289_662d42ac4def0bc839ab1ce188cd7e94_rle_crop_3689075397_0.png', 1339987268: '1740688574_1828443_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075590_0.png', 1339987269: '1740688574_1828443_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075584_0.png', 1339987615: '1740688733_1835377_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078051_0.png', 1339987664: '1740688711_1835142_1339986422_8bd38aee26603a11d325e421307b5bfc_rle_crop_3689078783_0.png', 1339987964: '1740688751_1835719_1339987095_68136faa73aba1069e2d0ceba448d19e_rle_crop_3689079081_0.png', 1339987965: '1740688751_1835719_1339987013_58fea7b0b855bcc9c77208d1ebbb0cfa_rle_crop_3689078451_0.png', 1339987966: '1740688751_1835719_1339986993_9a93fd85d5c6243d54c7272a54f7a29e_rle_crop_3689078470_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fa995051f20947f1a3274d7b1e91ef55_13452747.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d7d90717b2d02079c6917b9adc8796b0_99293613.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ec1184ce96e1e211f0ba887d5aa24678_91830356.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/0ebe6cc75293b9b91bdf7eae602be841_94902776.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c4f6b0a45676eed6968b91b63323ec4d_68178161.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ff8c31ee19192f2b50937c5481917a44_4252238.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fa995051f20947f1a3274d7b1e91ef55_59960799.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d7d90717b2d02079c6917b9adc8796b0_24368857.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ec1184ce96e1e211f0ba887d5aa24678_90587165.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ff8c31ee19192f2b50937c5481917a44_71611719.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/68a3d4d71e63128e1e7818a7919b4375_46209567.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/f598d0162b6cca16f7ef6fb490c09e83_38549434.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1ba86ae6a531246cb6bc3473d2d86f4b_80082550.png change filename to text .imagette208943741740688863/ imagette208943741740688863/1740688711_1835142_1339986422_8bd38aee26603a11d325e421307b5bfc_rle_crop_3689078783_0.png.png imagette208943741740688863/1740688532_1827938_1339986339_7a6beea9cfebc99e57cbe171495812ed_rle_crop_3689077287_0.png.png imagette208943741740688863/1740688751_1835719_1339986993_9a93fd85d5c6243d54c7272a54f7a29e_rle_crop_3689078470_0.png.png imagette208943741740688863/1740688574_1828443_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078051_0.png.png imagette208943741740688863/1740688751_1835719_1339987013_58fea7b0b855bcc9c77208d1ebbb0cfa_rle_crop_3689078451_0.png.png imagette208943741740688863/1740688432_1826670_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075584_0.png.png imagette208943741740688863/1740688532_1827938_1339986338_1584f4254ddf3950c1e9844cdc78d301_rle_crop_3689077966_0.png.png imagette208943741740688863/1740688574_1828443_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075590_0.png.png imagette208943741740688863/1740688574_1828443_1339986289_662d42ac4def0bc839ab1ce188cd7e94_rle_crop_3689075397_0.png.png imagette208943741740688863/1740688432_1826670_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075590_0.png.png imagette208943741740688863/1740688574_1828443_1339986286_33212684c67320b100c2d9f27fc15d9c_rle_crop_3689075584_0.png.png imagette208943741740688863/1740688733_1835377_1339986342_64e3890fbd44b4880d3855632f323d15_rle_crop_3689078051_0.png.png imagette208943741740688863/1740688751_1835719_1339987095_68136faa73aba1069e2d0ceba448d19e_rle_crop_3689079081_0.png.png imagette208943741740688863/1740688432_1826670_1339986289_662d42ac4def0bc839ab1ce188cd7e94_rle_crop_3689075397_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/6c47e8f449d962bd3fbabb44d46bb87a_21711364.png imagette208943741740688863 20894378 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=20894378 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339986961: '1740688432_1826670_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075597_0.png', 1339987128: '1740688532_1827938_1339986382_bfd2ef1a941cda05a44de857e84d08a7_rle_crop_3689077221_0.png', 1339987213: '1740688574_1828443_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075597_0.png', 1339987660: '1740688711_1835142_1339986789_4d33dcd2a6ed828c2d960e8665ad40e0_rle_crop_3689078710_0.png', 1339987661: '1740688711_1835142_1339986741_ff0af19222267745b1ff17c647cc1140_rle_crop_3689078751_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ae501f2f16ad7dd4d54c38af5307d929_44472243.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/f31d26b53c0b697fe52969ab9c489556_611074.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/ae501f2f16ad7dd4d54c38af5307d929_63453420.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/65f45c28eb68976aca3a0b74fa41fddd_87150003.png change filename to text .imagette208943781740688864/ imagette208943781740688864/1740688711_1835142_1339986741_ff0af19222267745b1ff17c647cc1140_rle_crop_3689078751_0.png.png imagette208943781740688864/1740688532_1827938_1339986382_bfd2ef1a941cda05a44de857e84d08a7_rle_crop_3689077221_0.png.png imagette208943781740688864/1740688711_1835142_1339986789_4d33dcd2a6ed828c2d960e8665ad40e0_rle_crop_3689078710_0.png.png imagette208943781740688864/1740688574_1828443_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075597_0.png.png imagette208943781740688864/1740688432_1826670_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075597_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/cf1d1ed727decdee75ba4b082401e9f6_62601858.png imagette208943781740688864 20894382 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=20894382 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339986936: '1740688432_1826670_1339986289_662d42ac4def0bc839ab1ce188cd7e94_rle_crop_3689075399_0.png', 1339986937: '1740688432_1826670_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075599_0.png', 1339986938: '1740688432_1826670_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075612_0.png', 1339986939: '1740688432_1826670_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075616_0.png', 1339987186: '1740688574_1828443_1339986289_662d42ac4def0bc839ab1ce188cd7e94_rle_crop_3689075399_0.png', 1339987187: '1740688574_1828443_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075599_0.png', 1339987188: '1740688574_1828443_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075612_0.png', 1339987189: '1740688574_1828443_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075616_0.png', 1339987545: '1740688693_1834890_1339987013_58fea7b0b855bcc9c77208d1ebbb0cfa_rle_crop_3689078450_0.png', 1339987546: '1740688693_1834890_1339986993_9a93fd85d5c6243d54c7272a54f7a29e_rle_crop_3689078471_0.png', 1339987655: '1740688711_1835142_1339986741_ff0af19222267745b1ff17c647cc1140_rle_crop_3689078755_0.png', 1339987656: '1740688711_1835142_1339986422_8bd38aee26603a11d325e421307b5bfc_rle_crop_3689078789_0.png', 1339987657: '1740688711_1835142_1339986422_8bd38aee26603a11d325e421307b5bfc_rle_crop_3689078786_0.png', 1339987947: '1740688751_1835719_1339987013_58fea7b0b855bcc9c77208d1ebbb0cfa_rle_crop_3689078450_0.png', 1339987948: '1740688751_1835719_1339986993_9a93fd85d5c6243d54c7272a54f7a29e_rle_crop_3689078471_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/078a7254ea6f4036e600ad95202cacfd_80705047.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/999774f6aff9cf4daa8597dc3ec10e12_53924527.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7f8b716fdd365948e02142962db4734a_58139732.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/88684217cc8b3fc1eb4d0dd22a116501_29893542.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/078a7254ea6f4036e600ad95202cacfd_71088018.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/999774f6aff9cf4daa8597dc3ec10e12_71712596.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7f8b716fdd365948e02142962db4734a_45997438.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/88684217cc8b3fc1eb4d0dd22a116501_84689414.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/539c007eaefd1f416954c5d41d7f5811_80754938.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/9e18dd5801852bf126bd57447c7ea2e6_50927630.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/f36a6f0a3152c243981d77afb1429375_39246573.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/d2f36fc6f94f3246caa5036ecbb3714e_83851290.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/67e95ed013473e9d726ec371629e88ce_58119255.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/539c007eaefd1f416954c5d41d7f5811_99510982.png change filename to text .imagette208943821740688864/ imagette208943821740688864/1740688432_1826670_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075612_0.png.png imagette208943821740688864/1740688751_1835719_1339987013_58fea7b0b855bcc9c77208d1ebbb0cfa_rle_crop_3689078450_0.png.png imagette208943821740688864/1740688711_1835142_1339986422_8bd38aee26603a11d325e421307b5bfc_rle_crop_3689078789_0.png.png imagette208943821740688864/1740688574_1828443_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075616_0.png.png imagette208943821740688864/1740688574_1828443_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075599_0.png.png imagette208943821740688864/1740688432_1826670_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075616_0.png.png imagette208943821740688864/1740688711_1835142_1339986422_8bd38aee26603a11d325e421307b5bfc_rle_crop_3689078786_0.png.png imagette208943821740688864/1740688693_1834890_1339986993_9a93fd85d5c6243d54c7272a54f7a29e_rle_crop_3689078471_0.png.png imagette208943821740688864/1740688574_1828443_1339986289_662d42ac4def0bc839ab1ce188cd7e94_rle_crop_3689075399_0.png.png imagette208943821740688864/1740688711_1835142_1339986741_ff0af19222267745b1ff17c647cc1140_rle_crop_3689078755_0.png.png imagette208943821740688864/1740688432_1826670_1339986289_662d42ac4def0bc839ab1ce188cd7e94_rle_crop_3689075399_0.png.png imagette208943821740688864/1740688693_1834890_1339987013_58fea7b0b855bcc9c77208d1ebbb0cfa_rle_crop_3689078450_0.png.png imagette208943821740688864/1740688432_1826670_1339986283_a64335f90d667931312676cb028b988c_rle_crop_3689075599_0.png.png imagette208943821740688864/1740688751_1835719_1339986993_9a93fd85d5c6243d54c7272a54f7a29e_rle_crop_3689078471_0.png.png imagette208943821740688864/1740688574_1828443_1339986281_fa80baec1932add373b718c274ff6bde_rle_crop_3689075612_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/9e18dd5801852bf126bd57447c7ea2e6_54008601.png imagette208943821740688864 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20894367 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20894384,20894385,20894386,20894387,20894388,20894389,20894390,20894391,20894392,20894393,20894394,20894395?tags=autre_refus,flou,Carton_brun,kraft,papier,metal,Carton_gris,cartonnette,plastique,environnement,Teint_Dans_La_Masse,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1339987650] : ('0.10365750725583851',) no score found for photo 1339987650 We are sending mail with results at report@fotonower.com args[1339987614] : ('0.10365750725583851',) no score found for photo 1339987614 We are sending mail with results at report@fotonower.com args[1339987611] : ('0.10365750725583851',) no score found for photo 1339987611 We are sending mail with results at report@fotonower.com args[1339987608] : ('0.10365750725583851',) no score found for photo 1339987608 We are sending mail with results at report@fotonower.com args[1339987523] : ('0.10365750725583851',) no score found for photo 1339987523 We are sending mail with results at report@fotonower.com args[1339987514] : ('0.10365750725583851',) no score found for photo 1339987514 We are sending mail with results at report@fotonower.com args[1339987512] : ('0.10365750725583851',) no score found for photo 1339987512 We are sending mail with results at report@fotonower.com args[1339987496] : ('0.10365750725583851',) no score found for photo 1339987496 We are sending mail with results at report@fotonower.com args[1339987495] : ('0.10365750725583851',) no score found for photo 1339987495 We are sending mail with results at report@fotonower.com args[1339987494] : ('0.10365750725583851',) no score found for photo 1339987494 We are sending mail with results at report@fotonower.com refus_total : 0.10365750725583851 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=20894367 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_P20894367_27-02-2025_21_41_01.pdf results_Auto_P20894367_27-02-2025_21_41_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20894367_27-02-2025_21_41_01.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','20894367','results_Auto_P20894367_27-02-2025_21_41_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20894367_27-02-2025_21_41_01.pdf','pdf','','0.26','0.10365750725583851') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20894367]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494] map_info['map_portfolio_photo'] : {20894367: [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494, 1339987140, 1339987138, 1339987136, 1339987129, 1339987124, 1339987095, 1339987092, 1339987090, 1339987088, 1339987087, 1339987086, 1339987030, 1339987016, 1339987013, 1339986993, 1339986796, 1339986789, 1339986741, 1339986543, 1339986422, 1339986421, 1339986382, 1339986379, 1339986376, 1339986374, 1339986372, 1339986342, 1339986341, 1339986339, 1339986338, 1339986337, 1339986289, 1339986286, 1339986283, 1339986281]} final : False mtd_id 4302 list_pids : [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494] 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, '2620953') ('4302', '20894367', '1339987650', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987614', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987611', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987608', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987523', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987514', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987512', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987496', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987495', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987494', None, None, None, None, None, '2620953') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '20894367', '1339987650', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987614', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987611', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987608', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987523', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987514', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987512', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987496', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987495', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987494', None, None, None, None, None, '2620953')] time used for this insertion : 0.01358652114868164 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.088049411773682 time spend to save output : 0.013830184936523438 total time spend for step 4 : 5.101879596710205 step5:split_time_score Thu Feb 27 21:41:06 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 : ['20894367'] 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 : [('20894367',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20894367) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339987650: {'path': 'temp/1740688861_1343945_1339987650_524282f1865f8b7339ede9d4f26b4069.jpg', 'extension': 'jpg'}, 1339987512: {'path': 'temp/1740688861_1343945_1339987512_4fa112a9f86b241d4d33d7ee781a998d.jpg', 'extension': 'jpg'}, 1339987514: {'path': 'temp/1740688861_1343945_1339987514_8d80088ccb931f8d5e10893e804ebbb3.jpg', 'extension': 'jpg'}, 1339987523: {'path': 'temp/1740688861_1343945_1339987523_6bf0804edfbaf4639f9e7333685eb418.jpg', 'extension': 'jpg'}, 1339987608: {'path': 'temp/1740688861_1343945_1339987608_37a4c459ea67f6db1ceb57f20693e838.jpg', 'extension': 'jpg'}, 1339987611: {'path': 'temp/1740688861_1343945_1339987611_459f1a3ea01cb75f18c99b7be106838d.jpg', 'extension': 'jpg'}, 1339987614: {'path': 'temp/1740688861_1343945_1339987614_9d17abf2eb9d4ea188775809e78f4ff5.jpg', 'extension': 'jpg'}, 1339987494: {'path': 'temp/1740688861_1343945_1339987494_f95915df81a1b384b08e4b64f44e0cbf.jpg', 'extension': 'jpg'}, 1339987495: {'path': 'temp/1740688861_1343945_1339987495_a2724476f6412ce20b5c23a745379df7.jpg', 'extension': 'jpg'}, 1339987496: {'path': 'temp/1740688861_1343945_1339987496_112689d69fe87293c2496e22f6e00d89.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 = 20894367; (('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 = 20894367 group by h (('21', 45),) 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=20894367 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 (20894367) 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 (20894367) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27022025 20894367 Nombre de photos uploadées : 45 / 23040 (0%) 27022025 20894367 Nombre de photos taguées (types de déchets): 0 / 45 (0%) 27022025 20894367 Nombre de photos taguées (volume) : 0 / 45 (0%) [{'photo_id': 1339986289, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/662d42ac4def0bc839ab1ce188cd7e94.jpg', 'username': None, 'uploaded_at': 1740688271, 'text': 'image_27022025_21_30_04_9145.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1339986286, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/33212684c67320b100c2d9f27fc15d9c.jpg', 'username': None, 'uploaded_at': 1740688271, 'text': 'image_27022025_21_30_14_10135.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1339986283, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/a64335f90d667931312676cb028b988c.jpg', 'username': None, 'uploaded_at': 1740688271, 'text': 'image_27022025_21_30_34_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339986281, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fa80baec1932add373b718c274ff6bde.jpg', 'username': None, 'uploaded_at': 1740688271, 'text': 'image_27022025_21_30_44_10137.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001966238021850586 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20894367, '2025-02-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1627066,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 1.2826647758483887 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= 1627066 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1627066, 'dashboard_run_id': 1636617, 'mtr_portfolio_id': 20893370, 'dashboard_result_id': 9111086, '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_P20893370_27-02-2025_21_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20893374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20893375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20893376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20893377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20893378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20893379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20893380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20893381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20893382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20893383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20893384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20893385, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1636617, 'mtr_portfolio_id': 20893610, 'dashboard_result_id': 9111087, '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_P20893610_27-02-2025_21_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20893645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20893646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20893647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20893648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20893649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20893650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20893651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20893652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20893653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20893654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20893655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20893656, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1636617, 'mtr_portfolio_id': 20894367, 'dashboard_result_id': 9111088, '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_P20894367_27-02-2025_21_38_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20894372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20894373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20894374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20894375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20894376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20894377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20894378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20894379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20894380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20894381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20894382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20894383, '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 = 20893370 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': 2620871, 'mtr_portfolio_id': 20893370, 'created_at': datetime.datetime(2025, 2, 27, 21, 19), 'result': '0.10871501911800606', 'result_long': None, 'result_double': None}] Qualite : 0.10871501911800606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20893370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20893370_27-02-2025_21_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20893370 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_P20893370_27-02-2025_21_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20893374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20893375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20893376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20893377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20893378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20893379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20893380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20893381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20893382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20893383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20893384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20893385, 'pht': 3726}}" where mtr_portfolio_id = 20893370 and dashboard_run_id = 1636617 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`=20893370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9111086, 0.10871501911800606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20893370_27-02-2025_21_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20893374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20893375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20893376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20893377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20893378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20893379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20893380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20893381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20893382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20893383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20893384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20893385, '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 = 20893610 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': 2620894, 'mtr_portfolio_id': 20893610, 'created_at': datetime.datetime(2025, 2, 27, 21, 32, 59), 'result': '0.11500339892016034', 'result_long': None, 'result_double': None}] Qualite : 0.11500339892016034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20893610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20893610_27-02-2025_21_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20893610 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_P20893610_27-02-2025_21_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20893645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20893646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20893647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20893648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20893649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20893650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20893651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20893652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20893653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20893654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20893655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20893656, 'pht': 3726}}" where mtr_portfolio_id = 20893610 and dashboard_run_id = 1636617 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`=20893610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9111087, 0.11500339892016034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20893610_27-02-2025_21_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20893645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20893646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20893647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20893648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20893649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20893650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20893651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20893652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20893653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20893654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20893655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20893656, '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 = 20894367 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': 2620953, 'mtr_portfolio_id': 20894367, 'created_at': datetime.datetime(2025, 2, 27, 21, 41, 1), 'result': '0.10365750725583851', 'result_long': None, 'result_double': None}] Qualite : 0.10365750725583851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20894367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20894367_27-02-2025_21_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20894367 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_P20894367_27-02-2025_21_41_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20894372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20894373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20894374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20894375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20894376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20894377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20894378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20894379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20894380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20894381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20894382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20894383, 'pht': 3726}}" where mtr_portfolio_id = 20894367 and dashboard_run_id = 1636617 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`=20894367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9111088, 0.10365750725583851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20894367_27-02-2025_21_41_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20894372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20894373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20894374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20894375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20894376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20894377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20894378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20894379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20894380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20894381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20894382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20894383, '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 (20893370,20893610,20894367) result : ((1339981309,), (1339981311,), (1339981352,), (1339981391,), (1339981426,), (1339981638,), (1339981646,), (1339981675,), (1339981678,), (1339981681,), (1339981685,), (1339981688,), (1339981711,), (1339981713,), (1339981715,), (1339981718,), (1339981720,), (1339981722,), (1339981794,), (1339982097,), (1339982224,), (1339982227,), (1339982231,), (1339982233,), (1339982236,), (1339982425,), (1339982430,), (1339982433,), (1339982438,), (1339982442,), (1339982466,), (1339982469,), (1339982474,), (1339982480,), (1339982513,), (1339982516,), (1339982520,), (1339982527,), (1339982534,), (1339982797,), (1339982566,), (1339982579,), (1339982587,), (1339982610,), (1339982708,), (1339983498,), (1339983502,), (1339983525,), (1339983535,), (1339983753,), (1339983815,), (1339983823,), (1339983827,), (1339983831,), (1339983835,), (1339983936,), (1339983956,), (1339984209,), (1339984214,), (1339984222,), (1339984718,), (1339984722,), (1339984725,), (1339984761,), (1339985250,), (1339985275,), (1339985282,), (1339985309,), (1339985314,), (1339985318,), (1339985471,), (1339985476,), (1339985489,), (1339985541,), (1339985543,), (1339985545,), (1339985549,), (1339985556,), (1339985565,), (1339985686,), (1339985727,), (1339985752,), (1339985757,), (1339985760,), (1339985767,), (1339985804,), (1339985809,), (1339985812,), (1339985817,), (1339985857,), (1339985864,), (1339985865,), (1339985867,), (1339985869,), (1339985875,), (1339985940,), (1339985946,), (1339985952,), (1339985957,), (1339986021,), (1339986029,), (1339986075,), (1339986076,), (1339986078,), (1339986080,), (1339986150,), (1339986152,), (1339986154,), (1339986181,), (1339986184,), (1339986187,), (1339986234,), (1339986241,), (1339986246,), (1339986250,), (1339986294,), (1339986281,), (1339986283,), (1339986286,), (1339986289,), (1339986337,), (1339986338,), (1339986339,), (1339986341,), (1339986342,), (1339986372,), (1339986374,), (1339986376,), (1339986379,), (1339986382,), (1339986421,), (1339986422,), (1339986543,), (1339986741,), (1339986789,), (1339986796,), (1339986993,), (1339987013,), (1339987016,), (1339987030,), (1339987086,), (1339987087,), (1339987088,), (1339987090,), (1339987092,), (1339987095,), (1339987124,), (1339987129,), (1339987136,), (1339987138,), (1339987140,), (1339987494,), (1339987495,), (1339987496,), (1339987512,), (1339987514,), (1339987523,), (1339987608,), (1339987611,), (1339987614,), (1339987650,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27022025': {'nb_upload': 45, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20894367]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494] map_info['map_portfolio_photo'] : {20894367: [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494, 1339987140, 1339987138, 1339987136, 1339987129, 1339987124, 1339987095, 1339987092, 1339987090, 1339987088, 1339987087, 1339987086, 1339987030, 1339987016, 1339987013, 1339986993, 1339986796, 1339986789, 1339986741, 1339986543, 1339986422, 1339986421, 1339986382, 1339986379, 1339986376, 1339986374, 1339986372, 1339986342, 1339986341, 1339986339, 1339986338, 1339986337, 1339986289, 1339986286, 1339986283, 1339986281]} final : True mtd_id 4302 list_pids : [1339987650, 1339987614, 1339987611, 1339987608, 1339987523, 1339987514, 1339987512, 1339987496, 1339987495, 1339987494] Looping around the photos to save general results len do output : 1 /20894367Didn'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, '2620953') ('4302', '20894367', '1339987650', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987614', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987611', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987608', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987523', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987514', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987512', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987496', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987495', None, None, None, None, None, '2620953') ('4302', None, None, None, None, None, None, None, '2620953') ('4302', '20894367', '1339987494', None, None, None, None, None, '2620953') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '20894367', 'None', None, None, None, None, '2620953'), ('4302', '20894367', '1339987650', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987614', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987611', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987608', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987523', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987514', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987512', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987496', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987495', None, None, None, None, None, '2620953'), ('4302', '20894367', '1339987494', None, None, None, None, None, '2620953')] time used for this insertion : 0.013956546783447266 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6388871669769287 time spend to save output : 0.014307498931884766 total time spend for step 5 : 1.6531946659088135 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 (2620953) 2.17user 2.30system 0:13.48elapsed 33%CPU (0avgtext+0avgdata 160752maxresident)k 536inputs+17024outputs (1major+71543minor)pagefaults 0swaps