I've released 0.6.0 of https://github.com/ktdreyer/txkoji
This version includes a read-through cache to translate user IDs and tag IDs to names. Koji's messagebus plugin publishes many messages referring to user IDs and tag IDs, and it's helpful for long-running processes to cache the names of these values in order to avoid hitting the Koji hub for each ID-to-name translation.
This version also populates many more attributes on the Task class, like .arch, .tag, .package, etc. by parsing the task methods' unique parameter orders.
- Ken
Dne 4.8.2018 v 00:00 Ken Dreyer napsal(a):
I've released 0.6.0 of https://github.com/ktdreyer/txkoji
This version includes a read-through cache to translate user IDs and tag IDs to names. Koji's messagebus plugin publishes many messages
Do you know, that we are going to remove messagebus plugin in (probably) next release? Do you've some other deployments with this?
https://pagure.io/koji/issue/878
referring to user IDs and tag IDs, and it's helpful for long-running processes to cache the names of these values in order to avoid hitting the Koji hub for each ID-to-name translation.
:thumbsup:
This version also populates many more attributes on the Task class, like .arch, .tag, .package, etc. by parsing the task methods' unique parameter orders.
- Ken
koji-devel mailing list -- koji-devel@lists.fedorahosted.org To unsubscribe send an email to koji-devel-leave@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/koji-devel@lists.fedorahosted....
On Tue, Aug 7, 2018 at 1:20 AM, Tomáš Kopeček tkopecek@redhat.com wrote:
Dne 4.8.2018 v 00:00 Ken Dreyer napsal(a):
I've released 0.6.0 of https://github.com/ktdreyer/txkoji
This version includes a read-through cache to translate user IDs and tag IDs to names. Koji's messagebus plugin publishes many messages
Do you know, that we are going to remove messagebus plugin in (probably) next release? Do you've some other deployments with this?
Good point, the Koji Hub I'm using uses plugins/hub/protonmsg.py, not plugins/hub/messagebus.py. I think the protonmsg plugin has the issue I described, where it's publishing TaskStateChange messages with a simple owner ID and not the full information from getUser.
- Ken
koji-devel@lists.fedorahosted.org