$œ’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�Ò·µQbtTEC000000000000', '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': '118', 'nonvoluntary_ctxt_switches': '110'} ('datou_batch_current', '2618875', '1106844', '0', '1106844', '865592', '98300', b'', 'marlene', '2639881') 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 (21080934) 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 (2639881 ) ) 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 (21080934) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1341085692, 'portfolio_id': 21080934}, {'photo_id': 1341085688, 'portfolio_id': 21080934}, {'photo_id': 1341085683, 'portfolio_id': 21080934}, {'photo_id': 1341085678, 'portfolio_id': 21080934}, {'photo_id': 1341085673, 'portfolio_id': 21080934}, {'photo_id': 1341085622, 'portfolio_id': 21080934}, {'photo_id': 1341085615, 'portfolio_id': 21080934}, {'photo_id': 1341085602, 'portfolio_id': 21080934}, {'photo_id': 1341085599, 'portfolio_id': 21080934}, {'photo_id': 1341085593, 'portfolio_id': 21080934}, {'photo_id': 1341085495, 'portfolio_id': 21080934}, {'photo_id': 1341085457, 'portfolio_id': 21080934}, {'photo_id': 1341085432, 'portfolio_id': 21080934}, {'photo_id': 1341085395, 'portfolio_id': 21080934}, {'photo_id': 1341085382, 'portfolio_id': 21080934}, {'photo_id': 1341085377, 'portfolio_id': 21080934}, {'photo_id': 1341084901, 'portfolio_id': 21080934}, {'photo_id': 1341084834, 'portfolio_id': 21080934}, {'photo_id': 1341084826, 'portfolio_id': 21080934}, {'photo_id': 1341084821, 'portfolio_id': 21080934}, {'photo_id': 1341084775, 'portfolio_id': 21080934}, {'photo_id': 1341084765, 'portfolio_id': 21080934}, {'photo_id': 1341084760, 'portfolio_id': 21080934}, {'photo_id': 1341084758, 'portfolio_id': 21080934}, {'photo_id': 1341084749, 'portfolio_id': 21080934}, {'photo_id': 1341084745, 'portfolio_id': 21080934}, {'photo_id': 1341084710, 'portfolio_id': 21080934}, {'photo_id': 1341084700, 'portfolio_id': 21080934}, {'photo_id': 1341084695, 'portfolio_id': 21080934}, {'photo_id': 1341084691, 'portfolio_id': 21080934}, {'photo_id': 1341084679, 'portfolio_id': 21080934}, {'photo_id': 1341084628, 'portfolio_id': 21080934}, {'photo_id': 1341084623, 'portfolio_id': 21080934}, {'photo_id': 1341084617, 'portfolio_id': 21080934}, {'photo_id': 1341084257, 'portfolio_id': 21080934}, {'photo_id': 1341084251, 'portfolio_id': 21080934}, {'photo_id': 1341084246, 'portfolio_id': 21080934}, {'photo_id': 1341083680, 'portfolio_id': 21080934}, {'photo_id': 1341083645, 'portfolio_id': 21080934}, {'photo_id': 1341083560, 'portfolio_id': 21080934}, {'photo_id': 1341083522, 'portfolio_id': 21080934}, {'photo_id': 1341083306, 'portfolio_id': 21080934}, {'photo_id': 1341083303, 'portfolio_id': 21080934}, {'photo_id': 1341083290, 'portfolio_id': 21080934}, {'photo_id': 1341083077, 'portfolio_id': 21080934}, {'photo_id': 1341083073, 'portfolio_id': 21080934}] map_portfolio_id_photo_id: {21080934: [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593, 1341085495, 1341085457, 1341085432, 1341085395, 1341085382, 1341085377, 1341084901, 1341084834, 1341084826, 1341084821, 1341084775, 1341084765, 1341084760, 1341084758, 1341084749, 1341084745, 1341084710, 1341084700, 1341084695, 1341084691, 1341084679, 1341084628, 1341084623, 1341084617, 1341084257, 1341084251, 1341084246, 1341083680, 1341083645, 1341083560, 1341083522, 1341083306, 1341083303, 1341083290, 1341083077, 1341083073]} ##### 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.015233039855957031 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 5 20:12:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21080934) 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 : 21080934 get user id for portfolio 21080934 get sub ptf for main ptf 21080934, type 3726 and hashtags ['metal', 'Carton_gris', 'mal_croppe', 'Carton_brun', 'autre_refus', 'Teint_Dans_La_Masse', 'cartonnette', 'plastique', 'kraft', 'flou', 'papier', 'environnement'] 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`=21080934 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','mal_croppe','Carton_brun','autre_refus','Teint_Dans_La_Masse','cartonnette','plastique','kraft','flou','papier','environnement')) 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`=21080934 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','mal_croppe','Carton_brun','autre_refus','Teint_Dans_La_Masse','cartonnette','plastique','kraft','flou','papier','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21080934, 'sub_port_id': 21080965, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689790, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21080934, 'sub_port_id': 21080966, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689791, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'plastique': {'main_port_id': 21080934, 'sub_port_id': 21080967, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689792, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'papier': {'main_port_id': 21080934, 'sub_port_id': 21080968, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689793, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'mal_croppe': {'main_port_id': 21080934, 'sub_port_id': 21080969, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689794, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'flou': {'main_port_id': 21080934, 'sub_port_id': 21080970, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689795, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'Carton_brun': {'main_port_id': 21080934, 'sub_port_id': 21080971, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689796, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'kraft': {'main_port_id': 21080934, 'sub_port_id': 21080972, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689797, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'Carton_gris': {'main_port_id': 21080934, 'sub_port_id': 21080973, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689798, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'environnement': {'main_port_id': 21080934, 'sub_port_id': 21080974, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689799, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'cartonnette': {'main_port_id': 21080934, 'sub_port_id': 21080975, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689800, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}, 'autre_refus': {'main_port_id': 21080934, 'sub_port_id': 21080976, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689801, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21080965 , 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=21080934 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 (21080965) result : ((1341085658,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080966 , 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=21080934 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 (21080966) result : ((1341084770,), (1341084772,), (1341084773,), (1341085446,), (1341085644,), (1341085662,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080967 , 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=21080934 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 (21080967) result : ((1341085672,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080968 , 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=21080934 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 (21080968) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080969 , 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=21080934 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 (21080969) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080970 , 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=21080934 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 (21080970) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080971 , 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=21080934 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 (21080971) result : ((1341084782,), (1341085657,), (1341085670,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080972 , 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=21080934 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 (21080972) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080973 , 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=21080934 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 (21080973) result : ((1341085455,), (1341085650,), (1341085651,), (1341085652,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080974 , 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=21080934 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 (21080974) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080975 , 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=21080934 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 (21080975) result : ((1341085653,), (1341085665,), (1341085666,), (1341085667,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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 21080976 , 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=21080934 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 (21080976) result : ((1341084778,), (1341084779,), (1341084780,), (1341084781,), (1341085646,), (1341085647,), (1341085648,), (1341085649,), (1341085663,), (1341085664,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21080934) result : ((1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) 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 (1341084700) 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`=21080934 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','mal_croppe','Carton_brun','autre_refus','Teint_Dans_La_Masse','cartonnette','plastique','kraft','flou','papier','environnement')) 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`=21080934 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','mal_croppe','Carton_brun','autre_refus','Teint_Dans_La_Masse','cartonnette','plastique','kraft','flou','papier','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21080934, 'sub_port_id': 21080978, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689802, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 21080934, 'sub_port_id': 21080979, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689803, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'plastique': {'main_port_id': 21080934, 'sub_port_id': 21080980, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689804, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'papier': {'main_port_id': 21080934, 'sub_port_id': 21080981, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689805, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'mal_croppe': {'main_port_id': 21080934, 'sub_port_id': 21080982, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689806, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'flou': {'main_port_id': 21080934, 'sub_port_id': 21080983, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689807, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'Carton_brun': {'main_port_id': 21080934, 'sub_port_id': 21080984, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689808, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'kraft': {'main_port_id': 21080934, 'sub_port_id': 21080985, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689809, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'Carton_gris': {'main_port_id': 21080934, 'sub_port_id': 21080986, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689810, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'environnement': {'main_port_id': 21080934, 'sub_port_id': 21080987, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689811, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'cartonnette': {'main_port_id': 21080934, 'sub_port_id': 21080988, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689812, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 5), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}, 'autre_refus': {'main_port_id': 21080934, 'sub_port_id': 21080989, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13689813, 'last_updated_at': datetime.datetime(2025, 3, 5, 20, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 20, 11), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 20, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080978,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080965 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080966 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080967 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080968 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080969 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080970 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080973 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080974 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080988,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080975 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21080989,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21080976 lien utilise dans velours : https://www.fotonower.com/velours/21080978,21080979,21080980,21080981,21080982,21080983,21080984,21080985,21080986,21080987,21080988,21080989?tags=metal,Teint_Dans_La_Masse,plastique,papier,mal_croppe,flou,Carton_brun,kraft,Carton_gris,environnement,cartonnette,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21080934]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593] map_info['map_portfolio_photo'] : {21080934: [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593, 1341085495, 1341085457, 1341085432, 1341085395, 1341085382, 1341085377, 1341084901, 1341084834, 1341084826, 1341084821, 1341084775, 1341084765, 1341084760, 1341084758, 1341084749, 1341084745, 1341084710, 1341084700, 1341084695, 1341084691, 1341084679, 1341084628, 1341084623, 1341084617, 1341084257, 1341084251, 1341084246, 1341083680, 1341083645, 1341083560, 1341083522, 1341083306, 1341083303, 1341083290, 1341083077, 1341083073]} final : False mtd_id 4302 list_pids : [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593] Looping around the photos to save general results len do output : 1 /21080934. 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, '2639881') ('4302', '21080934', '1341085692', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085688', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085683', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085678', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085673', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085622', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085615', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085602', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085599', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085593', None, None, None, None, None, '2639881') 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, '21080934', "{'metal': 21080965, 'Teint_Dans_La_Masse': 21080966, 'plastique': 21080967, 'papier': 21080968, 'mal_croppe': 21080969, 'flou': 21080970, 'Carton_brun': 21080971, 'kraft': 21080972, 'Carton_gris': 21080973, 'environnement': 21080974, 'cartonnette': 21080975, 'autre_refus': 21080976}", None, None, None, None, '2639881'), ('4302', '21080934', '1341085692', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085688', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085683', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085678', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085673', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085622', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085615', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085602', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085599', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085593', None, None, None, None, None, '2639881')] time used for this insertion : 0.013853311538696289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.48531079292297363 time spend to save output : 0.01409149169921875 total time spend for step 1 : 0.4994022846221924 step2:final Wed Mar 5 20:12:58 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 (21080934) 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 21080934 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1341083077,1341083073,1341083306,1341083303,1341083290,1341083680,1341083645,1341083560,1341083522,1341084257,1341084251,1341084246,1341084628,1341084623,1341084617,1341084710,1341084700,1341084695,1341084679,1341084691,1341084775,1341084765,1341084760,1341084758,1341084749,1341084745,1341084901,1341084834,1341084826,1341084821,1341085495,1341085457,1341085432,1341085395,1341085382,1341085377,1341085622,1341085615,1341085602,1341085599,1341085593,1341085692,1341085688,1341085683,1341085678,1341085673); 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([21080934]) Inside saveOutput : final : False verbose : True original output for save of step final : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} new output for save of step final : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593] map_info['map_portfolio_photo'] : {21080934: [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593, 1341085495, 1341085457, 1341085432, 1341085395, 1341085382, 1341085377, 1341084901, 1341084834, 1341084826, 1341084821, 1341084775, 1341084765, 1341084760, 1341084758, 1341084749, 1341084745, 1341084710, 1341084700, 1341084695, 1341084691, 1341084679, 1341084628, 1341084623, 1341084617, 1341084257, 1341084251, 1341084246, 1341083680, 1341083645, 1341083560, 1341083522, 1341083306, 1341083303, 1341083290, 1341083077, 1341083073]} final : False mtd_id 4302 list_pids : [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593] Looping around the photos to save general results len do output : 10 /1341085692.Didn't retrieve data . /1341085688.Didn't retrieve data . /1341085683.Didn't retrieve data . /1341085678.Didn't retrieve data . /1341085673.Didn't retrieve data . /1341085622.Didn't retrieve data . /1341085615.Didn't retrieve data . /1341085602.Didn't retrieve data . /1341085599.Didn't retrieve data . /1341085593.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, '2639881') ('4302', '21080934', '1341085692', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085688', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085683', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085678', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085673', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085622', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085615', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085602', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085599', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085593', None, None, None, None, None, '2639881') 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', '21080934', '1341085692', '0.10155220238266213', None, None, None, None, '2639881'), ('4302', '21080934', '1341085688', '0.10155220238266213', None, None, None, None, '2639881'), ('4302', '21080934', '1341085683', '0.10155220238266213', None, None, None, None, '2639881'), ('4302', '21080934', '1341085678', '0.10155220238266213', None, None, None, None, '2639881'), ('4302', '21080934', '1341085673', '0.10155220238266213', None, None, None, None, '2639881'), ('4302', '21080934', '1341085622', '0.10155220238266213', None, None, None, None, '2639881'), ('4302', '21080934', '1341085615', '0.10155220238266213', None, None, None, None, '2639881'), ('4302', '21080934', '1341085602', '0.10155220238266213', None, None, None, None, '2639881'), ('4302', '21080934', '1341085599', '0.10155220238266213', None, None, None, None, '2639881'), ('4302', '21080934', '1341085593', '0.10155220238266213', None, None, None, None, '2639881')] time used for this insertion : 0.01318979263305664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0650489330291748 time spend to save output : 0.013864278793334961 total time spend for step 2 : 0.07891321182250977 step3:velours_tree Wed Mar 5 20:12:58 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 : {21080934: [{'metal': 21080965, 'Teint_Dans_La_Masse': 21080966, 'plastique': 21080967, 'papier': 21080968, 'mal_croppe': 21080969, 'flou': 21080970, 'Carton_brun': 21080971, 'kraft': 21080972, 'Carton_gris': 21080973, 'environnement': 21080974, 'cartonnette': 21080975, 'autre_refus': 21080976}]} input_args_next_step : {21080934: ()} output_args : {21080934: [{'metal': 21080965, 'Teint_Dans_La_Masse': 21080966, 'plastique': 21080967, 'papier': 21080968, 'mal_croppe': 21080969, 'flou': 21080970, 'Carton_brun': 21080971, 'kraft': 21080972, 'Carton_gris': 21080973, 'environnement': 21080974, 'cartonnette': 21080975, 'autre_refus': 21080976}]} args : 21080934 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': 21080965, 'Teint_Dans_La_Masse': 21080966, 'plastique': 21080967, 'papier': 21080968, 'mal_croppe': 21080969, 'flou': 21080970, 'Carton_brun': 21080971, 'kraft': 21080972, 'Carton_gris': 21080973, 'environnement': 21080974, 'cartonnette': 21080975, 'autre_refus': 21080976},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21080934) 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([21080934]) 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.32163143157958984 time spend to save output : 7.152557373046875e-05 total time spend for step 3 : 0.3217029571533203 step4:send_mail_cod Wed Mar 5 20:12:58 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 : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} input_args_next_step : {1341085692: ()} output_args : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} args : 1341085692 depend.output_id : 0 input_args_next_step : {1341085692: ('0.10155220238266213',), 1341085688: ()} output_args : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} args : 1341085688 depend.output_id : 0 input_args_next_step : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ()} output_args : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} args : 1341085683 depend.output_id : 0 input_args_next_step : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ()} output_args : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} args : 1341085678 depend.output_id : 0 input_args_next_step : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ()} output_args : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} args : 1341085673 depend.output_id : 0 input_args_next_step : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ()} output_args : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} args : 1341085622 depend.output_id : 0 input_args_next_step : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ()} output_args : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} args : 1341085615 depend.output_id : 0 input_args_next_step : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ()} output_args : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} args : 1341085602 depend.output_id : 0 input_args_next_step : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ()} output_args : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} args : 1341085599 depend.output_id : 0 input_args_next_step : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ()} output_args : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',)} args : 1341085593 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 : {21080934: [{'metal': 21080965, 'Teint_Dans_La_Masse': 21080966, 'plastique': 21080967, 'papier': 21080968, 'mal_croppe': 21080969, 'flou': 21080970, 'Carton_brun': 21080971, 'kraft': 21080972, 'Carton_gris': 21080973, 'environnement': 21080974, 'cartonnette': 21080975, 'autre_refus': 21080976}]} input_args_next_step : {1341085692: ('0.10155220238266213',), 1341085688: ('0.10155220238266213',), 1341085683: ('0.10155220238266213',), 1341085678: ('0.10155220238266213',), 1341085673: ('0.10155220238266213',), 1341085622: ('0.10155220238266213',), 1341085615: ('0.10155220238266213',), 1341085602: ('0.10155220238266213',), 1341085599: ('0.10155220238266213',), 1341085593: ('0.10155220238266213',), 21080934: ()} output_args : {21080934: [{'metal': 21080965, 'Teint_Dans_La_Masse': 21080966, 'plastique': 21080967, 'papier': 21080968, 'mal_croppe': 21080969, 'flou': 21080970, 'Carton_brun': 21080971, 'kraft': 21080972, 'Carton_gris': 21080973, 'environnement': 21080974, 'cartonnette': 21080975, 'autre_refus': 21080976}]} args : 21080934 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.10155220238266213',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21080934) 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 (1341085692,1341085688,1341085683,1341085678,1341085673,1341085622,1341085615,1341085602,1341085599,1341085593) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1341085593 begin to download photo : 1341085615 begin to download photo : 1341085678 begin to download photo : 1341085692 download finish for photo 1341085593 begin to download photo : 1341085599 download finish for photo 1341085692 download finish for photo 1341085615 begin to download photo : 1341085622 download finish for photo 1341085678 begin to download photo : 1341085683 download finish for photo 1341085622 begin to download photo : 1341085673 download finish for photo 1341085683 begin to download photo : 1341085688 download finish for photo 1341085599 begin to download photo : 1341085602 download finish for photo 1341085673 download finish for photo 1341085688 download finish for photo 1341085602 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21080934_05-03-2025_20_12_59.pdf 21080965 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=21080965 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341085658: '1741201790_3358931_1341084691_83275ecf67528a88587695ba872f3f95_rle_crop_3694894625_0.png'} change filename to text .imagette210809651741201979/ imagette210809651741201979/1741201790_3358931_1341084691_83275ecf67528a88587695ba872f3f95_rle_crop_3694894625_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/456046cb19cddd9b48105f4cc15e05da_21641429.png imagette210809651741201979 21080967 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=21080967 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341085672: '1741201811_3359420_1341084251_c17008bb77607dde00396e3c9600a53c_rle_crop_3694894706_0.png'} change filename to text .imagette210809671741201979/ imagette210809671741201979/1741201811_3359420_1341084251_c17008bb77607dde00396e3c9600a53c_rle_crop_3694894706_0.png.png imagette210809691741201979/ imagette210809701741201979/ imagette210809721741201979/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f09be087f5df1e1877a123a0baebee29_75382179.png imagette210809671741201979 21080969 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=21080969 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210809691741201979 21080970 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=21080970 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210809701741201979 21080972 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=21080972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210809721741201979 21080975 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=21080975 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341085653: '1741201790_3358931_1341084700_c6194a426434d70d8308bca96e39d3d8_rle_crop_3694894524_0.png', 1341085665: '1741201811_3359420_1341084628_f427f95a1c2fc241bd579c9fa7f316c6_rle_crop_3694894678_0.png', 1341085666: '1741201811_3359420_1341084628_f427f95a1c2fc241bd579c9fa7f316c6_rle_crop_3694894681_0.png', 1341085667: '1741201811_3359420_1341084246_38f263d9deea13899c159ab517c2551f_rle_crop_3694896419_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a82e3ea8a25d141a05a0823a3a65d047_32579803.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8ec9459e7d79ab583f9b3a6012a5ab23_45406774.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/767bd0ceae207fedb4b748b58e54ca90_16749454.png change filename to text .imagette210809751741201979/ imagette210809751741201979/1741201790_3358931_1341084700_c6194a426434d70d8308bca96e39d3d8_rle_crop_3694894524_0.png.png imagette210809751741201979/1741201811_3359420_1341084628_f427f95a1c2fc241bd579c9fa7f316c6_rle_crop_3694894681_0.png.png imagette210809751741201979/1741201811_3359420_1341084628_f427f95a1c2fc241bd579c9fa7f316c6_rle_crop_3694894678_0.png.png imagette210809751741201979/1741201811_3359420_1341084246_38f263d9deea13899c159ab517c2551f_rle_crop_3694896419_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3e419cbdd955302fd7247e16463b66d1_79078377.png imagette210809751741201979 21080976 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=21080976 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341084778: '1741201575_3351080_1341083680_7c59b3ef16fa20ddb041137071e0fa2e_rle_crop_3694892021_0.png', 1341084779: '1741201575_3351080_1341083680_7c59b3ef16fa20ddb041137071e0fa2e_rle_crop_3694892030_0.png', 1341084780: '1741201575_3351080_1341083303_5f136fc54699eab4751c1a3f9cd026bd_rle_crop_3694892043_0.png', 1341084781: '1741201575_3351080_1341083290_4099004e717d0288162dffae4f675e9d_rle_crop_3694892217_0.png', 1341085646: '1741201790_3358931_1341084775_6a758dd0d03b218bd998f8c6a66b2f0d_rle_crop_3694894489_0.png', 1341085647: '1741201790_3358931_1341084700_c6194a426434d70d8308bca96e39d3d8_rle_crop_3694894529_0.png', 1341085648: '1741201790_3358931_1341084695_312fcd5790868331d8a4345d4a970189_rle_crop_3694894615_0.png', 1341085649: '1741201790_3358931_1341084679_63c306f61ea03186245ceb03a1d46e4f_rle_crop_3694894697_0.png', 1341085663: '1741201811_3359420_1341084251_c17008bb77607dde00396e3c9600a53c_rle_crop_3694894707_0.png', 1341085664: '1741201811_3359420_1341084246_38f263d9deea13899c159ab517c2551f_rle_crop_3694896424_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4438f33968ac02aca219309b7610036c_11087532.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c7d0dfa7e6d1e631b22ff1890b07df08_59702042.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/bb5aba4011ca0e9a82764cf83f9f0000_95630652.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/175c07729b04b36cf47846e2026b63fa_21152364.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1b97fad50754dcd266d3e8c51d5f6a0a_28224240.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9160a55b034bdf1a66eb3a093b4de02e_13071645.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/607978ad810fe38732d0fa75017087fd_60708129.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5ebfe1db70d3aa41d17d63c4afe3db5f_77232217.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/16340e28f3b6050dc4c117421143dc19_13592659.png change filename to text .imagette210809761741201979/ imagette210809761741201979/1741201790_3358931_1341084695_312fcd5790868331d8a4345d4a970189_rle_crop_3694894615_0.png.png imagette210809761741201979/1741201811_3359420_1341084246_38f263d9deea13899c159ab517c2551f_rle_crop_3694896424_0.png.png imagette210809761741201979/1741201811_3359420_1341084251_c17008bb77607dde00396e3c9600a53c_rle_crop_3694894707_0.png.png imagette210809761741201979/1741201790_3358931_1341084700_c6194a426434d70d8308bca96e39d3d8_rle_crop_3694894529_0.png.png imagette210809761741201979/1741201575_3351080_1341083680_7c59b3ef16fa20ddb041137071e0fa2e_rle_crop_3694892021_0.png.png imagette210809761741201979/1741201790_3358931_1341084679_63c306f61ea03186245ceb03a1d46e4f_rle_crop_3694894697_0.png.png imagette210809761741201979/1741201790_3358931_1341084775_6a758dd0d03b218bd998f8c6a66b2f0d_rle_crop_3694894489_0.png.png imagette210809761741201979/1741201575_3351080_1341083680_7c59b3ef16fa20ddb041137071e0fa2e_rle_crop_3694892030_0.png.png imagette210809761741201979/1741201575_3351080_1341083290_4099004e717d0288162dffae4f675e9d_rle_crop_3694892217_0.png.png imagette210809761741201979/1741201575_3351080_1341083303_5f136fc54699eab4751c1a3f9cd026bd_rle_crop_3694892043_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1c9401db6f1087539f0d8d77918b9ac1_84165191.png imagette210809761741201979 21080966 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=21080966 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341084770: '1741201575_3351080_1341083680_7c59b3ef16fa20ddb041137071e0fa2e_rle_crop_3694892028_0.png', 1341084772: '1741201575_3351080_1341083290_4099004e717d0288162dffae4f675e9d_rle_crop_3694892214_0.png', 1341084773: '1741201575_3351080_1341083290_4099004e717d0288162dffae4f675e9d_rle_crop_3694892218_0.png', 1341085446: '1741201733_3357021_1341084623_381fb9f7cc604012ed41fa6aba872782_rle_crop_3694893351_0.png', 1341085644: '1741201790_3358931_1341084700_c6194a426434d70d8308bca96e39d3d8_rle_crop_3694894523_0.png', 1341085662: '1741201811_3359420_1341084628_f427f95a1c2fc241bd579c9fa7f316c6_rle_crop_3694894685_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b34b90708960a34e9c60308f96408a81_55798144.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7319b69fdc6816ae0be9f7de1eb18161_85265323.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/14489273237c785b79ce1060a92b3f15_48044983.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2baeefd751becd2ebba2dd49de9497c0_43565777.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/a3c6d3c500cbcfa8dd2839603a4c3319_20583734.png change filename to text .imagette210809661741201979/ imagette210809661741201979/1741201733_3357021_1341084623_381fb9f7cc604012ed41fa6aba872782_rle_crop_3694893351_0.png.png imagette210809661741201979/1741201575_3351080_1341083290_4099004e717d0288162dffae4f675e9d_rle_crop_3694892218_0.png.png imagette210809661741201979/1741201790_3358931_1341084700_c6194a426434d70d8308bca96e39d3d8_rle_crop_3694894523_0.png.png imagette210809661741201979/1741201811_3359420_1341084628_f427f95a1c2fc241bd579c9fa7f316c6_rle_crop_3694894685_0.png.png imagette210809661741201979/1741201575_3351080_1341083290_4099004e717d0288162dffae4f675e9d_rle_crop_3694892214_0.png.png imagette210809661741201979/1741201575_3351080_1341083680_7c59b3ef16fa20ddb041137071e0fa2e_rle_crop_3694892028_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4a5313f70fdd64f8d21b3306312f2c69_5198836.png imagette210809661741201979 21080971 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=21080971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341084782: '1741201575_3351080_1341083290_4099004e717d0288162dffae4f675e9d_rle_crop_3694892215_0.png', 1341085657: '1741201790_3358931_1341084700_c6194a426434d70d8308bca96e39d3d8_rle_crop_3694894522_0.png', 1341085670: '1741201811_3359420_1341084251_c17008bb77607dde00396e3c9600a53c_rle_crop_3694894705_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7837d3705afff60f7429d4b84611e135_15102109.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/293f5f67528ecd37d234f85a53e00361_88367145.png change filename to text .imagette210809711741201980/ imagette210809711741201980/1741201811_3359420_1341084251_c17008bb77607dde00396e3c9600a53c_rle_crop_3694894705_0.png.png imagette210809711741201980/1741201790_3358931_1341084700_c6194a426434d70d8308bca96e39d3d8_rle_crop_3694894522_0.png.png imagette210809711741201980/1741201575_3351080_1341083290_4099004e717d0288162dffae4f675e9d_rle_crop_3694892215_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/661447287a44f058746406e369cbcc62_8542030.png imagette210809711741201980 21080973 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=21080973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341085455: '1741201733_3357021_1341084623_381fb9f7cc604012ed41fa6aba872782_rle_crop_3694893346_0.png', 1341085650: '1741201790_3358931_1341084700_c6194a426434d70d8308bca96e39d3d8_rle_crop_3694894520_0.png', 1341085651: '1741201790_3358931_1341084695_312fcd5790868331d8a4345d4a970189_rle_crop_3694894611_0.png', 1341085652: '1741201790_3358931_1341084691_83275ecf67528a88587695ba872f3f95_rle_crop_3694894619_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d96f020d3a2ec45a42cfe8d593a445ef_54158709.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/bc97b64dad35a51f2de48b5339c84904_84261929.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c4fac88a12a7ebdeef3c459827af6c28_85135221.png change filename to text .imagette210809731741201980/ imagette210809731741201980/1741201733_3357021_1341084623_381fb9f7cc604012ed41fa6aba872782_rle_crop_3694893346_0.png.png imagette210809731741201980/1741201790_3358931_1341084695_312fcd5790868331d8a4345d4a970189_rle_crop_3694894611_0.png.png imagette210809731741201980/1741201790_3358931_1341084700_c6194a426434d70d8308bca96e39d3d8_rle_crop_3694894520_0.png.png imagette210809731741201980/1741201790_3358931_1341084691_83275ecf67528a88587695ba872f3f95_rle_crop_3694894619_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4b8fbb5742d2cf4d6d6fa6dba3a7ac5f_27730378.png imagette210809731741201980 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21080934 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21080978,21080979,21080980,21080981,21080982,21080983,21080984,21080985,21080986,21080987,21080988,21080989?tags=metal,Teint_Dans_La_Masse,plastique,papier,mal_croppe,flou,Carton_brun,kraft,Carton_gris,environnement,cartonnette,autre_refus your option no_mail is active, we will not send the real mail to your client args[1341085692] : ('0.10155220238266213',) no score found for photo 1341085692 We are sending mail with results at report@fotonower.com args[1341085688] : ('0.10155220238266213',) no score found for photo 1341085688 We are sending mail with results at report@fotonower.com args[1341085683] : ('0.10155220238266213',) no score found for photo 1341085683 We are sending mail with results at report@fotonower.com args[1341085678] : ('0.10155220238266213',) no score found for photo 1341085678 We are sending mail with results at report@fotonower.com args[1341085673] : ('0.10155220238266213',) no score found for photo 1341085673 We are sending mail with results at report@fotonower.com args[1341085622] : ('0.10155220238266213',) no score found for photo 1341085622 We are sending mail with results at report@fotonower.com args[1341085615] : ('0.10155220238266213',) no score found for photo 1341085615 We are sending mail with results at report@fotonower.com args[1341085602] : ('0.10155220238266213',) no score found for photo 1341085602 We are sending mail with results at report@fotonower.com args[1341085599] : ('0.10155220238266213',) no score found for photo 1341085599 We are sending mail with results at report@fotonower.com args[1341085593] : ('0.10155220238266213',) no score found for photo 1341085593 We are sending mail with results at report@fotonower.com refus_total : 0.10155220238266213 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=21080934 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_P21080934_05-03-2025_20_12_59.pdf results_Auto_P21080934_05-03-2025_20_12_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21080934_05-03-2025_20_12_59.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','21080934','results_Auto_P21080934_05-03-2025_20_12_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21080934_05-03-2025_20_12_59.pdf','pdf','','0.17','0.10155220238266213') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21080934]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593] map_info['map_portfolio_photo'] : {21080934: [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593, 1341085495, 1341085457, 1341085432, 1341085395, 1341085382, 1341085377, 1341084901, 1341084834, 1341084826, 1341084821, 1341084775, 1341084765, 1341084760, 1341084758, 1341084749, 1341084745, 1341084710, 1341084700, 1341084695, 1341084691, 1341084679, 1341084628, 1341084623, 1341084617, 1341084257, 1341084251, 1341084246, 1341083680, 1341083645, 1341083560, 1341083522, 1341083306, 1341083303, 1341083290, 1341083077, 1341083073]} final : False mtd_id 4302 list_pids : [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593] 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, '2639881') ('4302', '21080934', '1341085692', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085688', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085683', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085678', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085673', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085622', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085615', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085602', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085599', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085593', None, None, None, None, None, '2639881') 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', '21080934', '1341085692', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085688', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085683', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085678', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085673', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085622', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085615', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085602', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085599', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085593', None, None, None, None, None, '2639881')] time used for this insertion : 0.11818957328796387 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.914433240890503 time spend to save output : 0.11844730377197266 total time spend for step 4 : 3.0328805446624756 step5:split_time_score Wed Mar 5 20:13:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21080934'] 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 : [('21080934',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21080934) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1341085692: {'path': 'temp/1741201978_2618875_1341085692_ab43f66e2474c0959c0b0ccf33735229.jpg', 'extension': 'jpg'}, 1341085615: {'path': 'temp/1741201978_2618875_1341085615_976c70332533afd3563ba3401cef591b.jpg', 'extension': 'jpg'}, 1341085622: {'path': 'temp/1741201978_2618875_1341085622_5f1c4bd4c32b8b0b0f10af0d8a7d1fad.jpg', 'extension': 'jpg'}, 1341085673: {'path': 'temp/1741201978_2618875_1341085673_3eea43032a8a849afb0e51a824c78fc1.jpg', 'extension': 'jpg'}, 1341085678: {'path': 'temp/1741201978_2618875_1341085678_456a4d68ba89939cde0d8c48ab09ecea.jpg', 'extension': 'jpg'}, 1341085683: {'path': 'temp/1741201978_2618875_1341085683_2a20fead44ff4b1297a2e721bd6cd22e.jpg', 'extension': 'jpg'}, 1341085688: {'path': 'temp/1741201978_2618875_1341085688_71fd4cc11f673c0ba9e9a49112ce82ad.jpg', 'extension': 'jpg'}, 1341085593: {'path': 'temp/1741201978_2618875_1341085593_fcc1d04fac0c7dca70720db44eb1e0ad.jpg', 'extension': 'jpg'}, 1341085599: {'path': 'temp/1741201978_2618875_1341085599_ca8d833bc67caeaca50beea2a251e068.jpg', 'extension': 'jpg'}, 1341085602: {'path': 'temp/1741201978_2618875_1341085602_601c8a7f8ff7f085b64ff0d2e9348b89.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 = 21080934; (('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 = 21080934 group by h (('20', 46),) 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=21080934 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 (21080934) 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 (21080934) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05032025 21080934 Nombre de photos uploadées : 46 / 23040 (0%) 05032025 21080934 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 05032025 21080934 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1341083077, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7bb4c025d288df07751a0af52a3e63ea.jpg', 'username': None, 'uploaded_at': 1741201285, 'text': 'image_05032025_20_00_03_9128.jpg'}, {'photo_id': 1341083073, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3141700401fdfc71d42d7a29eda33608.jpg', 'username': None, 'uploaded_at': 1741201285, 'text': 'image_05032025_20_00_44_10135.jpg'}, {'photo_id': 1341083306, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0daa82e38d1678ac9dd7d4fcf2aabd27.jpg', 'username': None, 'uploaded_at': 1741201345, 'text': 'image_05032025_20_00_54_10133.jpg'}, {'photo_id': 1341083303, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5f136fc54699eab4751c1a3f9cd026bd.jpg', 'username': None, 'uploaded_at': 1741201345, 'text': 'image_05032025_20_01_14_10136.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0030236244201660156 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21080934, '2025-03-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1639483,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021975278854370117 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= 1639483 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1639483, 'dashboard_run_id': 1650016, 'mtr_portfolio_id': 21078591, 'dashboard_result_id': 9244642, '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_P21078591_05-03-2025_19_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21078694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21078695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21078696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21078697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21078698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21078699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21078700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21078701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21078702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21078703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21078704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21078705, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1650016, 'mtr_portfolio_id': 21079365, 'dashboard_result_id': 9244643, '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_P21079365_05-03-2025_19_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21079394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21079395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21079396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21079397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21079398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21079399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21079400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21079401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21079402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21079403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21079404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21079405, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1650016, 'mtr_portfolio_id': 21080175, 'dashboard_result_id': 9244644, '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_P21080175_05-03-2025_20_03_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21080229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21080230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21080231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21080232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21080233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21080234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21080235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21080236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21080237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21080238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21080239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21080240, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1650016, 'mtr_portfolio_id': 21080934, 'dashboard_result_id': 9244645, '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_P21080934_05-03-2025_20_11_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21080965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21080966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21080967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21080968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21080969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21080970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21080971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21080972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21080973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21080974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21080975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21080976, '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 = 21078591 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': 2639717, 'mtr_portfolio_id': 21078591, 'created_at': datetime.datetime(2025, 3, 5, 19, 32, 59), 'result': '0.05328941950161473', 'result_long': None, 'result_double': None}] Qualite : 0.05328941950161473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21078591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21078591_05-03-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21078591 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_P21078591_05-03-2025_19_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21078694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21078695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21078696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21078697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21078698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21078699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21078700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21078701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21078702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21078703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21078704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21078705, 'pht': 3726}}" where mtr_portfolio_id = 21078591 and dashboard_run_id = 1650016 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`=21078591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9244642, 0.05328941950161473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21078591_05-03-2025_19_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21078694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21078695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21078696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21078697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21078698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21078699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21078700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21078701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21078702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21078703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21078704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21078705, '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 = 21079365 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': 2639767, 'mtr_portfolio_id': 21079365, 'created_at': datetime.datetime(2025, 3, 5, 19, 48, 59), 'result': '0.08088274701983163', 'result_long': None, 'result_double': None}] Qualite : 0.08088274701983163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21079365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21079365_05-03-2025_19_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21079365 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_P21079365_05-03-2025_19_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21079394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21079395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21079396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21079397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21079398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21079399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21079400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21079401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21079402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21079403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21079404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21079405, 'pht': 3726}}" where mtr_portfolio_id = 21079365 and dashboard_run_id = 1650016 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`=21079365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9244643, 0.08088274701983163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21079365_05-03-2025_19_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21079394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21079395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21079396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21079397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21079398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21079399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21079400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21079401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21079402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21079403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21079404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21079405, '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 = 21080175 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': 2639822, 'mtr_portfolio_id': 21080175, 'created_at': datetime.datetime(2025, 3, 5, 20, 3), 'result': '0.060593821141357154', 'result_long': None, 'result_double': None}] Qualite : 0.060593821141357154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21080175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21080175_05-03-2025_20_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21080175 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_P21080175_05-03-2025_20_03_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21080229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21080230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21080231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21080232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21080233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21080234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21080235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21080236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21080237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21080238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21080239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21080240, 'pht': 3726}}" where mtr_portfolio_id = 21080175 and dashboard_run_id = 1650016 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`=21080175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9244644, 0.060593821141357154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21080175_05-03-2025_20_03_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21080229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21080230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21080231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21080232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21080233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21080234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21080235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21080236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21080237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21080238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21080239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21080240, '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 = 21080934 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': 2639881, 'mtr_portfolio_id': 21080934, 'created_at': datetime.datetime(2025, 3, 5, 20, 12, 58), 'result': '0.10155220238266213', 'result_long': None, 'result_double': None}] Qualite : 0.10155220238266213 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21080934 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21080934_05-03-2025_20_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21080934 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_P21080934_05-03-2025_20_12_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21080965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21080966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21080967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21080968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21080969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21080970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21080971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21080972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21080973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21080974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21080975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21080976, 'pht': 3726}}" where mtr_portfolio_id = 21080934 and dashboard_run_id = 1650016 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`=21080934 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9244645, 0.10155220238266213, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21080934_05-03-2025_20_12_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21080965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21080966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21080967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21080968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21080969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21080970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21080971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21080972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21080973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21080974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21080975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21080976, '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 (21078591,21079365,21080175,21080934) result : ((1341074297,), (1341074301,), (1341074304,), (1341074307,), (1341074311,), (1341074745,), (1341074749,), (1341074815,), (1341074917,), (1341075043,), (1341075135,), (1341075235,), (1341075332,), (1341075431,), (1341075435,), (1341075441,), (1341075481,), (1341075485,), (1341075492,), (1341075497,), (1341075500,), (1341075504,), (1341075523,), (1341075527,), (1341075533,), (1341075539,), (1341075543,), (1341075567,), (1341075571,), (1341075577,), (1341076229,), (1341076234,), (1341076298,), (1341076325,), (1341076330,), (1341076342,), (1341076430,), (1341076450,), (1341076462,), (1341076477,), (1341076494,), (1341076695,), (1341076757,), (1341076849,), (1341077055,), (1341077064,), (1341077109,), (1341077114,), (1341077119,), (1341077122,), (1341077147,), (1341077150,), (1341077154,), (1341077160,), (1341077164,), (1341077171,), (1341077212,), (1341077217,), (1341077224,), (1341077229,), (1341077408,), (1341077330,), (1341077358,), (1341077369,), (1341077386,), (1341077405,), (1341077436,), (1341077440,), (1341077445,), (1341077455,), (1341077881,), (1341077888,), (1341077892,), (1341077895,), (1341077899,), (1341078247,), (1341078258,), (1341078283,), (1341078301,), (1341078304,), (1341078325,), (1341078330,), (1341078337,), (1341078344,), (1341078358,), (1341078368,), (1341078403,), (1341078408,), (1341078414,), (1341078455,), (1341078467,), (1341078473,), (1341078561,), (1341078567,), (1341078572,), (1341078579,), (1341078583,), (1341078591,), (1341078818,), (1341078832,), (1341078841,), (1341078851,), (1341078862,), (1341078869,), (1341078893,), (1341078900,), (1341078907,), (1341078912,), (1341078940,), (1341078944,), (1341078950,), (1341079179,), (1341079189,), (1341079194,), (1341079199,), (1341079222,), (1341079547,), (1341079550,), (1341079579,), (1341079637,), (1341079663,), (1341079745,), (1341079755,), (1341079774,), (1341079919,), (1341079922,), (1341079929,), (1341079954,), (1341079960,), (1341079966,), (1341080099,), (1341080072,), (1341080081,), (1341080085,), (1341080091,), (1341080326,), (1341080351,), (1341080547,), (1341080588,), (1341080745,), (1341080898,), (1341080910,), (1341081357,), (1341081406,), (1341081414,), (1341081437,), (1341081505,), (1341081511,), (1341081669,), (1341081680,), (1341081693,), (1341081704,), (1341081742,), (1341081762,), (1341081783,), (1341082015,), (1341082058,), (1341082074,), (1341082079,), (1341082088,), (1341082104,), (1341082106,), (1341082112,), (1341082119,), (1341082132,), (1341082185,), (1341082192,), (1341082199,), (1341082251,), (1341082256,), (1341082262,), (1341082267,), (1341082270,), (1341082322,), (1341082329,), (1341082335,), (1341082340,), (1341082366,), (1341082369,), (1341082371,), (1341082376,), (1341082380,), (1341082386,), (1341082633,), (1341082651,), (1341082655,), (1341083012,), (1341083021,), (1341083028,), (1341083032,), (1341083036,), (1341083046,), (1341083049,), (1341083052,), (1341083057,), (1341083061,), (1341083082,), (1341083073,), (1341083077,), (1341083290,), (1341083303,), (1341083306,), (1341083522,), (1341083560,), (1341083645,), (1341083680,), (1341084246,), (1341084251,), (1341084257,), (1341084617,), (1341084623,), (1341084628,), (1341084679,), (1341084691,), (1341084695,), (1341084700,), (1341084710,), (1341084745,), (1341084749,), (1341084758,), (1341084760,), (1341084765,), (1341084775,), (1341084821,), (1341084826,), (1341084834,), (1341084901,), (1341085377,), (1341085382,), (1341085395,), (1341085432,), (1341085457,), (1341085495,), (1341085593,), (1341085599,), (1341085602,), (1341085615,), (1341085622,), (1341085673,), (1341085678,), (1341085683,), (1341085688,), (1341085692,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05032025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21080934]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593] map_info['map_portfolio_photo'] : {21080934: [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593, 1341085495, 1341085457, 1341085432, 1341085395, 1341085382, 1341085377, 1341084901, 1341084834, 1341084826, 1341084821, 1341084775, 1341084765, 1341084760, 1341084758, 1341084749, 1341084745, 1341084710, 1341084700, 1341084695, 1341084691, 1341084679, 1341084628, 1341084623, 1341084617, 1341084257, 1341084251, 1341084246, 1341083680, 1341083645, 1341083560, 1341083522, 1341083306, 1341083303, 1341083290, 1341083077, 1341083073]} final : True mtd_id 4302 list_pids : [1341085692, 1341085688, 1341085683, 1341085678, 1341085673, 1341085622, 1341085615, 1341085602, 1341085599, 1341085593] Looping around the photos to save general results len do output : 1 /21080934Didn'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, '2639881') ('4302', '21080934', '1341085692', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085688', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085683', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085678', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085673', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085622', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085615', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085602', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085599', None, None, None, None, None, '2639881') ('4302', None, None, None, None, None, None, None, '2639881') ('4302', '21080934', '1341085593', None, None, None, None, None, '2639881') 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, '21080934', 'None', None, None, None, None, '2639881'), ('4302', '21080934', '1341085692', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085688', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085683', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085678', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085673', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085622', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085615', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085602', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085599', None, None, None, None, None, '2639881'), ('4302', '21080934', '1341085593', None, None, None, None, None, '2639881')] time used for this insertion : 0.014100074768066406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3312978744506836 time spend to save output : 0.014354228973388672 total time spend for step 5 : 0.34565210342407227 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 (2639881) 2.06user 2.54system 0:07.18elapsed 64%CPU (0avgtext+0avgdata 159404maxresident)k 776inputs+9312outputs (59major+64235minor)pagefaults 0swaps