@@ -70,11 +70,21 @@ export class ActorClient extends ResourceClient {
7070 webhooks : ow . optional . array . ofType ( ow . object ) ,
7171 maxItems : ow . optional . number . not . negative ,
7272 maxTotalChargeUsd : ow . optional . number . not . negative ,
73+ restartOnError : ow . optional . boolean ,
7374 forcePermissionLevel : ow . optional . string . oneOf ( Object . values ( ACTOR_PERMISSION_LEVEL ) ) ,
7475 } ) ,
7576 ) ;
7677
77- const { waitForFinish, timeout, memory, build, maxItems, maxTotalChargeUsd, forcePermissionLevel } = options ;
78+ const {
79+ waitForFinish,
80+ timeout,
81+ memory,
82+ build,
83+ maxItems,
84+ maxTotalChargeUsd,
85+ restartOnError,
86+ forcePermissionLevel,
87+ } = options ;
7888
7989 const params = {
8090 waitForFinish,
@@ -84,6 +94,7 @@ export class ActorClient extends ResourceClient {
8494 webhooks : stringifyWebhooksToBase64 ( options . webhooks ) ,
8595 maxItems,
8696 maxTotalChargeUsd,
97+ restartOnError,
8798 forcePermissionLevel,
8899 } ;
89100
@@ -128,6 +139,7 @@ export class ActorClient extends ResourceClient {
128139 webhooks : ow . optional . array . ofType ( ow . object ) ,
129140 maxItems : ow . optional . number . not . negative ,
130141 maxTotalChargeUsd : ow . optional . number . not . negative ,
142+ restartOnError : ow . optional . boolean ,
131143 forcePermissionLevel : ow . optional . string . oneOf ( Object . values ( ACTOR_PERMISSION_LEVEL ) ) ,
132144 } ) ,
133145 ) ;
@@ -268,6 +280,7 @@ export interface Actor {
268280 name : string ;
269281 username : string ;
270282 description ?: string ;
283+ /** @deprecated Use defaultRunOptions.restartOnError instead */
271284 restartOnError ?: boolean ;
272285 isPublic : boolean ;
273286 isAnonymouslyRunnable ?: boolean ;
@@ -305,6 +318,7 @@ export interface ActorDefaultRunOptions {
305318 build : string ;
306319 timeoutSecs : number ;
307320 memoryMbytes : number ;
321+ restartOnError ?: boolean ;
308322}
309323
310324export interface ActorExampleRunInput {
@@ -396,6 +410,11 @@ export interface ActorStartOptions {
396410 */
397411 maxItems ?: number ;
398412
413+ /**
414+ * Determines whether the run will be restarted if it fails.
415+ */
416+ restartOnError ?: boolean ;
417+
399418 // TODO(PPE): add maxTotalChargeUsd after finished
400419
401420 /**
@@ -486,6 +505,7 @@ export interface ActorRunOptions {
486505 memoryMbytes : number ;
487506 diskMbytes : number ;
488507 maxTotalChargeUsd ?: number ;
508+ restartOnError ?: boolean ;
489509}
490510
491511export interface ActorBuildOptions {
0 commit comments