diff --git a/src/resource_clients/actor.ts b/src/resource_clients/actor.ts index 195c42b0..b24b1e4d 100644 --- a/src/resource_clients/actor.ts +++ b/src/resource_clients/actor.ts @@ -268,6 +268,7 @@ export interface Actor { name: string; username: string; description?: string; + /** @deprecated Use defaultRunOptions.restartOnError instead */ restartOnError?: boolean; isPublic: boolean; isAnonymouslyRunnable?: boolean; @@ -305,6 +306,7 @@ export interface ActorDefaultRunOptions { build: string; timeoutSecs: number; memoryMbytes: number; + restartOnError?: boolean; } export interface ActorExampleRunInput { @@ -330,12 +332,14 @@ export type ActorUpdateOptions = Partial< | 'seoTitle' | 'seoDescription' | 'title' - | 'restartOnError' | 'versions' | 'categories' | 'defaultRunOptions' | 'actorStandby' - > + > & { + /** @deprecated Use defaultRunOptions.restartOnError instead */ + restartOnError?: boolean; + } >; export interface ActorStandby { @@ -486,6 +490,7 @@ export interface ActorRunOptions { memoryMbytes: number; diskMbytes: number; maxTotalChargeUsd?: number; + restartOnError?: boolean; } export interface ActorBuildOptions { diff --git a/src/resource_clients/actor_collection.ts b/src/resource_clients/actor_collection.ts index f5f75d20..43ad2656 100644 --- a/src/resource_clients/actor_collection.ts +++ b/src/resource_clients/actor_collection.ts @@ -76,6 +76,7 @@ export interface ActorCollectionCreateOptions { isDeprecated?: boolean; isPublic?: boolean; name?: string; + /** @deprecated Use defaultRunOptions.restartOnError instead */ restartOnError?: boolean; seoTitle?: string; seoDescription?: string; diff --git a/src/resource_clients/run.ts b/src/resource_clients/run.ts index f165c8df..0e517a83 100644 --- a/src/resource_clients/run.ts +++ b/src/resource_clients/run.ts @@ -141,6 +141,7 @@ export class RunClient extends ResourceClient { timeout: ow.optional.number, maxItems: ow.optional.number, maxTotalChargeUsd: ow.optional.number, + restartOnError: ow.optional.boolean, }), ); @@ -291,6 +292,7 @@ export interface RunResurrectOptions { timeout?: number; maxItems?: number; maxTotalChargeUsd?: number; + restartOnError?: boolean; } export interface RunChargeOptions { diff --git a/src/resource_clients/schedule.ts b/src/resource_clients/schedule.ts index e3a6fc94..52015333 100644 --- a/src/resource_clients/schedule.ts +++ b/src/resource_clients/schedule.ts @@ -117,6 +117,7 @@ export interface ScheduledActorRunOptions { build: string; timeoutSecs: number; memoryMbytes: number; + restartOnError?: boolean; } export interface ScheduleActionRunActorTask extends BaseScheduleAction {