conditional on queue interface instead on worker instance
Merge pull request #81 from basz/fix/consistent-context-check

conditional on queue interface instead on worker instance