0.4.0: Claim, Models/ DTOs, compile
LeaderboardSession.ClaimAsync sends onClaim. Generated DTOs live under Models/ with nullable wire fields. Remove incomplete duplicate type files.
This commit is contained in:
@@ -40,6 +40,11 @@ public sealed partial class ScenarioService
|
||||
return ex is OperationCanceledException || ex is RudderNetworkException;
|
||||
}
|
||||
|
||||
private static bool IsRankNotEligible(Exception ex)
|
||||
{
|
||||
return ex is RudderApiException api && api.Code == "rank_not_eligible";
|
||||
}
|
||||
|
||||
private IReadOnlyList<PlanRun> StartPlans(IEnumerable<ExecutionPlan>? plans)
|
||||
{
|
||||
var started = new List<PlanRun>();
|
||||
@@ -181,6 +186,8 @@ public sealed partial class ScenarioService
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (IsRankNotEligible(ex))
|
||||
throw;
|
||||
FailRun(run, nodeId, ex);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user