Closed alansemenov closed 4 years ago
CLI is able to make async task polling, but that requires server command to be an async task with progress reporting.
Currently following commands are tasks and polled by CLI:
So the bottom line is, ContentResource.reprocess() needs to support polling first for the CLI to use it.
@GlennRicaud any objections against adding polling support to reprocess
?
Sounds good. But when doing these changes in the CLI, keep in mind that.
So the best would be a new endpoint here to not break compatibility (and point 2 above).
We do not need old CLI to work with newer XP's.
I did not think it was an internal API. I have seen customers use this API with their own script. Breaking it is not advisable.
Created 2 PRs in cli-enonic as well as xp repos with new reprocess method instead of the old one. Let me know if we need a new reprocess method along with the old one to keep backwards compatibility. https://github.com/enonic/cli-enonic/pull/180 https://github.com/enonic/xp/pull/7518
This one has to be updated as well, after updates to enonic/xp#7518
Updated PR
Tips from the customer: