You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Tag application is a post-success platform step; don't cap it by
454
+
// the build's wait deadline, or a build that succeeds on the last
455
+
// poll leaves no time to observe the tag and we always warn.
456
+
consttagDeadline=Date.now()+30_000;
449
457
lettagApplied=false;
450
458
lettagPollWarned=false;
451
459
while(Date.now()<tagDeadline){
@@ -472,6 +480,55 @@ Skipping push. Use --force to override.`,
472
480
}
473
481
}
474
482
483
+
conststatus=build.statusasstring;
484
+
interfaceOutcome{
485
+
exitCode?: CommandExitCodes;
486
+
report: ()=>void;
487
+
}
488
+
letoutcome: Outcome;
489
+
if(pollErrorAbort){
490
+
outcome={
491
+
exitCode: CommandExitCodes.BuildFailed,
492
+
report: ()=>
493
+
error({
494
+
message: `Gave up waiting for build after ${MAX_CONSECUTIVE_POLL_ERRORS} consecutive failures fetching build status; the build may still be running on the platform.`,
495
+
}),
496
+
};
497
+
}elseif(status===ACTOR_JOB_STATUSES.SUCCEEDED){
498
+
outcome={report: ()=>success({message: 'Actor was deployed to Apify cloud and built there.'})};
message: `Gave up waiting for build after ${MAX_CONSECUTIVE_POLL_ERRORS} consecutive failures fetching build status; the build may still be running on the platform.`,
0 commit comments