AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Modeling the Life Cycle of an Actor Using a State Machine
The basic definition of an actor has a state machine with a life cycle in it, just a batteries included. So you can model the entire life cycle of the worker using the state machine. Now on top of that, we add two important concepts, the concepts of actor tasks and resources. Actor tasks are tasks that extend the actor's state machine. You can only run one task at a time. In addition to that, i've managed to create an api, but manager's resources, which are contex managers,. It will be apomatically cleaned when the actal goes down.