Skip to content

Correctly handle actor exit #200

@janbuchar

Description

@janbuchar

Originally reported in https://apify.slack.com/archives/CGZSN9DQC/p1715957828029029.

The user spawned an asyncio task in the actor. When the actor finished (reached the end of the Actor context manager block), it didn't clean up the task and the container was left there hanging.

We should either cancel all tasks when the actor is exitting or just trigger a sys.exit after a certain timeout.

Relevant code and JS counterpart

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