$œ’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': '164', 'nonvoluntary_ctxt_switches': '165'} ('datou_batch_current', '3341285', '1106844', '0', '1106844', '865592', '98632', b'', 'marlene', '2678727') 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 (21570421) 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 (2678727 ) ) 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 (21570421) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1345969780, 'portfolio_id': 21570421}, {'photo_id': 1345969748, 'portfolio_id': 21570421}, {'photo_id': 1345969718, 'portfolio_id': 21570421}, {'photo_id': 1345969693, 'portfolio_id': 21570421}, {'photo_id': 1345969666, 'portfolio_id': 21570421}, {'photo_id': 1345969638, 'portfolio_id': 21570421}, {'photo_id': 1345969518, 'portfolio_id': 21570421}, {'photo_id': 1345969495, 'portfolio_id': 21570421}, {'photo_id': 1345969366, 'portfolio_id': 21570421}, {'photo_id': 1345969363, 'portfolio_id': 21570421}, {'photo_id': 1345969359, 'portfolio_id': 21570421}, {'photo_id': 1345969358, 'portfolio_id': 21570421}, {'photo_id': 1345969356, 'portfolio_id': 21570421}, {'photo_id': 1345969352, 'portfolio_id': 21570421}, {'photo_id': 1345969330, 'portfolio_id': 21570421}, {'photo_id': 1345969327, 'portfolio_id': 21570421}, {'photo_id': 1345969302, 'portfolio_id': 21570421}, {'photo_id': 1345969300, 'portfolio_id': 21570421}, {'photo_id': 1345969297, 'portfolio_id': 21570421}, {'photo_id': 1345969293, 'portfolio_id': 21570421}, {'photo_id': 1345969290, 'portfolio_id': 21570421}, {'photo_id': 1345969287, 'portfolio_id': 21570421}, {'photo_id': 1345969247, 'portfolio_id': 21570421}, {'photo_id': 1345969243, 'portfolio_id': 21570421}, {'photo_id': 1345969231, 'portfolio_id': 21570421}, {'photo_id': 1345969230, 'portfolio_id': 21570421}, {'photo_id': 1345969191, 'portfolio_id': 21570421}, {'photo_id': 1345969176, 'portfolio_id': 21570421}, {'photo_id': 1345969173, 'portfolio_id': 21570421}, {'photo_id': 1345969170, 'portfolio_id': 21570421}, {'photo_id': 1345969167, 'portfolio_id': 21570421}, {'photo_id': 1345969159, 'portfolio_id': 21570421}, {'photo_id': 1345969116, 'portfolio_id': 21570421}, {'photo_id': 1345969115, 'portfolio_id': 21570421}, {'photo_id': 1345969111, 'portfolio_id': 21570421}, {'photo_id': 1345969107, 'portfolio_id': 21570421}, {'photo_id': 1345969104, 'portfolio_id': 21570421}, {'photo_id': 1345969101, 'portfolio_id': 21570421}] map_portfolio_id_photo_id: {21570421: [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352, 1345969330, 1345969327, 1345969302, 1345969300, 1345969297, 1345969293, 1345969290, 1345969287, 1345969247, 1345969243, 1345969231, 1345969230, 1345969191, 1345969176, 1345969173, 1345969170, 1345969167, 1345969159, 1345969116, 1345969115, 1345969111, 1345969107, 1345969104, 1345969101]} ##### 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.014926910400390625 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 21 12:00:59 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 (21570421) 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 : 21570421 get user id for portfolio 21570421 get sub ptf for main ptf 21570421, type 3726 and hashtags ['autre_refus', 'plastique', 'flou', 'Carton_gris', 'metal', 'cartonnette', 'kraft', 'Teint_Dans_La_Masse', 'mal_croppe', 'environnement', 'papier', 'Carton_brun'] 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`=21570421 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','flou','Carton_gris','metal','cartonnette','kraft','Teint_Dans_La_Masse','mal_croppe','environnement','papier','Carton_brun')) 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`=21570421 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','flou','Carton_gris','metal','cartonnette','kraft','Teint_Dans_La_Masse','mal_croppe','environnement','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21570421, 'sub_port_id': 21570434, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116306, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21570421, 'sub_port_id': 21570435, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116307, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'plastique': {'main_port_id': 21570421, 'sub_port_id': 21570437, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116308, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'cartonnette': {'main_port_id': 21570421, 'sub_port_id': 21570438, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116309, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'flou': {'main_port_id': 21570421, 'sub_port_id': 21570439, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116310, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'autre_refus': {'main_port_id': 21570421, 'sub_port_id': 21570440, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116311, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'papier': {'main_port_id': 21570421, 'sub_port_id': 21570442, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116312, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'environnement': {'main_port_id': 21570421, 'sub_port_id': 21570443, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116313, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'metal': {'main_port_id': 21570421, 'sub_port_id': 21570444, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116314, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Carton_brun': {'main_port_id': 21570421, 'sub_port_id': 21570445, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116315, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'kraft': {'main_port_id': 21570421, 'sub_port_id': 21570446, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116316, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Carton_gris': {'main_port_id': 21570421, 'sub_port_id': 21570447, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116317, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21570434 , 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=21570421 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 (21570434) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570435 , 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=21570421 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 (21570435) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570437 , 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=21570421 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 (21570437) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570438 , 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=21570421 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 (21570438) result : ((1345970147,), (1345970208,), (1345970209,), (1345970210,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570439 , 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=21570421 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 (21570439) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570440 , 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=21570421 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 (21570440) result : ((1345970110,), (1345970122,), (1345970124,), (1345970125,), (1345970127,), (1345970167,), (1345970168,), (1345970169,), (1345970170,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570442 , 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=21570421 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 (21570442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570443 , 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=21570421 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 (21570443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570444 , 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=21570421 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 (21570444) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570445 , 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=21570421 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 (21570445) result : ((1345970158,), (1345970219,), (1345970222,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570446 , 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=21570421 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 (21570446) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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 21570447 , 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=21570421 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 (21570447) result : ((1345970139,), (1345970140,), (1345970141,), (1345970179,), (1345970180,), (1345970182,), (1345970183,), (1345970184,), (1345970185,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21570421) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,)) 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 (1345969300) 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`=21570421 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','flou','Carton_gris','metal','cartonnette','kraft','Teint_Dans_La_Masse','mal_croppe','environnement','papier','Carton_brun')) 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`=21570421 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','flou','Carton_gris','metal','cartonnette','kraft','Teint_Dans_La_Masse','mal_croppe','environnement','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21570421, 'sub_port_id': 21570448, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116318, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21570421, 'sub_port_id': 21570449, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116319, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'plastique': {'main_port_id': 21570421, 'sub_port_id': 21570450, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116320, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'cartonnette': {'main_port_id': 21570421, 'sub_port_id': 21570451, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116321, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'flou': {'main_port_id': 21570421, 'sub_port_id': 21570452, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116322, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'autre_refus': {'main_port_id': 21570421, 'sub_port_id': 21570453, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116323, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'papier': {'main_port_id': 21570421, 'sub_port_id': 21570454, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116324, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'environnement': {'main_port_id': 21570421, 'sub_port_id': 21570455, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116325, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'metal': {'main_port_id': 21570421, 'sub_port_id': 21570456, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116326, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Carton_brun': {'main_port_id': 21570421, 'sub_port_id': 21570457, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116327, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'kraft': {'main_port_id': 21570421, 'sub_port_id': 21570458, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116328, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}, 'Carton_gris': {'main_port_id': 21570421, 'sub_port_id': 21570459, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14116329, 'last_updated_at': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 11, 57, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 11, 57, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21570459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21570447 lien utilise dans velours : https://www.fotonower.com/velours/21570448,21570449,21570450,21570451,21570452,21570453,21570454,21570455,21570456,21570457,21570458,21570459?tags=mal_croppe,Teint_Dans_La_Masse,plastique,cartonnette,flou,autre_refus,papier,environnement,metal,Carton_brun,kraft,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21570421]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352] map_info['map_portfolio_photo'] : {21570421: [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352, 1345969330, 1345969327, 1345969302, 1345969300, 1345969297, 1345969293, 1345969290, 1345969287, 1345969247, 1345969243, 1345969231, 1345969230, 1345969191, 1345969176, 1345969173, 1345969170, 1345969167, 1345969159, 1345969116, 1345969115, 1345969111, 1345969107, 1345969104, 1345969101]} final : False mtd_id 4302 list_pids : [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352] Looping around the photos to save general results len do output : 1 /21570421. 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, '2678727') ('4302', '21570421', '1345969780', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969748', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969718', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969693', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969666', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969638', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969518', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969495', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969366', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969363', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969359', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969358', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969356', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969352', None, None, None, None, None, '2678727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21570421', "{'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447}", None, None, None, None, '2678727'), ('4302', '21570421', '1345969780', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969748', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969718', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969693', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969666', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969638', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969518', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969495', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969366', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969363', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969359', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969358', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969356', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969352', None, None, None, None, None, '2678727')] time used for this insertion : 0.020660400390625 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.0783984661102295 time spend to save output : 0.021000385284423828 total time spend for step 1 : 4.099398851394653 step2:final Fri Mar 21 12:01:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21570421) 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 21570421 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1345969780,1345969748,1345969718,1345969693,1345969666,1345969638,1345969518,1345969495,1345969366,1345969363,1345969359,1345969358,1345969356,1345969352,1345969330,1345969327,1345969302,1345969300,1345969297,1345969293,1345969290,1345969287,1345969247,1345969243,1345969231,1345969230,1345969191,1345969176,1345969173,1345969170,1345969167,1345969159,1345969116,1345969115,1345969111,1345969107,1345969104,1345969101); 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([21570421]) Inside saveOutput : final : False verbose : True original output for save of step final : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} new output for save of step final : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352] map_info['map_portfolio_photo'] : {21570421: [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352, 1345969330, 1345969327, 1345969302, 1345969300, 1345969297, 1345969293, 1345969290, 1345969287, 1345969247, 1345969243, 1345969231, 1345969230, 1345969191, 1345969176, 1345969173, 1345969170, 1345969167, 1345969159, 1345969116, 1345969115, 1345969111, 1345969107, 1345969104, 1345969101]} final : False mtd_id 4302 list_pids : [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352] Looping around the photos to save general results len do output : 14 /1345969780.Didn't retrieve data . /1345969748.Didn't retrieve data . /1345969718.Didn't retrieve data . /1345969693.Didn't retrieve data . /1345969666.Didn't retrieve data . /1345969638.Didn't retrieve data . /1345969518.Didn't retrieve data . /1345969495.Didn't retrieve data . /1345969366.Didn't retrieve data . /1345969363.Didn't retrieve data . /1345969359.Didn't retrieve data . /1345969358.Didn't retrieve data . /1345969356.Didn't retrieve data . /1345969352.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, '2678727') ('4302', '21570421', '1345969780', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969748', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969718', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969693', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969666', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969638', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969518', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969495', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969366', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969363', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969359', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969358', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969356', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969352', None, None, None, None, None, '2678727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21570421', '1345969780', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969748', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969718', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969693', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969666', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969638', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969518', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969495', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969366', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969363', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969359', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969358', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969356', '0.05010732411562196', None, None, None, None, '2678727'), ('4302', '21570421', '1345969352', '0.05010732411562196', None, None, None, None, '2678727')] time used for this insertion : 0.02942204475402832 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.19702935218811035 time spend to save output : 0.030130863189697266 total time spend for step 2 : 0.22716021537780762 step3:velours_tree Fri Mar 21 12:01:04 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 : {21570421: [{'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447}]} input_args_next_step : {21570421: ()} output_args : {21570421: [{'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447}]} args : 21570421 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 : ({'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21570421) 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([21570421]) 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.3673980236053467 time spend to save output : 5.936622619628906e-05 total time spend for step 3 : 0.36745738983154297 step4:send_mail_cod Fri Mar 21 12:01:04 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 : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} input_args_next_step : {1345969780: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969780 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969748 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969718 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969693 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969666 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969638 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969518 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969495 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969366 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969363 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969359 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969358 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969356 depend.output_id : 0 input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ()} output_args : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',)} args : 1345969352 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 : {21570421: [{'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447}]} input_args_next_step : {1345969780: ('0.05010732411562196',), 1345969748: ('0.05010732411562196',), 1345969718: ('0.05010732411562196',), 1345969693: ('0.05010732411562196',), 1345969666: ('0.05010732411562196',), 1345969638: ('0.05010732411562196',), 1345969518: ('0.05010732411562196',), 1345969495: ('0.05010732411562196',), 1345969366: ('0.05010732411562196',), 1345969363: ('0.05010732411562196',), 1345969359: ('0.05010732411562196',), 1345969358: ('0.05010732411562196',), 1345969356: ('0.05010732411562196',), 1345969352: ('0.05010732411562196',), 21570421: ()} output_args : {21570421: [{'mal_croppe': 21570434, 'Teint_Dans_La_Masse': 21570435, 'plastique': 21570437, 'cartonnette': 21570438, 'flou': 21570439, 'autre_refus': 21570440, 'papier': 21570442, 'environnement': 21570443, 'metal': 21570444, 'Carton_brun': 21570445, 'kraft': 21570446, 'Carton_gris': 21570447}]} args : 21570421 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.05010732411562196',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21570421) 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 (1345969780,1345969748,1345969718,1345969693,1345969666,1345969638,1345969518,1345969495,1345969366,1345969363,1345969359,1345969358,1345969356,1345969352) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1345969352 begin to download photo : 1345969359 begin to download photo : 1345969495 begin to download photo : 1345969666 begin to download photo : 1345969748 download finish for photo 1345969359 begin to download photo : 1345969363 download finish for photo 1345969748 begin to download photo : 1345969780 download finish for photo 1345969352 begin to download photo : 1345969356 download finish for photo 1345969666 begin to download photo : 1345969693 download finish for photo 1345969693 begin to download photo : 1345969718 download finish for photo 1345969495 begin to download photo : 1345969518 download finish for photo 1345969363 begin to download photo : 1345969366 download finish for photo 1345969780 download finish for photo 1345969356 begin to download photo : 1345969358 download finish for photo 1345969718 download finish for photo 1345969366 download finish for photo 1345969518 begin to download photo : 1345969638 download finish for photo 1345969358 download finish for photo 1345969638 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette215704341742554864/ imagette215704371742554864/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P21570421_21-03-2025_12_01_04.pdf 21570434 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=21570434 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215704341742554864 21570437 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=21570437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215704371742554864 21570438 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=21570438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345970147: '1742554731_724723_1345969176_edb411dc9e7954d11f0e86b5e3c1cd27_rle_crop_3721837578_0.png', 1345970208: '1742554774_725357_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837815_0.png', 1345970209: '1742554774_725357_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837825_0.png', 1345970210: '1742554774_725357_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837896_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5c8ead2b44f8bc12848e0e003aa3eeda_14825928.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/be374e5d259d5de41550e3a3408aa261_27612843.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/be374e5d259d5de41550e3a3408aa261_32263490.png change filename to text .imagette215704381742554864/ imagette215704381742554864/1742554774_725357_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837815_0.png.png imagette215704381742554864/1742554774_725357_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837825_0.png.png imagette215704381742554864/1742554774_725357_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837896_0.png.png imagette215704381742554864/1742554731_724723_1345969176_edb411dc9e7954d11f0e86b5e3c1cd27_rle_crop_3721837578_0.png.png imagette215704391742554865/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5c98778c52e738941efc166842bc76c0_916510.png imagette215704381742554864 21570439 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=21570439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215704391742554865 21570440 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=21570440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345970110: '1742554731_724723_1345969176_edb411dc9e7954d11f0e86b5e3c1cd27_rle_crop_3721837585_0.png', 1345970122: '1742554731_724723_1345969173_0112cf951f43e6beb3ed05673ab0d08c_rle_crop_3721837594_0.png', 1345970124: '1742554731_724723_1345969170_2b0106544ffca61a94079f176c270b1b_rle_crop_3721837609_0.png', 1345970125: '1742554731_724723_1345969167_0069c6992a9a3dd98db571b897ff6699_rle_crop_3721837620_0.png', 1345970127: '1742554731_724723_1345969159_5c8d9b6fe2ef2bc19d762da87edf66c4_rle_crop_3721837635_0.png', 1345970167: '1742554774_725357_1345969247_2900097dedb5c0d18a4f5c02a153b058_rle_crop_3721837654_0.png', 1345970168: '1742554774_725357_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721837807_0.png', 1345970169: '1742554774_725357_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837813_0.png', 1345970170: '1742554774_725357_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837823_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/ada81b41f4cc4c92c20e13df78a59ba0_74920934.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d158f9be9ca2264c0643c5801b067d21_33014196.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f6e1b05be933e0cf3b5050bd8834982a_92615619.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5f41e13c75b4b39fd86cbe1ed9dfc1f9_68158792.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/700a34e8c7173c9ac2be116aad0f1020_2361724.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8791fe2ced5fe900b9cf9bd37a14f830_14534084.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8791fe2ced5fe900b9cf9bd37a14f830_10985145.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/85abac48660407d479cd0658e2c03c0c_10836666.png change filename to text .imagette215704401742554865/ imagette215704401742554865/1742554731_724723_1345969176_edb411dc9e7954d11f0e86b5e3c1cd27_rle_crop_3721837585_0.png.png imagette215704401742554865/1742554774_725357_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837813_0.png.png imagette215704401742554865/1742554731_724723_1345969173_0112cf951f43e6beb3ed05673ab0d08c_rle_crop_3721837594_0.png.png imagette215704401742554865/1742554731_724723_1345969170_2b0106544ffca61a94079f176c270b1b_rle_crop_3721837609_0.png.png imagette215704401742554865/1742554731_724723_1345969159_5c8d9b6fe2ef2bc19d762da87edf66c4_rle_crop_3721837635_0.png.png imagette215704401742554865/1742554774_725357_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721837807_0.png.png imagette215704401742554865/1742554731_724723_1345969167_0069c6992a9a3dd98db571b897ff6699_rle_crop_3721837620_0.png.png imagette215704401742554865/1742554774_725357_1345969247_2900097dedb5c0d18a4f5c02a153b058_rle_crop_3721837654_0.png.png imagette215704401742554865/1742554774_725357_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837823_0.png.png imagette215704441742554865/ imagette215704461742554865/ imagette215704351742554865/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/85abac48660407d479cd0658e2c03c0c_87175782.png imagette215704401742554865 21570444 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=21570444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215704441742554865 21570446 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=21570446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215704461742554865 21570435 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=21570435 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215704351742554865 21570445 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=21570445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345970158: '1742554731_724723_1345969170_2b0106544ffca61a94079f176c270b1b_rle_crop_3721837605_0.png', 1345970219: '1742554774_725357_1345969247_2900097dedb5c0d18a4f5c02a153b058_rle_crop_3721837646_0.png', 1345970222: '1742554774_725357_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721837799_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a933c31db225d239058b6364ce5e6d2c_50378266.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/71e8d55d71bffb21533e42f38220db29_74534559.png change filename to text .imagette215704451742554865/ imagette215704451742554865/1742554774_725357_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721837799_0.png.png imagette215704451742554865/1742554731_724723_1345969170_2b0106544ffca61a94079f176c270b1b_rle_crop_3721837605_0.png.png imagette215704451742554865/1742554774_725357_1345969247_2900097dedb5c0d18a4f5c02a153b058_rle_crop_3721837646_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/71e8d55d71bffb21533e42f38220db29_17681335.png imagette215704451742554865 21570447 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=21570447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345970139: '1742554731_724723_1345969170_2b0106544ffca61a94079f176c270b1b_rle_crop_3721837602_0.png', 1345970140: '1742554731_724723_1345969167_0069c6992a9a3dd98db571b897ff6699_rle_crop_3721837622_0.png', 1345970141: '1742554731_724723_1345969159_5c8d9b6fe2ef2bc19d762da87edf66c4_rle_crop_3721837632_0.png', 1345970179: '1742554774_725357_1345969247_2900097dedb5c0d18a4f5c02a153b058_rle_crop_3721837652_0.png', 1345970180: '1742554774_725357_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721837805_0.png', 1345970182: '1742554774_725357_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837812_0.png', 1345970183: '1742554774_725357_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837822_0.png', 1345970184: '1742554774_725357_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837891_0.png', 1345970185: '1742554774_725357_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837895_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c24ffe3bfea318f17808edeb656560cd_56946038.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f1271d8a05db2f7fbe1bc5aff69e14a0_54119423.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f0f5490649d1be5d114eb322bb778bf1_17855317.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/17334c0a52227ba5fcf9892fae05a734_69442484.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/17334c0a52227ba5fcf9892fae05a734_17596526.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/bde7a47eadb6739e78f82a0e4ec6cf94_27010619.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/bde7a47eadb6739e78f82a0e4ec6cf94_86778781.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/cd68ee39ba4280ba9b05e57e84a24beb_62938620.png change filename to text .imagette215704471742554865/ imagette215704471742554865/1742554774_725357_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837891_0.png.png imagette215704471742554865/1742554731_724723_1345969170_2b0106544ffca61a94079f176c270b1b_rle_crop_3721837602_0.png.png imagette215704471742554865/1742554774_725357_1345969231_168dbcbc0eb475548bf287ccf38fad8d_rle_crop_3721837812_0.png.png imagette215704471742554865/1742554731_724723_1345969167_0069c6992a9a3dd98db571b897ff6699_rle_crop_3721837622_0.png.png imagette215704471742554865/1742554731_724723_1345969159_5c8d9b6fe2ef2bc19d762da87edf66c4_rle_crop_3721837632_0.png.png imagette215704471742554865/1742554774_725357_1345969247_2900097dedb5c0d18a4f5c02a153b058_rle_crop_3721837652_0.png.png imagette215704471742554865/1742554774_725357_1345969191_f39f9267d32cef6e6042f16cd8f33556_rle_crop_3721837895_0.png.png imagette215704471742554865/1742554774_725357_1345969243_2b6f8694e54b98a7820af6156b839743_rle_crop_3721837805_0.png.png imagette215704471742554865/1742554774_725357_1345969230_74fbd074801bae34c29ea7595a43bfa4_rle_crop_3721837822_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/da5876cd654005013ccb68dd0866a1f3_87554113.png imagette215704471742554865 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21570421 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21570448,21570449,21570450,21570451,21570452,21570453,21570454,21570455,21570456,21570457,21570458,21570459?tags=mal_croppe,Teint_Dans_La_Masse,plastique,cartonnette,flou,autre_refus,papier,environnement,metal,Carton_brun,kraft,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1345969780] : ('0.05010732411562196',) no score found for photo 1345969780 We are sending mail with results at report@fotonower.com args[1345969748] : ('0.05010732411562196',) no score found for photo 1345969748 We are sending mail with results at report@fotonower.com args[1345969718] : ('0.05010732411562196',) no score found for photo 1345969718 We are sending mail with results at report@fotonower.com args[1345969693] : ('0.05010732411562196',) no score found for photo 1345969693 We are sending mail with results at report@fotonower.com args[1345969666] : ('0.05010732411562196',) no score found for photo 1345969666 We are sending mail with results at report@fotonower.com args[1345969638] : ('0.05010732411562196',) no score found for photo 1345969638 We are sending mail with results at report@fotonower.com args[1345969518] : ('0.05010732411562196',) no score found for photo 1345969518 We are sending mail with results at report@fotonower.com args[1345969495] : ('0.05010732411562196',) no score found for photo 1345969495 We are sending mail with results at report@fotonower.com args[1345969366] : ('0.05010732411562196',) no score found for photo 1345969366 We are sending mail with results at report@fotonower.com args[1345969363] : ('0.05010732411562196',) no score found for photo 1345969363 We are sending mail with results at report@fotonower.com args[1345969359] : ('0.05010732411562196',) no score found for photo 1345969359 We are sending mail with results at report@fotonower.com args[1345969358] : ('0.05010732411562196',) no score found for photo 1345969358 We are sending mail with results at report@fotonower.com args[1345969356] : ('0.05010732411562196',) no score found for photo 1345969356 We are sending mail with results at report@fotonower.com args[1345969352] : ('0.05010732411562196',) no score found for photo 1345969352 We are sending mail with results at report@fotonower.com refus_total : 0.05010732411562196 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=21570421 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_P21570421_21-03-2025_12_01_04.pdf results_Auto_P21570421_21-03-2025_12_01_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570421_21-03-2025_12_01_04.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21570421','results_Auto_P21570421_21-03-2025_12_01_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570421_21-03-2025_12_01_04.pdf','pdf','','0.18','0.05010732411562196') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21570421]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352] map_info['map_portfolio_photo'] : {21570421: [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352, 1345969330, 1345969327, 1345969302, 1345969300, 1345969297, 1345969293, 1345969290, 1345969287, 1345969247, 1345969243, 1345969231, 1345969230, 1345969191, 1345969176, 1345969173, 1345969170, 1345969167, 1345969159, 1345969116, 1345969115, 1345969111, 1345969107, 1345969104, 1345969101]} final : False mtd_id 4302 list_pids : [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352] 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, '2678727') ('4302', '21570421', '1345969780', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969748', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969718', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969693', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969666', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969638', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969518', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969495', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969366', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969363', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969359', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969358', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969356', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969352', None, None, None, None, None, '2678727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21570421', '1345969780', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969748', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969718', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969693', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969666', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969638', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969518', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969495', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969366', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969363', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969359', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969358', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969356', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969352', None, None, None, None, None, '2678727')] time used for this insertion : 0.023651123046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.102214813232422 time spend to save output : 0.023883342742919922 total time spend for step 4 : 3.126098155975342 step5:split_time_score Fri Mar 21 12:01:07 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 : ['21570421'] 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 : [('21570421',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21570421) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1345969748: {'path': 'temp/1742554864_3341285_1345969748_233b3dbafca780f771f66ae6cb159a98.jpg', 'extension': 'jpg'}, 1345969780: {'path': 'temp/1742554864_3341285_1345969780_00d5aa1aae26b26dbe642eeeb9129621.jpg', 'extension': 'jpg'}, 1345969666: {'path': 'temp/1742554864_3341285_1345969666_12f300cc44756560b411039a89685e06.jpg', 'extension': 'jpg'}, 1345969693: {'path': 'temp/1742554864_3341285_1345969693_59301a37b8a99dfa45f6496d6ba9d5c2.jpg', 'extension': 'jpg'}, 1345969718: {'path': 'temp/1742554864_3341285_1345969718_bb8384489e00aaf1d0dfcdc57201657a.jpg', 'extension': 'jpg'}, 1345969359: {'path': 'temp/1742554864_3341285_1345969359_42bf3b1ffa611ccf7a1db70dd1fa4e9e.jpg', 'extension': 'jpg'}, 1345969363: {'path': 'temp/1742554864_3341285_1345969363_e908d7a5d6c01d60ecb89afbc10fe10b.jpg', 'extension': 'jpg'}, 1345969366: {'path': 'temp/1742554864_3341285_1345969366_cbb5eaeac7860719ff0c1323ebb84b9e.jpg', 'extension': 'jpg'}, 1345969352: {'path': 'temp/1742554864_3341285_1345969352_779725b783e8915b108dd86cab257506.jpg', 'extension': 'jpg'}, 1345969356: {'path': 'temp/1742554864_3341285_1345969356_07cdf06d7bb6f240dd19cc36c3c78c23.jpg', 'extension': 'jpg'}, 1345969358: {'path': 'temp/1742554864_3341285_1345969358_34b5b9db74845726b123731283ec1e69.jpg', 'extension': 'jpg'}, 1345969495: {'path': 'temp/1742554864_3341285_1345969495_1483960f9851abea4713983ac7657a46.jpg', 'extension': 'jpg'}, 1345969518: {'path': 'temp/1742554864_3341285_1345969518_bbde1fc5e6ad2df1e1f781171bcdd8e1.jpg', 'extension': 'jpg'}, 1345969638: {'path': 'temp/1742554864_3341285_1345969638_cbb42c986b83c0f0be5f8855356cf71c.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 = 21570421; (('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 = 21570421 group by h (('11', 38),) 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=21570421 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 (21570421) 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 (21570421) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21032025 21570421 Nombre de photos uploadées : 38 / 23040 (0%) 21032025 21570421 Nombre de photos taguées (types de déchets): 0 / 38 (0%) 21032025 21570421 Nombre de photos taguées (volume) : 0 / 38 (0%) [{'photo_id': 1345969780, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/00d5aa1aae26b26dbe642eeeb9129621.jpg', 'username': None, 'uploaded_at': 1742554727, 'text': 'image_21032025_11_37_44_10156.jpg'}, {'photo_id': 1345969748, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/233b3dbafca780f771f66ae6cb159a98.jpg', 'username': None, 'uploaded_at': 1742554727, 'text': 'image_21032025_11_37_54_10135.jpg'}, {'photo_id': 1345969718, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/bb8384489e00aaf1d0dfcdc57201657a.jpg', 'username': None, 'uploaded_at': 1742554727, 'text': 'image_21032025_11_38_04_10137.jpg'}, {'photo_id': 1345969693, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/59301a37b8a99dfa45f6496d6ba9d5c2.jpg', 'username': None, 'uploaded_at': 1742554727, 'text': 'image_21032025_11_38_14_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ?????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002242565155029297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21570421, '2025-03-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1678259,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.041799068450927734 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= 1678259 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1678259, 'dashboard_run_id': 1685715, 'mtr_portfolio_id': 21570421, 'dashboard_result_id': 9529019, '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_P21570421_21-03-2025_11_57_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570447, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1685715, 'mtr_portfolio_id': 21570422, 'dashboard_result_id': 9529020, '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_P21570422_21-03-2025_11_57_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570441, '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 = 21570421 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': 2678727, 'mtr_portfolio_id': 21570421, 'created_at': datetime.datetime(2025, 3, 21, 12, 1, 4), 'result': '0.05010732411562196', 'result_long': None, 'result_double': None}] Qualite : 0.05010732411562196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21570421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570421_21-03-2025_12_01_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21570421 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_P21570421_21-03-2025_12_01_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570447, 'pht': 3726}}" where mtr_portfolio_id = 21570421 and dashboard_run_id = 1685715 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`=21570421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9529019, 0.05010732411562196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570421_21-03-2025_12_01_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570447, '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 = 21570422 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': 2678728, 'mtr_portfolio_id': 21570422, 'created_at': datetime.datetime(2025, 3, 21, 11, 57, 37), 'result': '0.08476599709398094', 'result_long': None, 'result_double': None}] Qualite : 0.08476599709398094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21570422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570422_21-03-2025_11_57_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21570422 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_P21570422_21-03-2025_11_57_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570441, 'pht': 3726}}" where mtr_portfolio_id = 21570422 and dashboard_run_id = 1685715 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`=21570422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9529020, 0.08476599709398094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570422_21-03-2025_11_57_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570441, '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 (21570421,21570422) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345968918,), (1345968922,), (1345968928,), (1345968933,), (1345968935,), (1345968938,), (1345968943,), (1345968946,), (1345968949,), (1345968953,), (1345968961,), (1345968975,), (1345969003,), (1345969007,), (1345969010,), (1345969012,), (1345969015,), (1345969017,), (1345969027,), (1345969028,), (1345969031,), (1345969032,), (1345969036,), (1345969037,), (1345969039,), (1345969042,), (1345969043,), (1345969047,), (1345969049,), (1345969053,), (1345969068,), (1345969072,), (1345969077,), (1345969081,), (1345969086,), (1345969089,), (1345969127,), (1345969132,), (1345969137,), (1345969140,), (1345969144,), (1345969148,), (1345969201,), (1345969202,), (1345969204,), (1345969205,), (1345969211,), (1345969212,), (1345969218,), (1345969219,), (1345969256,), (1345969259,), (1345969263,), (1345969267,), (1345969271,), (1345969275,), (1345969312,), (1345969315,), (1345969319,), (1345969322,), (1345969375,), (1345969376,), (1345969379,), (1345969381,), (1345969390,), (1345969392,), (1345969402,), (1345969408,), (1345969412,), (1345969414,), (1345969416,), (1345969427,), (1345969443,), (1345969448,), (1345969460,), (1345969479,), (1345969890,), (1345969893,), (1345969908,), (1345969911,), (1345969918,), (1345969925,), (1345969939,), (1345969946,), (1345969961,), (1345969973,), (1345969986,), (1345969999,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21032025': {'nb_upload': 38, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21570421]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352] map_info['map_portfolio_photo'] : {21570421: [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352, 1345969330, 1345969327, 1345969302, 1345969300, 1345969297, 1345969293, 1345969290, 1345969287, 1345969247, 1345969243, 1345969231, 1345969230, 1345969191, 1345969176, 1345969173, 1345969170, 1345969167, 1345969159, 1345969116, 1345969115, 1345969111, 1345969107, 1345969104, 1345969101]} final : True mtd_id 4302 list_pids : [1345969780, 1345969748, 1345969718, 1345969693, 1345969666, 1345969638, 1345969518, 1345969495, 1345969366, 1345969363, 1345969359, 1345969358, 1345969356, 1345969352] Looping around the photos to save general results len do output : 1 /21570421Didn'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, '2678727') ('4302', '21570421', '1345969780', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969748', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969718', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969693', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969666', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969638', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969518', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969495', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969366', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969363', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969359', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969358', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969356', None, None, None, None, None, '2678727') ('4302', None, None, None, None, None, None, None, '2678727') ('4302', '21570421', '1345969352', None, None, None, None, None, '2678727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21570421', 'None', None, None, None, None, '2678727'), ('4302', '21570421', '1345969780', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969748', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969718', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969693', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969666', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969638', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969518', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969495', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969366', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969363', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969359', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969358', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969356', None, None, None, None, None, '2678727'), ('4302', '21570421', '1345969352', None, None, None, None, None, '2678727')] time used for this insertion : 0.1146090030670166 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2623112201690674 time spend to save output : 0.11482858657836914 total time spend for step 5 : 0.3771398067474365 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 (2678727) 2.56user 2.65system 0:12.82elapsed 40%CPU (0avgtext+0avgdata 161756maxresident)k 12104inputs+11696outputs (162major+77041minor)pagefaults 0swaps