I just wondered how to get the context in scheduled tasks. There is the static method
Context::createDefaultContext()
but it's marked as internal. I know that the context shouldn't be created but rather passed down to your service from higher services. But this doesn't seem possible in scheduled tasks.