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

Get AsyncRequestStatus... #60

Open
Bryan-Meier opened this issue Mar 25, 2024 · 3 comments
Open

Get AsyncRequestStatus... #60

Bryan-Meier opened this issue Mar 25, 2024 · 3 comments

Comments

@Bryan-Meier
Copy link

Hello,

Does anyone have any idea how to get the status a of a job that was executed via a createOnDemandMssqlBackup mutuation? I can't for the life of me figure out how this query or example isn't riddled throughout the documentation but I can't seem to find anything on it.

This goes to different issue which I will post separately... I never needed to figure this out when using the CDM Powershell module because the similar cmdlet in that module allowed us to supply a flag to wait for the job completion. This isn't included in the new RSC cmdlet, so it's on the user/customer to come up with their own wait logic.

@guirava
Copy link
Collaborator

guirava commented Apr 17, 2024

Thanks for reporting this - Engineering is still working on it, we will circle back.

@SahFari
Copy link

SahFari commented May 16, 2024

#61

My work-around

#$Status = Get-RscEventSeries -List | Where-Object {$.ObjectId -eq $RscMssqlDatabaseID} | Select-Object LastActivityStatus, ObjectType, ObjectId, ActivitySeriesId, Fid
do {
$Status = Get-RscEventSeries -List | Where-Object {$
.ObjectId -eq $RscMssqlDatabaseID} | Select-Object LastActivityStatus, ObjectType, ObjectId, ActivitySeriesId, Fid
$Status.LastActivityStatus

} until ( $Status.LastActivityStatus -eq 'SUCCESS' -or $Status.LastActivityStatus -eq "FAILURE")

@SahFari
Copy link

SahFari commented Aug 8, 2024

-WaitForCompletion works after upgrade to Rubrik cmdlet (9.0.1)

$Database_ids | ForEach-Object{

    $backup_job = New-RubrikSnapshot -id $_ -SLA $Sla -Confirm:$false

    Get-RubrikRequest -id $backup_job.id -Type mssql -WaitForCompletion #-Verbose

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants