fix done not logging when using with_context in a worker
use context as stack
Merge pull request #2110 from grosser/grosser/logging

fix done not logging when using with_context in a worker