{"action":"created","issue":{"url":"https://api.github.com/repos/contentful/contentful-scheduler.rb/issues/15","repository_url":"https://api.github.com/repos/contentful/contentful-scheduler.rb","labels_url":"https://api.github.com/repos/contentful/contentful-scheduler.rb/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/contentful/contentful-scheduler.rb/issues/15/comments","events_url":"https://api.github.com/repos/contentful/contentful-scheduler.rb/issues/15/events","html_url":"https://github.com/contentful/contentful-scheduler.rb/issues/15","id":345681831,"node_id":"MDU6SXNzdWUzNDU2ODE4MzE=","number":15,"title":"Unpublisher Randomly Fails.","user":{"login":"john007abhilash","id":20357122,"node_id":"MDQ6VXNlcjIwMzU3MTIy","avatar_url":"https://avatars1.githubusercontent.com/u/20357122?v=4","gravatar_id":"","url":"https://api.github.com/users/john007abhilash","html_url":"https://github.com/john007abhilash","followers_url":"https://api.github.com/users/john007abhilash/followers","following_url":"https://api.github.com/users/john007abhilash/following{/other_user}","gists_url":"https://api.github.com/users/john007abhilash/gists{/gist_id}","starred_url":"https://api.github.com/users/john007abhilash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john007abhilash/subscriptions","organizations_url":"https://api.github.com/users/john007abhilash/orgs","repos_url":"https://api.github.com/users/john007abhilash/repos","events_url":"https://api.github.com/users/john007abhilash/events{/privacy}","received_events_url":"https://api.github.com/users/john007abhilash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-30T09:34:14Z","updated_at":"2018-08-01T13:47:19Z","closed_at":null,"author_association":"NONE","body":"I was testing the unpublisher, it worked only 3 out of 10 times while i was testing it. I checked the redis DB the enteries go in the unpublish queue successfully all the times and they are removed out of the queue when the unpublish time has reached sucessfully all the the times but the pages does not get unpublished.\r\n\r\nAlso i always get this in my logs \r\n\"08:36:49 web.1              | W, [2018-07-30T08:36:49.265704#14]  WARN -- : Webhook {id: XXXXXXXXX, space_id: XXXXXX} couldn't be added to the unpublish queue\"\r\n\r\nWhat i figured out is why is this sucess variable of publish(https://github.com/contentful/contentful-scheduler.rb/blob/master/lib/contentful/scheduler/queue.rb#L18) is being used in unpublish condition https://github.com/contentful/contentful-scheduler.rb/blob/master/lib/contentful/scheduler/queue.rb#L23"},"comment":{"url":"https://api.github.com/repos/contentful/contentful-scheduler.rb/issues/comments/409580401","html_url":"https://github.com/contentful/contentful-scheduler.rb/issues/15#issuecomment-409580401","issue_url":"https://api.github.com/repos/contentful/contentful-scheduler.rb/issues/15","id":409580401,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTU4MDQwMQ==","user":{"login":"dlitvakb","id":1032706,"node_id":"MDQ6VXNlcjEwMzI3MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1032706?v=4","gravatar_id":"","url":"https://api.github.com/users/dlitvakb","html_url":"https://github.com/dlitvakb","followers_url":"https://api.github.com/users/dlitvakb/followers","following_url":"https://api.github.com/users/dlitvakb/following{/other_user}","gists_url":"https://api.github.com/users/dlitvakb/gists{/gist_id}","starred_url":"https://api.github.com/users/dlitvakb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlitvakb/subscriptions","organizations_url":"https://api.github.com/users/dlitvakb/orgs","repos_url":"https://api.github.com/users/dlitvakb/repos","events_url":"https://api.github.com/users/dlitvakb/events{/privacy}","received_events_url":"https://api.github.com/users/dlitvakb/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T13:47:19Z","updated_at":"2018-08-01T13:47:19Z","author_association":"MEMBER","body":"Heyy @john007abhilash,\r\n\r\nI didn't find the action not triggering, but indeed found that the success check there was unnecessary. This is now waiting for a peer review and will be merged and released as soon as that's done.\r\n\r\nCheers"}}
{"actor":{"display_login":"dlitvakb"}}