Finishes the file generation
generation_id |
The identifier of the generation process |
error |
If passed, the file generation has failed and must be terminated; pass null if the file generation succeeded |