Skip to content

Field Actor_is_any_instance_initialized is not reset correctly after exiting Actor context #674

@vdusek

Description

@vdusek

When entering an Actor context, exiting it, and then entering it again, the Actor._is_any_instance_initialized flag is not reset. As a result, a warning is logged even though the context should be cleanly re-initialized.

[apify] WARN  Repeated Actor initialization detected - this is non-standard usage, proceed with care.

I noticed this when adding support for "Run on Apify" for SDK docs to example-code-runner-py (PR).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions