{"action":"created","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/4666","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/4666/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/4666/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/4666/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/4666","id":68220863,"number":4666,"title":"Execute ProcessingEngine tasks for background tasks too","user":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OrchardCMS/Orchard/labels/task","name":"task","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/29","html_url":"https://github.com/OrchardCMS/Orchard/milestones/dev","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/29/labels","id":1138648,"number":29,"title":"dev","description":"Issues assigned to this milestone have been approved to be developed in the next major version release of Orchard.","creator":{"login":"sebastienros","id":1165805,"avatar_url":"https://avatars.githubusercontent.com/u/1165805?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienros","html_url":"https://github.com/sebastienros","followers_url":"https://api.github.com/users/sebastienros/followers","following_url":"https://api.github.com/users/sebastienros/following{/other_user}","gists_url":"https://api.github.com/users/sebastienros/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienros/subscriptions","organizations_url":"https://api.github.com/users/sebastienros/orgs","repos_url":"https://api.github.com/users/sebastienros/repos","events_url":"https://api.github.com/users/sebastienros/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienros/received_events","type":"User","site_admin":false},"open_issues":130,"closed_issues":8,"state":"open","created_at":"2015-05-28T19:26:41Z","updated_at":"2015-10-30T04:43:24Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2014-07-29T10:48:37Z","updated_at":"2015-10-31T21:17:20Z","closed_at":null,"body":"@Piedone created:\r\nhttps://orchard.codeplex.com/workitem/20837\r\n\r\nBecause otherwise you can't e.g. run recipes from bg tasks.\n"},"comment":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/comments/152773882","html_url":"https://github.com/OrchardCMS/Orchard/issues/4666#issuecomment-152773882","issue_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/4666","id":152773882,"user":{"login":"Piedone","id":1976647,"avatar_url":"https://avatars.githubusercontent.com/u/1976647?v=3","gravatar_id":"","url":"https://api.github.com/users/Piedone","html_url":"https://github.com/Piedone","followers_url":"https://api.github.com/users/Piedone/followers","following_url":"https://api.github.com/users/Piedone/following{/other_user}","gists_url":"https://api.github.com/users/Piedone/gists{/gist_id}","starred_url":"https://api.github.com/users/Piedone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piedone/subscriptions","organizations_url":"https://api.github.com/users/Piedone/orgs","repos_url":"https://api.github.com/users/Piedone/repos","events_url":"https://api.github.com/users/Piedone/events{/privacy}","received_events_url":"https://api.github.com/users/Piedone/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T21:17:20Z","updated_at":"2015-10-31T21:17:20Z","body":"Thanks for your input @jtkech . Yes you're most possibly right about why the HttpContext is null in this case.\r\n\r\nI'm not sure why CallContext looses its state; I guessed it was because the Parallel.ForEach() when activating shells but it indeed might be that there is some async code too (however in the affected code base I don't know about any that is executed during shell start).\r\n\r\nAnd yes, maybe LogicalData can help here too, if you have time please try!"}}