celery / jumpstarter

MIT License
7 stars 3 forks source link

Actor Inheritance #8

Closed thedrow closed 3 years ago

thedrow commented 3 years ago

The usual class inheritance mechanism is not sufficient for us. Each actor has a state machine (see #3). The actor's dependencies (see #5), resources (see #6) & tasks (see #7) are controlled by the state machine callbacks. Therefore, each child actor must copy the state machine of the parent actor before applying the decorators which register callbacks on the child actor's state machine.

In that way, the child actor inherits the dependencies, resources and tasks of the parent actor.

Currently, actors support only single inheritance.