Add static methods to get task ID and tenant class