koji api docs doesn't provide a way how to fetch spec file from koji. There is also no documentation how to fetch logs with task_id (it is documented for build_id).
The issue is that spec file and logs for task_id are obtained via koji cli, which is too slow compared to directly use of the koji API.
The task is to replace koji cli parts in code with koji client. In other words: look directly to koji API source code and find a way how to obtain spec files for both task_id and build_id + how to obtain logs for task_id
koji api docs doesn't provide a way how to fetch spec file from koji. There is also no documentation how to fetch logs with task_id (it is documented for build_id).
The issue is that spec file and logs for task_id are obtained via koji cli, which is too slow compared to directly use of the koji API.
The task is to replace koji cli parts in code with koji client. In other words: look directly to koji API source code and find a way how to obtain spec files for both task_id and build_id + how to obtain logs for task_id