Skip to content

GetSessionsStatisticsAggregation

Source: src/AWS/Deadline/GetSessionsStatisticsAggregation.ts

Runtime binding for deadline:GetSessionsStatisticsAggregation.

Fetches the status and results (cost in USD, runtime, per-group stats) of an aggregation started with StartSessionsStatisticsAggregation on the bound Farm. The farm’s farmId is injected from the binding. Provide the implementation with Effect.provide(AWS.Deadline.GetSessionsStatisticsAggregationHttp).

// init — bind the operation to the farm
const getAggregation =
yield* AWS.Deadline.GetSessionsStatisticsAggregation(farm);
// runtime
const result = yield* getAggregation({ aggregationId }).pipe(
Effect.repeat({
schedule: Schedule.spaced("2 seconds"),
until: (r) => r.status !== "IN_PROGRESS",
times: 30,
}),
);