I'm going to use this rhbz for an RFE to add cleanup for nova.task_log database records as a new nova-manage command, as described here: http://lists.openstack.org/pipermail/openstack-discuss/2019-September/009245.html This will be done as a Wishlist bug upstream.
Now tracked in https://issues.redhat.com/browse/OSPRH-68