-
Notifications
You must be signed in to change notification settings - Fork 0
Implementing new scheduler
Tagir Kuskarov edited this page Jun 8, 2021
·
1 revision
To implement new scheduler in builtin mode, you should
- Derive from
IScheduler
- Override
UpdateSchedule()
method - You have access to the cloud state. To get pointer from UUID, use
actor_register_->GetActor<ActorType>(uuid)
- As a output you should schedule events
Example: src/custom/place-to-first.h
.
It is recommended to locate your code in custom/cloud-schedulers
folder. Don't forget to add your file to custom/CMakeLists.txt
before rebuilding simulator.