enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
202 stars 34 forks source link

Detach session from context for separated threads #6350

Closed GlennRicaud closed 6 years ago

GlennRicaud commented 6 years ago

Depending on https://github.com/enonic/xp/pull/6346

aro commented 6 years ago

I didn't find any other places. We only create threads explicitly, using ExecutorService, in a few places:

Only in the last case it uses the Context.

The other place is TaskManagerImpl. But the tasks set up the branch, repo and AuthInfo from the context of the task submitter. No need to fix it here.

GlennRicaud commented 6 years ago

Perfect