Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cmdlet Wait-IshPublicationOutput #72

Open
ddemeyer opened this issue Nov 29, 2019 · 0 comments
Open

Add cmdlet Wait-IshPublicationOutput #72

ddemeyer opened this issue Nov 29, 2019 · 0 comments
Assignees

Comments

@ddemeyer
Copy link
Contributor

ddemeyer commented Nov 29, 2019

Quick drop from my personal notes to share an idea on community.sdl.com... Main idea is that API-wise your only option to know if publishing is done, is by polling for it. If you are on the server a PublishPostPlugin could trigger the actual moment that publishing is done but that is a different story.

Ideas here are...

  • Inspired by the demo a cmdlet that understands FPUBSTATUS and the coming isdeployed field
  • So immediately continues on most statusses, prints something upon status change
  • Parameters similar to Get-IshPublicationOutput, and -Sleep defaults 60s, -Timeout defaults 3600s as maximum wait to then error out
  • Taking -IshObject[] should allow to watch multiple and forward over the pipeline for file download for example using write-progress to indicate remaining polls or remaining timeout or both
  • Taking a -Status[] defaulting to the classic finish statusses, but this would allow to know when a pending publish becomes a picked up publish. Existing Wait-cmdlet inspiration https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/wait-event?view=powershell-6
  • Write-Progress could be shown progressing every pipeline object passed… Help text could refresh counting down from -Timeout
  • Predictable sleep or dynamic based on baseline count + 1000 div 1000 x Sleep of the smallest remaining IshObject to wait for
  • Can this function be written in pure-PowerShell as script, or for simplicity still do it in C#?
  • Double-check if a more optimal implementation for 13SP2/13.0.2 and up over Get-IshBackgroundTask logic/API is possible

References

@ddemeyer ddemeyer added this to the v0.10 milestone Nov 29, 2019
@ddemeyer ddemeyer added the could label Nov 29, 2019
@ddemeyer ddemeyer modified the milestones: v0.10, v0.11 Dec 4, 2019
@ddemeyer ddemeyer modified the milestones: v0.11, v0.12 Mar 31, 2020
@ddemeyer ddemeyer added should and removed could labels Apr 10, 2020
@OlegTokar OlegTokar self-assigned this Jul 9, 2020
@ddemeyer ddemeyer modified the milestones: v0.12, v0.13 Nov 16, 2020
@ddemeyer ddemeyer removed this from the v0.13 milestone Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants