To create a control instance (a scheduler that is used only to set up a task and run, for example, for websites), you can change the thread pool to ZeroSizeThreadPool, which allows you to run the scheduler without fear that it will actually perform any tasks.
You should always use the scheduler interface instead of directly accessing the database.
source
share