WikiTransformationProject / wikitraccs-releases

Releases, issues and discussions for WikiTraccs from the Wiki Transformation Project
https://www.wikitransformationproject.com
8 stars 0 forks source link

[Feature] Close Console when finished #61

Closed PretoPlasma closed 10 months ago

PretoPlasma commented 1 year ago

Is there an existing issue for this?

Feature Proposal

When trying to automate the execution wikitraccs.console (using robot framework) the console does not close when migration is done (based on appsettings.json). This leads into a robot who is running infinetly. How can I detect that the migration is finished? Or is there an argument to pass that the console closes on end of migration?

Confluence Version

Confluence 7

heinrich-ulbricht commented 1 year ago

Hi @PretoPlasma, that is correct, the Console currently does not close automatically. Originally it was designed as a process that can take new migration orders at any time. But the current mode is more like: run, close, run again, close. Which is not feasible for automating things.

Just out of curiosity, what is your automation use case? I had one or two requests in the past that suggested that synchronizing Confluence to SharePoint regularly might be valuable. So far I did not understand what the goal of such a synchronization would be. Is it permission-related? Licensing optimization? Publishing? I'd be glad to gain some insights to better support those scenarios in the future.

PretoPlasma commented 1 year ago

Hi @heinrich-ulbricht, it is permission related and license optimization. We face a space-by-space migration as pre-procedures like permissions and space preparation need to be completed before the migration can be started. And to not block the robot license with wikitraccs running in idle mode all the time we would like to start wikitraccs only when a space is ready for migration, migrate this single space and then end this part of the migration, if this makes sense for you. So what about having an argument passed to console.exe e.c. --terminateOnEnd that the console let terminate the session after the migration work is done?! Do you think this is possible to be implemented asap?

heinrich-ulbricht commented 1 year ago

@PretoPlasma I see, thanks for the details. As a workaround you can look for one of the progress log files that WikiTraccs creates when going into idle mode, and kill the process.

This is only a workaround, but works immediately. I'll try to slip a better solution into one of the upcoming releases, but are hesitant to give an ETA.

PretoPlasma commented 1 year ago

Thanks @heinrich-ulbricht for your quick reply. I am going to test that and let you know.

heinrich-ulbricht commented 10 months ago

With release v1.7.4 the console will now auto-close after having migrated all scheduled pages.