Skip to content

Implementing new scheduler

Tagir Kuskarov edited this page Jun 8, 2021 · 1 revision

To implement new scheduler in builtin mode, you should

  1. Derive from IScheduler
  2. Override UpdateSchedule() method
  3. You have access to the cloud state. To get pointer from UUID, use actor_register_->GetActor<ActorType>(uuid)
  4. 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.

Clone this wiki locally