{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-pipelines/issues/55","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-pipelines/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-pipelines/issues/55/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-pipelines/issues/55/events","html_url":"https://github.com/GoogleCloudPlatform/appengine-pipelines/issues/55","id":101698642,"number":55,"title":"TaskQueue behavior for duplicate tasks in a list during Queue.add()","user":{"login":"soundofjw","id":739668,"avatar_url":"https://avatars.githubusercontent.com/u/739668?v=3","gravatar_id":"","url":"https://api.github.com/users/soundofjw","html_url":"https://github.com/soundofjw","followers_url":"https://api.github.com/users/soundofjw/followers","following_url":"https://api.github.com/users/soundofjw/following{/other_user}","gists_url":"https://api.github.com/users/soundofjw/gists{/gist_id}","starred_url":"https://api.github.com/users/soundofjw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soundofjw/subscriptions","organizations_url":"https://api.github.com/users/soundofjw/orgs","repos_url":"https://api.github.com/users/soundofjw/repos","events_url":"https://api.github.com/users/soundofjw/events{/privacy}","received_events_url":"https://api.github.com/users/soundofjw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-pipelines/labels/Python","name":"Python","color":"fbca04"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-pipelines/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-18T16:47:35Z","updated_at":"2015-10-05T20:12:43Z","closed_at":"2015-10-02T18:50:54Z","body":"I have some questions about the behavior of `taskqueue.Queue().add(task_list)` when 1 of the tasks is duplicate, but the others are not.\r\n\r\nI am not aware of any documentation around the taskqueue API that explains this behavior - as such it seems undefined.\r\n\r\nMy concern is that adding a list of multiple tasks, where 1 may already have been tombstoned/created, may cause the other legitimate tasks to fail.\r\n\r\nThis affects the pipeline library in the following codeblock:\r\n\r\n```python\r\ntry:\r\n  taskqueue.Queue(self.queue_name).add(task_list)\r\nexcept (taskqueue.TombstonedTaskError, taskqueue.TaskAlreadyExistsError):\r\n  pass\r\n```\r\n> https://github.com/GoogleCloudPlatform/appengine-pipelines/blob/bd9fa1e7000dc6af6fe704137cc53fa6d8cde427/python/src/pipeline/pipeline.py#L1659-L1663\r\n\r\nAny clues? This may be a good question for @tkaitchuck.\r\nThis was brought up in issue #54."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-pipelines/issues/comments/145653944","html_url":"https://github.com/GoogleCloudPlatform/appengine-pipelines/issues/55#issuecomment-145653944","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-pipelines/issues/55","id":145653944,"user":{"login":"tkaitchuck","id":4756752,"avatar_url":"https://avatars.githubusercontent.com/u/4756752?v=3","gravatar_id":"","url":"https://api.github.com/users/tkaitchuck","html_url":"https://github.com/tkaitchuck","followers_url":"https://api.github.com/users/tkaitchuck/followers","following_url":"https://api.github.com/users/tkaitchuck/following{/other_user}","gists_url":"https://api.github.com/users/tkaitchuck/gists{/gist_id}","starred_url":"https://api.github.com/users/tkaitchuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkaitchuck/subscriptions","organizations_url":"https://api.github.com/users/tkaitchuck/orgs","repos_url":"https://api.github.com/users/tkaitchuck/repos","events_url":"https://api.github.com/users/tkaitchuck/events{/privacy}","received_events_url":"https://api.github.com/users/tkaitchuck/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T20:12:43Z","updated_at":"2015-10-05T20:12:43Z","body":"I know that is the case for Java's task queue that all 10 will be attempted and only if there is no more serious error will that be raised. So I assume it is for the python client as well."}}