Generate PCG through Python script

When I click ‘generate’ through the editor of the PCG blueprint, it runs, ‘generating’ is set to true, and the actors stream into the level.

When I try to do it through the api, I call pcg_component.generate(True) on the same PCG actor, but it does not work. It creates PCGWorldActors instantly, but nothing happens.

Am I doing this correctly? Do I need to tell the editor to refresh somehow?