Skip to content

fix: enable standby mode on actors during push when usesStandbyMode is set#1016

Open
MQ37 wants to merge 2 commits intomasterfrom
claude/fix-apify-standby-mode-kvMHr
Open

fix: enable standby mode on actors during push when usesStandbyMode is set#1016
MQ37 wants to merge 2 commits intomasterfrom
claude/fix-apify-standby-mode-kvMHr

Conversation

@MQ37
Copy link

@MQ37 MQ37 commented Feb 10, 2026

Summary

This PR implements functionality to automatically enable standby mode on existing actors when the usesStandbyMode configuration is set to true in the actor.json file during a push operation.

Changes

  • Feature Implementation: Added logic in the push command to enable standby mode on existing actors if:

    • The actor is not newly created
    • usesStandbyMode is configured as true in actor.json
    • Standby mode is not already enabled on the actor
  • Test Update: Fixed the test case that was previously verifying the opposite behavior:

    • Updated test title and assertions to reflect the new expected behavior
    • Test now correctly verifies that standby mode is enabled after pushing an actor with usesStandbyMode: true

Implementation Details

The standby mode enablement is performed after version creation but before the build process, ensuring the actor configuration is updated before building. An info message is logged to notify users when standby mode is enabled.

https://claude.ai/code/session_011wdJEiBvW5AtjfL5CRNdsM

…rue in actor.json

Previously, `apify push` only set actorStandby when creating a brand new actor.
When pushing to an existing actor (the common case), usesStandbyMode from
actor.json was completely ignored. This adds an actor update call after
version update/create to enable standby mode on existing actors.

https://claude.ai/code/session_011wdJEiBvW5AtjfL5CRNdsM
@MQ37 MQ37 requested a review from vladfrangu as a code owner February 10, 2026 13:41
@github-actions github-actions bot added t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics. labels Feb 10, 2026
@MQ37 MQ37 changed the title Enable standby mode on existing actors when configured fix: enable standby mode on actors during push when usesStandbyMode is set Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants