Fix ExecOnboardTenant pending-state polling and restore Start-CIPPOrchestrator queue routing#36
Fix ExecOnboardTenant pending-state polling and restore Start-CIPPOrchestrator queue routing#36
Conversation
Co-authored-by: Zacgoose <107489668+Zacgoose@users.noreply.github.com>
Co-authored-by: Zacgoose <107489668+Zacgoose@users.noreply.github.com>
|
@copilot look into the actual task execution they are atialling and never getting pushed to the function app queue. |
Co-authored-by: Zacgoose <107489668+Zacgoose@users.noreply.github.com>
Fixed in 8ce008e. I traced the execution path and found |
|
@copilot dont edit the scheduler function it seems we need to make changes to how the onboarding is pushed to the queue? Perhaps you can see how it's done for the user offboarding endpoint? |
Co-authored-by: Zacgoose <107489668+Zacgoose@users.noreply.github.com>
Done in e261070. I reverted the scheduler/orchestrator wrapper edits and changed onboarding queueing in |
|
@copilot other than assigning directly to the queue are there other methods that will still let us peek into its progress like that endpoint currently expects |
Yes. The key is not where it’s queued, but having a durable progress record the endpoint can read. Two workable options:
So direct |
|
@copilot right stay with Start-CIPPOrchestrator then but just trace through it's setup and fucb yout why those invocations are not working |
|
@copilot right stay with Start-CIPPOrchestrator then but just trace through it's setup and fucb yout why those invocations are not working |
Co-authored-by: Zacgoose <107489668+Zacgoose@users.noreply.github.com>
Co-authored-by: Zacgoose <107489668+Zacgoose@users.noreply.github.com>
Fixed in bbce3f3. I switched onboarding back to
Fixed in bbce3f3. Onboarding now stays on |
[pull] dev from KelvinTegelaar:dev
ExecOnboardTenantcould appear stuck inpendingbecause status polling used a 10-minute freshness filter when readingTenantOnboarding. Once a job aged past that window, polling treated it as missing and recreated a newqueuedrecord, resetting visible progress.Follow-up feedback also required keeping onboarding launches on
Start-CIPPOrchestratorand tracing why those invocations were not working. The invocation issue was inStart-CIPPOrchestratorpath selection: direct orchestration starts were occurring for any-InputObjectcall, bypassing the intended store+queue flow.Root cause addressed: stale-read filter in status endpoint
Invoke-ExecOnboardTenant.RowKeyonly, so long-running jobs continue to surface their actual state (running/step progress) instead of being reset.Root cause addressed: orchestrator invocation routing
Start-CIPPOrchestrator -InputObject $InputObjectStart-CIPPOrchestratorso directStart-NewOrchestrationonly occurs when explicitly called with-CallerIsQueueTrigger.Behavioral impact
Retry=true): re-initializes onboarding and launches viaStart-CIPPOrchestrator.Start-CIPPOrchestrator(not direct endpoint queue assignment).Focused regression coverage
Invoke-ExecOnboardTenant:Start-CIPPOrchestrator:-InputObjectpath stores input and queuesStart-CIPPOrchestrator-CallerIsQueueTriggeris setOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.