> This code is executed in the worker/task context, right?

Yes it is.