$œ’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�Ò·µ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�Ò·µ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�Ò·µQbtTEC00000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '106'} ('datou_batch_current', '2782878', '1106844', '0', '1106844', '865592', '97844', b'', 'marlene', '2621944') 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 (20907055) 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 (2621944 ) ) 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 (20907055) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340052505, 'portfolio_id': 20907055}, {'photo_id': 1340052504, 'portfolio_id': 20907055}, {'photo_id': 1340052501, 'portfolio_id': 20907055}, {'photo_id': 1340052497, 'portfolio_id': 20907055}, {'photo_id': 1340052407, 'portfolio_id': 20907055}, {'photo_id': 1340052400, 'portfolio_id': 20907055}, {'photo_id': 1340052300, 'portfolio_id': 20907055}, {'photo_id': 1340052297, 'portfolio_id': 20907055}, {'photo_id': 1340052295, 'portfolio_id': 20907055}, {'photo_id': 1340052293, 'portfolio_id': 20907055}, {'photo_id': 1340052270, 'portfolio_id': 20907055}, {'photo_id': 1340052267, 'portfolio_id': 20907055}, {'photo_id': 1340052265, 'portfolio_id': 20907055}, {'photo_id': 1340052263, 'portfolio_id': 20907055}, {'photo_id': 1340051899, 'portfolio_id': 20907055}, {'photo_id': 1340051893, 'portfolio_id': 20907055}, {'photo_id': 1340051737, 'portfolio_id': 20907055}, {'photo_id': 1340051712, 'portfolio_id': 20907055}, {'photo_id': 1340051646, 'portfolio_id': 20907055}, {'photo_id': 1340051595, 'portfolio_id': 20907055}, {'photo_id': 1340051571, 'portfolio_id': 20907055}, {'photo_id': 1340051565, 'portfolio_id': 20907055}, {'photo_id': 1340051560, 'portfolio_id': 20907055}, {'photo_id': 1340051555, 'portfolio_id': 20907055}, {'photo_id': 1340051553, 'portfolio_id': 20907055}, {'photo_id': 1340051550, 'portfolio_id': 20907055}, {'photo_id': 1340051548, 'portfolio_id': 20907055}, {'photo_id': 1340051534, 'portfolio_id': 20907055}] map_portfolio_id_photo_id: {20907055: [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293, 1340052270, 1340052267, 1340052265, 1340052263, 1340051899, 1340051893, 1340051737, 1340051712, 1340051646, 1340051595, 1340051571, 1340051565, 1340051560, 1340051555, 1340051553, 1340051550, 1340051548, 1340051534]} ##### 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.014850378036499023 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Feb 28 03:42:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20907055) 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 : 20907055 get user id for portfolio 20907055 get sub ptf for main ptf 20907055, type 3726 and hashtags ['kraft', 'Carton_gris', 'Teint_Dans_La_Masse', 'mal_croppe', 'flou', 'papier', 'cartonnette', 'environnement', 'plastique', 'metal', 'Carton_brun', 'autre_refus'] 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`=20907055 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','Teint_Dans_La_Masse','mal_croppe','flou','papier','cartonnette','environnement','plastique','metal','Carton_brun','autre_refus')) 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`=20907055 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','Teint_Dans_La_Masse','mal_croppe','flou','papier','cartonnette','environnement','plastique','metal','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20907055, 'sub_port_id': 20907059, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535056, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'Carton_gris': {'main_port_id': 20907055, 'sub_port_id': 20907060, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535057, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'Carton_brun': {'main_port_id': 20907055, 'sub_port_id': 20907061, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535058, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'cartonnette': {'main_port_id': 20907055, 'sub_port_id': 20907062, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535059, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'mal_croppe': {'main_port_id': 20907055, 'sub_port_id': 20907063, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535060, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'flou': {'main_port_id': 20907055, 'sub_port_id': 20907064, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535061, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'environnement': {'main_port_id': 20907055, 'sub_port_id': 20907065, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535062, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'autre_refus': {'main_port_id': 20907055, 'sub_port_id': 20907066, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535063, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20907055, 'sub_port_id': 20907067, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535064, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'papier': {'main_port_id': 20907055, 'sub_port_id': 20907068, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535065, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'plastique': {'main_port_id': 20907055, 'sub_port_id': 20907069, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535066, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}, 'kraft': {'main_port_id': 20907055, 'sub_port_id': 20907070, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535067, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907059 , 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=20907055 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 (20907059) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907060 , 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=20907055 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 (20907060) result : ((1340052229,), (1340052230,), (1340052247,), (1340052248,), (1340052249,), (1340052250,), (1340052517,), (1340052518,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907061 , 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=20907055 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 (20907061) result : ((1340052215,), (1340052216,), (1340052217,), (1340052218,), (1340052219,), (1340052235,), (1340052236,), (1340052621,), (1340052622,), (1340052623,), (1340052624,), (1340052625,), (1340052626,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907062 , 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=20907055 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 (20907062) result : ((1340052232,), (1340052251,), (1340052617,), (1340052618,), (1340052619,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907063 , 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=20907055 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 (20907063) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907064 , 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=20907055 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 (20907064) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907065 , 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=20907055 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 (20907065) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907066 , 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=20907055 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 (20907066) result : ((1340052228,), (1340052244,), (1340052245,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907067 , 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=20907055 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 (20907067) result : ((1340052211,), (1340052212,), (1340052213,), (1340052214,), (1340052227,), (1340052240,), (1340052241,), (1340052242,), (1340052516,), (1340052614,), (1340052615,), (1340052616,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907068 , 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=20907055 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 (20907068) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907069 , 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=20907055 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 (20907069) result : ((1340052221,), (1340052237,), (1340052238,), (1340052239,), (1340052252,), (1340052253,), (1340052254,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20907070 , 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=20907055 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 (20907070) result : ((1340052256,), (1340052257,), (1340052629,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20907055) result : ((1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) 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 (1340052400,1340052300) and cspi.crop_hashtag_id = chi.id; 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`=20907055 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','Teint_Dans_La_Masse','mal_croppe','flou','papier','cartonnette','environnement','plastique','metal','Carton_brun','autre_refus')) 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`=20907055 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','Teint_Dans_La_Masse','mal_croppe','flou','papier','cartonnette','environnement','plastique','metal','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20907055, 'sub_port_id': 20907071, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535068, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'Carton_gris': {'main_port_id': 20907055, 'sub_port_id': 20907072, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535069, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'Carton_brun': {'main_port_id': 20907055, 'sub_port_id': 20907073, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535070, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'cartonnette': {'main_port_id': 20907055, 'sub_port_id': 20907074, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535071, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'mal_croppe': {'main_port_id': 20907055, 'sub_port_id': 20907075, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535072, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'flou': {'main_port_id': 20907055, 'sub_port_id': 20907076, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535073, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'environnement': {'main_port_id': 20907055, 'sub_port_id': 20907077, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535074, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'autre_refus': {'main_port_id': 20907055, 'sub_port_id': 20907078, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535075, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20907055, 'sub_port_id': 20907079, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535076, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'papier': {'main_port_id': 20907055, 'sub_port_id': 20907080, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535077, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'plastique': {'main_port_id': 20907055, 'sub_port_id': 20907081, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535078, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}, 'kraft': {'main_port_id': 20907055, 'sub_port_id': 20907082, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13535079, 'last_updated_at': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 3, 40, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 3, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907071,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907059 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20907082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20907070 lien utilise dans velours : https://www.fotonower.com/velours/20907071,20907072,20907073,20907074,20907075,20907076,20907077,20907078,20907079,20907080,20907081,20907082?tags=metal,Carton_gris,Carton_brun,cartonnette,mal_croppe,flou,environnement,autre_refus,Teint_Dans_La_Masse,papier,plastique,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20907055]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293] map_info['map_portfolio_photo'] : {20907055: [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293, 1340052270, 1340052267, 1340052265, 1340052263, 1340051899, 1340051893, 1340051737, 1340051712, 1340051646, 1340051595, 1340051571, 1340051565, 1340051560, 1340051555, 1340051553, 1340051550, 1340051548, 1340051534]} final : False mtd_id 4302 list_pids : [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293] Looping around the photos to save general results len do output : 1 /20907055. 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, '2621944') ('4302', '20907055', '1340052505', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052504', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052501', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052497', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052407', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052400', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052300', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052297', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052295', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052293', None, None, None, None, None, '2621944') 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, '20907055', "{'metal': 20907059, 'Carton_gris': 20907060, 'Carton_brun': 20907061, 'cartonnette': 20907062, 'mal_croppe': 20907063, 'flou': 20907064, 'environnement': 20907065, 'autre_refus': 20907066, 'Teint_Dans_La_Masse': 20907067, 'papier': 20907068, 'plastique': 20907069, 'kraft': 20907070}", None, None, None, None, '2621944'), ('4302', '20907055', '1340052505', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052504', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052501', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052497', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052407', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052400', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052300', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052297', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052295', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052293', None, None, None, None, None, '2621944')] time used for this insertion : 0.05070066452026367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7744317054748535 time spend to save output : 0.050977230072021484 total time spend for step 1 : 0.825408935546875 step2:final Fri Feb 28 03:42:33 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 (20907055) 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 20907055 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340051534,1340051565,1340051560,1340051555,1340051553,1340051550,1340051548,1340051737,1340051712,1340051646,1340051595,1340051571,1340051899,1340051893,1340052270,1340052267,1340052265,1340052263,1340052407,1340052400,1340052300,1340052297,1340052295,1340052293,1340052505,1340052504,1340052501,1340052497); 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([20907055]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} new output for save of step final : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293] map_info['map_portfolio_photo'] : {20907055: [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293, 1340052270, 1340052267, 1340052265, 1340052263, 1340051899, 1340051893, 1340051737, 1340051712, 1340051646, 1340051595, 1340051571, 1340051565, 1340051560, 1340051555, 1340051553, 1340051550, 1340051548, 1340051534]} final : False mtd_id 4302 list_pids : [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293] Looping around the photos to save general results len do output : 10 /1340052505.Didn't retrieve data . /1340052504.Didn't retrieve data . /1340052501.Didn't retrieve data . /1340052497.Didn't retrieve data . /1340052407.Didn't retrieve data . /1340052400.Didn't retrieve data . /1340052300.Didn't retrieve data . /1340052297.Didn't retrieve data . /1340052295.Didn't retrieve data . /1340052293.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, '2621944') ('4302', '20907055', '1340052505', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052504', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052501', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052497', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052407', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052400', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052300', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052297', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052295', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052293', None, None, None, None, None, '2621944') 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', '20907055', '1340052505', '0.10370635891731757', None, None, None, None, '2621944'), ('4302', '20907055', '1340052504', '0.10370635891731757', None, None, None, None, '2621944'), ('4302', '20907055', '1340052501', '0.10370635891731757', None, None, None, None, '2621944'), ('4302', '20907055', '1340052497', '0.10370635891731757', None, None, None, None, '2621944'), ('4302', '20907055', '1340052407', '0.10370635891731757', None, None, None, None, '2621944'), ('4302', '20907055', '1340052400', '0.10370635891731757', None, None, None, None, '2621944'), ('4302', '20907055', '1340052300', '0.10370635891731757', None, None, None, None, '2621944'), ('4302', '20907055', '1340052297', '0.10370635891731757', None, None, None, None, '2621944'), ('4302', '20907055', '1340052295', '0.10370635891731757', None, None, None, None, '2621944'), ('4302', '20907055', '1340052293', '0.10370635891731757', None, None, None, None, '2621944')] time used for this insertion : 0.02052593231201172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1190633773803711 time spend to save output : 0.02095508575439453 total time spend for step 2 : 0.14001846313476562 step3:velours_tree Fri Feb 28 03:42:33 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 : {20907055: [{'metal': 20907059, 'Carton_gris': 20907060, 'Carton_brun': 20907061, 'cartonnette': 20907062, 'mal_croppe': 20907063, 'flou': 20907064, 'environnement': 20907065, 'autre_refus': 20907066, 'Teint_Dans_La_Masse': 20907067, 'papier': 20907068, 'plastique': 20907069, 'kraft': 20907070}]} input_args_next_step : {20907055: ()} output_args : {20907055: [{'metal': 20907059, 'Carton_gris': 20907060, 'Carton_brun': 20907061, 'cartonnette': 20907062, 'mal_croppe': 20907063, 'flou': 20907064, 'environnement': 20907065, 'autre_refus': 20907066, 'Teint_Dans_La_Masse': 20907067, 'papier': 20907068, 'plastique': 20907069, 'kraft': 20907070}]} args : 20907055 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 : ({'metal': 20907059, 'Carton_gris': 20907060, 'Carton_brun': 20907061, 'cartonnette': 20907062, 'mal_croppe': 20907063, 'flou': 20907064, 'environnement': 20907065, 'autre_refus': 20907066, 'Teint_Dans_La_Masse': 20907067, 'papier': 20907068, 'plastique': 20907069, 'kraft': 20907070},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20907055) 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([20907055]) 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.326648473739624 time spend to save output : 4.839897155761719e-05 total time spend for step 3 : 0.32669687271118164 step4:send_mail_cod Fri Feb 28 03:42:34 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 : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} input_args_next_step : {1340052505: ()} output_args : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} args : 1340052505 depend.output_id : 0 input_args_next_step : {1340052505: ('0.10370635891731757',), 1340052504: ()} output_args : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} args : 1340052504 depend.output_id : 0 input_args_next_step : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ()} output_args : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} args : 1340052501 depend.output_id : 0 input_args_next_step : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ()} output_args : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} args : 1340052497 depend.output_id : 0 input_args_next_step : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ()} output_args : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} args : 1340052407 depend.output_id : 0 input_args_next_step : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ()} output_args : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} args : 1340052400 depend.output_id : 0 input_args_next_step : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ()} output_args : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} args : 1340052300 depend.output_id : 0 input_args_next_step : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ()} output_args : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} args : 1340052297 depend.output_id : 0 input_args_next_step : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ()} output_args : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} args : 1340052295 depend.output_id : 0 input_args_next_step : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ()} output_args : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',)} args : 1340052293 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 : {20907055: [{'metal': 20907059, 'Carton_gris': 20907060, 'Carton_brun': 20907061, 'cartonnette': 20907062, 'mal_croppe': 20907063, 'flou': 20907064, 'environnement': 20907065, 'autre_refus': 20907066, 'Teint_Dans_La_Masse': 20907067, 'papier': 20907068, 'plastique': 20907069, 'kraft': 20907070}]} input_args_next_step : {1340052505: ('0.10370635891731757',), 1340052504: ('0.10370635891731757',), 1340052501: ('0.10370635891731757',), 1340052497: ('0.10370635891731757',), 1340052407: ('0.10370635891731757',), 1340052400: ('0.10370635891731757',), 1340052300: ('0.10370635891731757',), 1340052297: ('0.10370635891731757',), 1340052295: ('0.10370635891731757',), 1340052293: ('0.10370635891731757',), 20907055: ()} output_args : {20907055: [{'metal': 20907059, 'Carton_gris': 20907060, 'Carton_brun': 20907061, 'cartonnette': 20907062, 'mal_croppe': 20907063, 'flou': 20907064, 'environnement': 20907065, 'autre_refus': 20907066, 'Teint_Dans_La_Masse': 20907067, 'papier': 20907068, 'plastique': 20907069, 'kraft': 20907070}]} args : 20907055 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.10370635891731757',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20907055) 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 (1340052505,1340052504,1340052501,1340052497,1340052407,1340052400,1340052300,1340052297,1340052295,1340052293) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340052293 begin to download photo : 1340052300 begin to download photo : 1340052497 begin to download photo : 1340052505 download finish for photo 1340052497 begin to download photo : 1340052501 download finish for photo 1340052293 begin to download photo : 1340052295 download finish for photo 1340052505 download finish for photo 1340052300 begin to download photo : 1340052400 download finish for photo 1340052501 begin to download photo : 1340052504 download finish for photo 1340052295 begin to download photo : 1340052297 download finish for photo 1340052400 begin to download photo : 1340052407 download finish for photo 1340052504 download finish for photo 1340052407 download finish for photo 1340052297 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette209070591740710554/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20907055_28-02-2025_03_42_34.pdf 20907059 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=20907059 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209070591740710554 20907062 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=20907062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340052232: '1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478865_0.png', 1340052251: '1740710251_2374693_1340051550_3838e4afd919b7e86ee13f6293b4d92c_rle_crop_3689478946_0.png', 1340052617: '1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480447_0.png', 1340052618: '1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480454_0.png', 1340052619: '1740710490_2377000_1340052263_03d4b31779e2468a0b1e4c42dc041751_rle_crop_3689480468_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/87eb8a9475f5cd5fdf9f7c2f08ea5812_88263660.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/1b0c545370d6b168d47efa6780ab2333_58413084.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/2f0c02e3b403f5123228cc5f857a2a69_5333352.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/24fa9ae36839fbe3192b4d714ae7439f_93699253.png change filename to text .imagette209070621740710554/ imagette209070621740710554/1740710490_2377000_1340052263_03d4b31779e2468a0b1e4c42dc041751_rle_crop_3689480468_0.png.png imagette209070621740710554/1740710251_2374693_1340051550_3838e4afd919b7e86ee13f6293b4d92c_rle_crop_3689478946_0.png.png imagette209070621740710554/1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480447_0.png.png imagette209070621740710554/1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478865_0.png.png imagette209070621740710554/1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480454_0.png.png imagette209070631740710554/ imagette209070641740710554/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/0e24687efda88b1181d755593ce88f3a_13499636.png imagette209070621740710554 20907063 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=20907063 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209070631740710554 20907064 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=20907064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209070641740710554 20907066 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=20907066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340052228: '1740710273_2374912_1340051534_9fe241d4537993fc8dff87c893e6192b_rle_crop_3689478925_0.png', 1340052244: '1740710251_2374693_1340051560_6f78588e059694225fcc756a9064f08a_rle_crop_3689478887_0.png', 1340052245: '1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478916_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e834fd17aecc679ce81b39e6a10dba39_37321091.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e7fe973fd7213b9d1d7ae2ac365c0883_71708825.png change filename to text .imagette209070661740710554/ imagette209070661740710554/1740710251_2374693_1340051560_6f78588e059694225fcc756a9064f08a_rle_crop_3689478887_0.png.png imagette209070661740710554/1740710273_2374912_1340051534_9fe241d4537993fc8dff87c893e6192b_rle_crop_3689478925_0.png.png imagette209070661740710554/1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478916_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c42ad0f53244b71724ebdc45af488df1_24375412.png imagette209070661740710554 20907069 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=20907069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340052221: '1740710233_2374424_1340051899_ff7f29d05ec5e10570e7cac6c45c6751_rle_crop_3689477930_0.png', 1340052237: '1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478871_0.png', 1340052238: '1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478878_0.png', 1340052239: '1740710273_2374912_1340051534_9fe241d4537993fc8dff87c893e6192b_rle_crop_3689478922_0.png', 1340052252: '1740710251_2374693_1340051737_851300ea703c3fc829a4a62046ae593d_rle_crop_3689478854_0.png', 1340052253: '1740710251_2374693_1340051560_6f78588e059694225fcc756a9064f08a_rle_crop_3689478893_0.png', 1340052254: '1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478909_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c639c8b1161a583003df7034d7baeaf2_77383628.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ab764e74a62ab489d9517b91d95327e3_10950182.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/402b892b10e33c16ed493ca3c842e093_49105243.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b3b24bdac1c62c09d6e687d30d739205_5100641.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c027309fef597bf9c35f621219223fe1_2123214.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3e11c2968984106a6ea71e3eb9cdc863_47989721.png change filename to text .imagette209070691740710554/ imagette209070691740710554/1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478878_0.png.png imagette209070691740710554/1740710251_2374693_1340051560_6f78588e059694225fcc756a9064f08a_rle_crop_3689478893_0.png.png imagette209070691740710554/1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478871_0.png.png imagette209070691740710554/1740710273_2374912_1340051534_9fe241d4537993fc8dff87c893e6192b_rle_crop_3689478922_0.png.png imagette209070691740710554/1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478909_0.png.png imagette209070691740710554/1740710233_2374424_1340051899_ff7f29d05ec5e10570e7cac6c45c6751_rle_crop_3689477930_0.png.png imagette209070691740710554/1740710251_2374693_1340051737_851300ea703c3fc829a4a62046ae593d_rle_crop_3689478854_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/0dc8395016cfb954f74ef6ab65d33761_36419568.png imagette209070691740710554 20907070 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=20907070 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340052256: '1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478911_0.png', 1340052257: '1740710251_2374693_1340051553_b849e944b857e0df57cebca01b139243_rle_crop_3689478939_0.png', 1340052629: '1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480457_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7ceba72a6d388d678168ea79cebcec19_48815291.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/d1bd43e9df9594772fde4a5add3e7a9c_78917804.png change filename to text .imagette209070701740710555/ imagette209070701740710555/1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478911_0.png.png imagette209070701740710555/1740710251_2374693_1340051553_b849e944b857e0df57cebca01b139243_rle_crop_3689478939_0.png.png imagette209070701740710555/1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480457_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/62bb9e9e7fd1980d61b900d4b9ef83e6_5730454.png imagette209070701740710555 20907060 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=20907060 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340052229: '1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478867_0.png', 1340052230: '1740710273_2374912_1340051534_9fe241d4537993fc8dff87c893e6192b_rle_crop_3689478923_0.png', 1340052247: '1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478906_0.png', 1340052248: '1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478910_0.png', 1340052249: '1740710251_2374693_1340051553_b849e944b857e0df57cebca01b139243_rle_crop_3689478936_0.png', 1340052250: '1740710251_2374693_1340051553_b849e944b857e0df57cebca01b139243_rle_crop_3689478933_0.png', 1340052517: '1740710473_2376760_1340052270_37415331468db19cd2f9f286debbeb81_rle_crop_3689480323_0.png', 1340052518: '1740710473_2376760_1340051893_4879bcdce81e66b6e48a32c3d051edc7_rle_crop_3689480329_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c92a1129448153173536b50e1a51e0d8_25562971.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/cb1b818362be7d19e0d44b3272463e44_83019681.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e67e4b17e6bf3f12665a5edb9eaa4c4c_71424957.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e727f974d0db2c7feba2b07f7869cf29_78961693.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a1727ffa922a627dea959ff74fad1b6c_99970333.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/08b8007decc18b74bf6d74df99d965d9_35676158.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/54d244116fedd1a3d35dbab12b757d81_53347170.png change filename to text .imagette209070601740710555/ imagette209070601740710555/1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478867_0.png.png imagette209070601740710555/1740710273_2374912_1340051534_9fe241d4537993fc8dff87c893e6192b_rle_crop_3689478923_0.png.png imagette209070601740710555/1740710251_2374693_1340051553_b849e944b857e0df57cebca01b139243_rle_crop_3689478936_0.png.png imagette209070601740710555/1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478910_0.png.png imagette209070601740710555/1740710473_2376760_1340051893_4879bcdce81e66b6e48a32c3d051edc7_rle_crop_3689480329_0.png.png imagette209070601740710555/1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478906_0.png.png imagette209070601740710555/1740710251_2374693_1340051553_b849e944b857e0df57cebca01b139243_rle_crop_3689478933_0.png.png imagette209070601740710555/1740710473_2376760_1340052270_37415331468db19cd2f9f286debbeb81_rle_crop_3689480323_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/aa3c65f8cd1fb947b4fd414ef769e98e_66753603.png imagette209070601740710555 20907061 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=20907061 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340052215: '1740710233_2374424_1340051712_f51d9f8d0233cc5928580ba747f6110b_rle_crop_3689477945_0.png', 1340052216: '1740710233_2374424_1340051712_f51d9f8d0233cc5928580ba747f6110b_rle_crop_3689477948_0.png', 1340052217: '1740710233_2374424_1340051646_4bdbc639205db2ff6493d369d5bbc942_rle_crop_3689477958_0.png', 1340052218: '1740710233_2374424_1340051595_191fb4a5594d5a919cbd3bef753b1d14_rle_crop_3689477974_0.png', 1340052219: '1740710233_2374424_1340051595_191fb4a5594d5a919cbd3bef753b1d14_rle_crop_3689477972_0.png', 1340052235: '1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478872_0.png', 1340052236: '1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478869_0.png', 1340052621: '1740710490_2377000_1340052267_0c45b1b9393fd87f2e496b48edb2a706_rle_crop_3689480437_0.png', 1340052622: '1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480451_0.png', 1340052623: '1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480450_0.png', 1340052624: '1740710490_2377000_1340052263_03d4b31779e2468a0b1e4c42dc041751_rle_crop_3689480470_0.png', 1340052625: '1740710490_2377000_1340052263_03d4b31779e2468a0b1e4c42dc041751_rle_crop_3689480478_0.png', 1340052626: '1740710490_2377000_1340052263_03d4b31779e2468a0b1e4c42dc041751_rle_crop_3689480476_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/012eda18042053de8fc482f0c24f9416_6232274.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/cefe5b341630e42fa6b19a610f99c7b1_8320442.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8a8f2959109ea6cec90984600ac8b4c9_72778731.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a34aeb3618e86a9c13ad943337b8d03a_8837902.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/bd2d74b591bdbd3201e0c20fa31abb0c_51797111.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/510c948ec0f045912cd9f33ec527ffc8_55409315.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c37c47bf209b4eb968b80d7b19745ae5_11850705.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/6d5f16352a76308134f0b6ec92bcfbb7_29769091.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/cfd98f18746f546448a04cd7d0387948_16518882.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3360502ab88ae662afdae57fc1ab7662_11999997.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/dcbbb586c54789b54e27f7d1f3c23897_89352818.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/1c27157e7377d68ad0e52c17bf4ff05e_52997327.png change filename to text .imagette209070611740710556/ imagette209070611740710556/1740710233_2374424_1340051712_f51d9f8d0233cc5928580ba747f6110b_rle_crop_3689477948_0.png.png imagette209070611740710556/1740710490_2377000_1340052263_03d4b31779e2468a0b1e4c42dc041751_rle_crop_3689480470_0.png.png imagette209070611740710556/1740710490_2377000_1340052267_0c45b1b9393fd87f2e496b48edb2a706_rle_crop_3689480437_0.png.png imagette209070611740710556/1740710233_2374424_1340051712_f51d9f8d0233cc5928580ba747f6110b_rle_crop_3689477945_0.png.png imagette209070611740710556/1740710233_2374424_1340051595_191fb4a5594d5a919cbd3bef753b1d14_rle_crop_3689477974_0.png.png imagette209070611740710556/1740710233_2374424_1340051595_191fb4a5594d5a919cbd3bef753b1d14_rle_crop_3689477972_0.png.png imagette209070611740710556/1740710233_2374424_1340051646_4bdbc639205db2ff6493d369d5bbc942_rle_crop_3689477958_0.png.png imagette209070611740710556/1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480451_0.png.png imagette209070611740710556/1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478869_0.png.png imagette209070611740710556/1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480450_0.png.png imagette209070611740710556/1740710490_2377000_1340052263_03d4b31779e2468a0b1e4c42dc041751_rle_crop_3689480476_0.png.png imagette209070611740710556/1740710490_2377000_1340052263_03d4b31779e2468a0b1e4c42dc041751_rle_crop_3689480478_0.png.png imagette209070611740710556/1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478872_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b8001606d7aba066d140b006da49850c_23102538.png imagette209070611740710556 20907067 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=20907067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340052211: '1740710233_2374424_1340051899_ff7f29d05ec5e10570e7cac6c45c6751_rle_crop_3689477933_0.png', 1340052212: '1740710233_2374424_1340051899_ff7f29d05ec5e10570e7cac6c45c6751_rle_crop_3689477934_0.png', 1340052213: '1740710233_2374424_1340051646_4bdbc639205db2ff6493d369d5bbc942_rle_crop_3689477961_0.png', 1340052214: '1740710233_2374424_1340051595_191fb4a5594d5a919cbd3bef753b1d14_rle_crop_3689477975_0.png', 1340052227: '1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478874_0.png', 1340052240: '1740710251_2374693_1340051560_6f78588e059694225fcc756a9064f08a_rle_crop_3689478898_0.png', 1340052241: '1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478915_0.png', 1340052242: '1740710251_2374693_1340051553_b849e944b857e0df57cebca01b139243_rle_crop_3689478938_0.png', 1340052516: '1740710473_2376760_1340052270_37415331468db19cd2f9f286debbeb81_rle_crop_3689480326_0.png', 1340052614: '1740710490_2377000_1340052267_0c45b1b9393fd87f2e496b48edb2a706_rle_crop_3689480441_0.png', 1340052615: '1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480453_0.png', 1340052616: '1740710490_2377000_1340052263_03d4b31779e2468a0b1e4c42dc041751_rle_crop_3689480474_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/6cf766ea48a9403dbfee42db3dcf760c_92818916.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/73e3a9441259563590eab87a1ff72cc7_78611247.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/bbd4ce9f5ec86e07005cb5b65afaaef8_47581956.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a1f1d6bea8ac2901493cd5e933e49fa0_54729001.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ace4cd3a3bceeed8005fdb6bb391af90_58220585.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/2caedd50808e38d442a8caa9fa0fa0e4_24485722.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9fd7c3f9426201ea264734caa2d8416e_52170953.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4b5118effc8502a48bec175c5bb603e1_13099848.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/825932d0dac4531443a5867b5308892e_56307909.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/1fb1cc0fe6adae8537de64f9e07f6c86_19741114.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/47c7477bf84f199110e798fd1cbede53_93565458.png change filename to text .imagette209070671740710556/ imagette209070671740710556/1740710490_2377000_1340052265_376165ec1fe347f97db0139d34823859_rle_crop_3689480453_0.png.png imagette209070671740710556/1740710251_2374693_1340051553_b849e944b857e0df57cebca01b139243_rle_crop_3689478938_0.png.png imagette209070671740710556/1740710251_2374693_1340051555_fb28c3a5828d09fcf463999fab548f28_rle_crop_3689478915_0.png.png imagette209070671740710556/1740710490_2377000_1340052263_03d4b31779e2468a0b1e4c42dc041751_rle_crop_3689480474_0.png.png imagette209070671740710556/1740710233_2374424_1340051646_4bdbc639205db2ff6493d369d5bbc942_rle_crop_3689477961_0.png.png imagette209070671740710556/1740710490_2377000_1340052267_0c45b1b9393fd87f2e496b48edb2a706_rle_crop_3689480441_0.png.png imagette209070671740710556/1740710273_2374912_1340051565_a41f0c726792416d23e9e7f3f9d11628_rle_crop_3689478874_0.png.png imagette209070671740710556/1740710233_2374424_1340051899_ff7f29d05ec5e10570e7cac6c45c6751_rle_crop_3689477933_0.png.png imagette209070671740710556/1740710233_2374424_1340051899_ff7f29d05ec5e10570e7cac6c45c6751_rle_crop_3689477934_0.png.png imagette209070671740710556/1740710233_2374424_1340051595_191fb4a5594d5a919cbd3bef753b1d14_rle_crop_3689477975_0.png.png imagette209070671740710556/1740710251_2374693_1340051560_6f78588e059694225fcc756a9064f08a_rle_crop_3689478898_0.png.png imagette209070671740710556/1740710473_2376760_1340052270_37415331468db19cd2f9f286debbeb81_rle_crop_3689480326_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/f58823a49492ba4dca481d0a354e93f1_93607658.png imagette209070671740710556 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20907055 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20907071,20907072,20907073,20907074,20907075,20907076,20907077,20907078,20907079,20907080,20907081,20907082?tags=metal,Carton_gris,Carton_brun,cartonnette,mal_croppe,flou,environnement,autre_refus,Teint_Dans_La_Masse,papier,plastique,kraft your option no_mail is active, we will not send the real mail to your client args[1340052505] : ('0.10370635891731757',) no score found for photo 1340052505 We are sending mail with results at report@fotonower.com args[1340052504] : ('0.10370635891731757',) no score found for photo 1340052504 We are sending mail with results at report@fotonower.com args[1340052501] : ('0.10370635891731757',) no score found for photo 1340052501 We are sending mail with results at report@fotonower.com args[1340052497] : ('0.10370635891731757',) no score found for photo 1340052497 We are sending mail with results at report@fotonower.com args[1340052407] : ('0.10370635891731757',) no score found for photo 1340052407 We are sending mail with results at report@fotonower.com args[1340052400] : ('0.10370635891731757',) no score found for photo 1340052400 We are sending mail with results at report@fotonower.com args[1340052300] : ('0.10370635891731757',) no score found for photo 1340052300 We are sending mail with results at report@fotonower.com args[1340052297] : ('0.10370635891731757',) no score found for photo 1340052297 We are sending mail with results at report@fotonower.com args[1340052295] : ('0.10370635891731757',) no score found for photo 1340052295 We are sending mail with results at report@fotonower.com args[1340052293] : ('0.10370635891731757',) no score found for photo 1340052293 We are sending mail with results at report@fotonower.com refus_total : 0.10370635891731757 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=20907055 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_P20907055_28-02-2025_03_42_34.pdf results_Auto_P20907055_28-02-2025_03_42_34.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907055_28-02-2025_03_42_34.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','20907055','results_Auto_P20907055_28-02-2025_03_42_34.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907055_28-02-2025_03_42_34.pdf','pdf','','0.27','0.10370635891731757') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20907055]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293] map_info['map_portfolio_photo'] : {20907055: [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293, 1340052270, 1340052267, 1340052265, 1340052263, 1340051899, 1340051893, 1340051737, 1340051712, 1340051646, 1340051595, 1340051571, 1340051565, 1340051560, 1340051555, 1340051553, 1340051550, 1340051548, 1340051534]} final : False mtd_id 4302 list_pids : [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293] 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, '2621944') ('4302', '20907055', '1340052505', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052504', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052501', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052497', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052407', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052400', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052300', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052297', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052295', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052293', None, None, None, None, None, '2621944') 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', '20907055', '1340052505', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052504', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052501', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052497', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052407', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052400', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052300', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052297', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052295', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052293', None, None, None, None, None, '2621944')] time used for this insertion : 0.11142516136169434 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.887837171554565 time spend to save output : 0.11166071891784668 total time spend for step 4 : 4.999497890472412 step5:split_time_score Fri Feb 28 03:42:39 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 : ['20907055'] 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 : [('20907055',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20907055) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340052505: {'path': 'temp/1740710554_2782878_1340052505_1a853e62550f14c0eb7b1b2b2553c438.jpg', 'extension': 'jpg'}, 1340052497: {'path': 'temp/1740710554_2782878_1340052497_9251bc1310a93fea4bd23c150b1191c1.jpg', 'extension': 'jpg'}, 1340052501: {'path': 'temp/1740710554_2782878_1340052501_fe538f9370d0692704792854b5b583c5.jpg', 'extension': 'jpg'}, 1340052504: {'path': 'temp/1740710554_2782878_1340052504_60c89ff2717cf1596807f1bd1f6e5d43.jpg', 'extension': 'jpg'}, 1340052300: {'path': 'temp/1740710554_2782878_1340052300_86fc27623c16b2da0258a0cbc4875699.jpg', 'extension': 'jpg'}, 1340052400: {'path': 'temp/1740710554_2782878_1340052400_214d2eb21591b63dda1120d078e24dd6.jpg', 'extension': 'jpg'}, 1340052407: {'path': 'temp/1740710554_2782878_1340052407_0a43e18303dd0d7f90ebfd31e7ac7ac6.jpg', 'extension': 'jpg'}, 1340052293: {'path': 'temp/1740710554_2782878_1340052293_0be5b66ace98fdbe4e134b56872e57ac.jpg', 'extension': 'jpg'}, 1340052295: {'path': 'temp/1740710554_2782878_1340052295_0de0f4ddf7d1e500d515e51d6121b543.jpg', 'extension': 'jpg'}, 1340052297: {'path': 'temp/1740710554_2782878_1340052297_2b571621aa242c22300b318eeef1cd0d.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 = 20907055; (('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 = 20907055 group by h (('03', 28),) 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=20907055 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 (20907055) 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 (20907055) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28022025 20907055 Nombre de photos uploadées : 28 / 23040 (0%) 28022025 20907055 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 28022025 20907055 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1340051534, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9fe241d4537993fc8dff87c893e6192b.jpg', 'username': None, 'uploaded_at': 1740709991, 'text': 'image_28022025_03_32_24_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340051565, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a41f0c726792416d23e9e7f3f9d11628.jpg', 'username': None, 'uploaded_at': 1740710051, 'text': 'image_28022025_03_32_53_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340051560, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/6f78588e059694225fcc756a9064f08a.jpg', 'username': None, 'uploaded_at': 1740710051, 'text': 'image_28022025_03_33_03_010150m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1340051555, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fb28c3a5828d09fcf463999fab548f28.jpg', 'username': None, 'uploaded_at': 1740710051, 'text': 'image_28022025_03_33_13_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 3.814697265625e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010051727294921875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20907055, '2025-02-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1629471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026993274688720703 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= 1629471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1629471, 'dashboard_run_id': 1637350, 'mtr_portfolio_id': 20904676, 'dashboard_result_id': 9119864, '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_P20904676_28-02-2025_03_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20904704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20904705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20904706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20904707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20904708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20904709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20904710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20904711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20904712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20904713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20904714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20904715, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1637350, 'mtr_portfolio_id': 20905347, 'dashboard_result_id': 9119865, '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_P20905347_28-02-2025_03_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20905378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20905379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20905380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20905381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20905382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20905383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20905384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20905385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20905386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20905387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20905388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20905389, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1637350, 'mtr_portfolio_id': 20906134, 'dashboard_result_id': 9119866, '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_P20906134_28-02-2025_03_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20906226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20906227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20906228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20906229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20906230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20906231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20906232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20906233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20906234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20906235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20906236, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1637350, 'mtr_portfolio_id': 20907055, 'dashboard_result_id': 9119867, '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_P20907055_28-02-2025_03_40_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20907059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907070, '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 = 20904676 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': 2621778, 'mtr_portfolio_id': 20904676, 'created_at': datetime.datetime(2025, 2, 28, 3, 2, 59), 'result': '0.09339201979184251', 'result_long': None, 'result_double': None}] Qualite : 0.09339201979184251 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20904676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20904676_28-02-2025_03_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20904676 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_P20904676_28-02-2025_03_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20904704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20904705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20904706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20904707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20904708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20904709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20904710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20904711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20904712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20904713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20904714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20904715, 'pht': 3726}}" where mtr_portfolio_id = 20904676 and dashboard_run_id = 1637350 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`=20904676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9119864, 0.09339201979184251, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20904676_28-02-2025_03_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20904704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20904705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20904706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20904707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20904708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20904709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20904710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20904711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20904712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20904713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20904714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20904715, '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 = 20905347 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': 2621833, 'mtr_portfolio_id': 20905347, 'created_at': datetime.datetime(2025, 2, 28, 3, 18, 58), 'result': '0.11636859519840724', 'result_long': None, 'result_double': None}] Qualite : 0.11636859519840724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20905347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20905347_28-02-2025_03_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20905347 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_P20905347_28-02-2025_03_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20905378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20905379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20905380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20905381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20905382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20905383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20905384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20905385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20905386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20905387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20905388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20905389, 'pht': 3726}}" where mtr_portfolio_id = 20905347 and dashboard_run_id = 1637350 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`=20905347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9119865, 0.11636859519840724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20905347_28-02-2025_03_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20905378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20905379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20905380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20905381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20905382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20905383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20905384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20905385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20905386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20905387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20905388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20905389, '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 = 20906134 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': 2621897, 'mtr_portfolio_id': 20906134, 'created_at': datetime.datetime(2025, 2, 28, 3, 35), 'result': '0.10289746261654546', 'result_long': None, 'result_double': None}] Qualite : 0.10289746261654546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20906134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20906134_28-02-2025_03_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20906134 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_P20906134_28-02-2025_03_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20906226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20906227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20906228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20906229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20906230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20906231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20906232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20906233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20906234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20906235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20906236, 'pht': 3726}}" where mtr_portfolio_id = 20906134 and dashboard_run_id = 1637350 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`=20906134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9119866, 0.10289746261654546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20906134_28-02-2025_03_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20906226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20906227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20906228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20906229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20906230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20906231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20906232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20906233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20906234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20906235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20906236, '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 = 20907055 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': 2621944, 'mtr_portfolio_id': 20907055, 'created_at': datetime.datetime(2025, 2, 28, 3, 42, 33), 'result': '0.10370635891731757', 'result_long': None, 'result_double': None}] Qualite : 0.10370635891731757 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20907055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907055_28-02-2025_03_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20907055 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_P20907055_28-02-2025_03_42_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20907059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907070, 'pht': 3726}}" where mtr_portfolio_id = 20907055 and dashboard_run_id = 1637350 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`=20907055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9119867, 0.10370635891731757, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20907055_28-02-2025_03_42_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20907059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20907060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20907061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20907062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20907063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20907064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20907065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20907066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20907067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20907068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20907069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20907070, '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 (20904676,20905347,20906134,20907055) result : ((1340042075,), (1340042100,), (1340042102,), (1340042104,), (1340042134,), (1340042136,), (1340042138,), (1340042179,), (1340042181,), (1340042183,), (1340042195,), (1340042200,), (1340042202,), (1340042205,), (1340042206,), (1340042220,), (1340042222,), (1340042224,), (1340042226,), (1340042228,), (1340042999,), (1340043003,), (1340043005,), (1340043008,), (1340043015,), (1340043431,), (1340043436,), (1340043438,), (1340043441,), (1340043444,), (1340043504,), (1340043578,), (1340043580,), (1340043582,), (1340043584,), (1340043587,), (1340043598,), (1340043650,), (1340043653,), (1340043664,), (1340043670,), (1340044341,), (1340044424,), (1340044498,), (1340044783,), (1340044797,), (1340044799,), (1340044844,), (1340044929,), (1340045010,), (1340045119,), (1340045126,), (1340045128,), (1340045140,), (1340045155,), (1340045162,), (1340045381,), (1340045387,), (1340045389,), (1340045393,), (1340045564,), (1340045567,), (1340045571,), (1340045574,), (1340045579,), (1340045583,), (1340045596,), (1340045600,), (1340045602,), (1340045603,), (1340045662,), (1340045642,), (1340045648,), (1340045657,), (1340045660,), (1340045822,), (1340045824,), (1340045826,), (1340045828,), (1340045831,), (1340045833,), (1340045847,), (1340045851,), (1340045856,), (1340045861,), (1340045865,), (1340045873,), (1340045875,), (1340045877,), (1340045880,), (1340045883,), (1340045885,), (1340045964,), (1340046009,), (1340046139,), (1340046210,), (1340046338,), (1340046421,), (1340046603,), (1340046605,), (1340046607,), (1340046617,), (1340046646,), (1340046679,), (1340046681,), (1340046727,), (1340046796,), (1340046863,), (1340046893,), (1340047031,), (1340047088,), (1340047091,), (1340047093,), (1340047120,), (1340047122,), (1340047134,), (1340047140,), (1340047151,), (1340047156,), (1340047178,), (1340047180,), (1340047182,), (1340047190,), (1340047207,), (1340047210,), (1340047214,), (1340047218,), (1340047222,), (1340047238,), (1340047240,), (1340047242,), (1340047245,), (1340047248,), (1340047260,), (1340047310,), (1340047312,), (1340047314,), (1340047316,), (1340047718,), (1340047720,), (1340047728,), (1340047737,), (1340047740,), (1340047741,), (1340047958,), (1340047960,), (1340047974,), (1340048044,), (1340048113,), (1340048240,), (1340048133,), (1340048135,), (1340048137,), (1340048142,), (1340048224,), (1340048515,), (1340048529,), (1340048537,), (1340048540,), (1340048581,), (1340049011,), (1340049028,), (1340049032,), (1340049035,), (1340049054,), (1340049186,), (1340049187,), (1340049199,), (1340049220,), (1340049225,), (1340049239,), (1340049287,), (1340049288,), (1340049299,), (1340049311,), (1340049325,), (1340049353,), (1340049355,), (1340049358,), (1340049360,), (1340049392,), (1340049393,), (1340049394,), (1340049396,), (1340049402,), (1340049465,), (1340049486,), (1340049499,), (1340049510,), (1340049515,), (1340049520,), (1340049566,), (1340049568,), (1340049570,), (1340049572,), (1340049653,), (1340049701,), (1340049758,), (1340049796,), (1340049861,), (1340049942,), (1340050133,), (1340050141,), (1340050152,), (1340050155,), (1340050593,), (1340050599,), (1340050639,), (1340050653,), (1340050656,), (1340050712,), (1340050714,), (1340050716,), (1340050719,), (1340050722,), (1340050774,), (1340050778,), (1340050784,), (1340050868,), (1340050895,), (1340050903,), (1340051537,), (1340051534,), (1340051548,), (1340051550,), (1340051553,), (1340051555,), (1340051560,), (1340051565,), (1340051571,), (1340051595,), (1340051646,), (1340051712,), (1340051737,), (1340051893,), (1340051899,), (1340052263,), (1340052265,), (1340052267,), (1340052270,), (1340052293,), (1340052295,), (1340052297,), (1340052300,), (1340052400,), (1340052407,), (1340052497,), (1340052501,), (1340052504,), (1340052505,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28022025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20907055]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293] map_info['map_portfolio_photo'] : {20907055: [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293, 1340052270, 1340052267, 1340052265, 1340052263, 1340051899, 1340051893, 1340051737, 1340051712, 1340051646, 1340051595, 1340051571, 1340051565, 1340051560, 1340051555, 1340051553, 1340051550, 1340051548, 1340051534]} final : True mtd_id 4302 list_pids : [1340052505, 1340052504, 1340052501, 1340052497, 1340052407, 1340052400, 1340052300, 1340052297, 1340052295, 1340052293] Looping around the photos to save general results len do output : 1 /20907055Didn'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, '2621944') ('4302', '20907055', '1340052505', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052504', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052501', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052497', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052407', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052400', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052300', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052297', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052295', None, None, None, None, None, '2621944') ('4302', None, None, None, None, None, None, None, '2621944') ('4302', '20907055', '1340052293', None, None, None, None, None, '2621944') 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, '20907055', 'None', None, None, None, None, '2621944'), ('4302', '20907055', '1340052505', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052504', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052501', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052497', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052407', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052400', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052300', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052297', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052295', None, None, None, None, None, '2621944'), ('4302', '20907055', '1340052293', None, None, None, None, None, '2621944')] time used for this insertion : 0.018127918243408203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3305385112762451 time spend to save output : 0.01833653450012207 total time spend for step 5 : 0.3488750457763672 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 (2621944) 2.19user 2.33system 0:11.05elapsed 41%CPU (0avgtext+0avgdata 158804maxresident)k 192inputs+15488outputs (8major+76873minor)pagefaults 0swaps