-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Fix Start-AzAutomationDscCompilationJob (Issue #8347) #8606
Conversation
Any update on this PR review? |
@lwajswaj the proper contacts from the Automation team have been contacted offline -- @avkaur @mgreenegit @nitinbps |
Just FYI, I opened a work item to track this for our team to make sure we get this reviewed. |
@vladimir-shcherbakov, 2 out of the 4 reviewers approved it. However, I don't have rights to merge it as I'm not an authorized user. |
src/Automation/Automation/Cmdlet/StartAzureAutomationDscCompilationJob.cs
Outdated
Show resolved
Hide resolved
@lwajswaj Is it possible for you to cover basic scenarios with tests? |
@lwajswaj Ping on the comments above. |
@lwajswaj No activity for 2 weeks. Closing. Feel free to reopen when you have time to address the comments above. |
Hello, I've been with some business trips + vacations and it was not possible to stay on top of this PR. How should I proceed? opening a new one or can this one be re-open? |
Description
This PR fixed issue #8347; the root cause of this issue is a synchronous call to 'create' method which, when job gets suspended, it never releases control as the job hasn't completed. Not sure if this is by-design on the SDK or it's a bug. Using 'CreateAsync' fixes it but you cannot do a regular Wait() or GetWaiter() as the same behavior is repeated. Base on the documentation Compiling a DSC Configuration with Windows PowerShell, the original idea of this cmdlet seemed to be just starting the job but not waiting till it completed as it was the previous behavior. This PR changes Start-AzAutomationDscCompilationJob to just submit the compilation job but not waiting for its completion to return control, after this change this is how the usage looks like:
This PR introduces a behavior change in the cmdlet for which a breaking change warning has been included.
Checklist
CONTRIBUTING.md
platyPS
module