{"action":"opened","issue":{"url":"https://api.github.com/repos/celery/celery/issues/2546","labels_url":"https://api.github.com/repos/celery/celery/issues/2546/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/2546/comments","events_url":"https://api.github.com/repos/celery/celery/issues/2546/events","html_url":"https://github.com/celery/celery/issues/2546","id":63190286,"number":2546,"title":"TypeError: run() got multiple values for keyword argument 'header'","user":{"login":"jonblack","id":175080,"avatar_url":"https://avatars.githubusercontent.com/u/175080?v=3","gravatar_id":"","url":"https://api.github.com/users/jonblack","html_url":"https://github.com/jonblack","followers_url":"https://api.github.com/users/jonblack/followers","following_url":"https://api.github.com/users/jonblack/following{/other_user}","gists_url":"https://api.github.com/users/jonblack/gists{/gist_id}","starred_url":"https://api.github.com/users/jonblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonblack/subscriptions","organizations_url":"https://api.github.com/users/jonblack/orgs","repos_url":"https://api.github.com/users/jonblack/repos","events_url":"https://api.github.com/users/jonblack/events{/privacy}","received_events_url":"https://api.github.com/users/jonblack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-20T08:46:03Z","updated_at":"2015-03-20T08:46:03Z","closed_at":null,"body":"I have a complex nested workflow that works fine until `CELERY_ALWAYS_EAGER` is set to `True` (which is required for testing). Then I get the following error:\r\n\r\n    Traceback (most recent call last):\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/behave/model.py\", line 1456, in run\r\n        match.run(runner.context)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/behave/model.py\", line 1903, in run\r\n        self.func(context, *args, **kwargs)\r\n      File \"tests/features/steps/report.py\", line 47, in step_create_report\r\n        r = context.app.post('api/create/', data=payload)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/werkzeug/test.py\", line 772, in post\r\n        return self.open(*args, **kw)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/flask/testing.py\", line 108, in open\r\n        follow_redirects=follow_redirects)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/werkzeug/test.py\", line 736, in open\r\n        response = self.run_wsgi_app(environ, buffered=buffered)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/werkzeug/test.py\", line 659, in run_wsgi_app\r\n        rv = run_wsgi_app(self.application, environ, buffered=buffered)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/werkzeug/test.py\", line 855, in run_wsgi_app\r\n        app_iter = app(environ, start_response)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/flask/app.py\", line 1836, in __call__\r\n        return self.wsgi_app(environ, start_response)\r\n      File \"/home/jon/projects/hope-flask/hope/middleware.py\", line 36, in __call__\r\n        return self.app(environ, start_response)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/flask/app.py\", line 1820, in wsgi_app\r\n        response = self.make_response(self.handle_exception(e))\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/flask/app.py\", line 1403, in handle_exception\r\n        reraise(exc_type, exc_value, tb)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/flask/app.py\", line 1817, in wsgi_app\r\n        response = self.full_dispatch_request()\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/flask/app.py\", line 1477, in full_dispatch_request\r\n        rv = self.handle_user_exception(e)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/flask/app.py\", line 1381, in handle_user_exception\r\n        reraise(exc_type, exc_value, tb)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/flask/app.py\", line 1475, in full_dispatch_request\r\n        rv = self.dispatch_request()\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/flask/app.py\", line 1461, in dispatch_request\r\n        return self.view_functions[rule.endpoint](**req.view_args)\r\n      File \"/home/jon/projects/hope-flask/hope/frontend/api/endpoints.py\", line 38, in create\r\n        form.mutation.data)\r\n      File \"/home/jon/projects/hope-flask/hope/domain/report/__init__.py\", line 36, in create_report\r\n        report_id = _create_report(sequence, position, mutant)\r\n      File \"/home/jon/projects/hope-flask/hope/domain/report/__init__.py\", line 147, in _create_report\r\n        result = workflow.delay()\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/celery/canvas.py\", line 175, in delay\r\n        return self.apply_async(partial_args, partial_kwargs)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/celery/canvas.py\", line 504, in apply_async\r\n        add_to_parent=add_to_parent)\r\n      File \"/home/jon/projects/hope-flask/hope/factory.py\", line 169, in __call__\r\n        return TaskBase.__call__(self, *args, **kwargs)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/celery/app/task.py\", line 422, in __call__\r\n        return self.run(*args, **kwargs)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/celery/app/builtins.py\", line 161, in run\r\n        [stask.apply(group_id=group_id) for stask in taskit],\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/celery/canvas.py\", line 181, in apply\r\n        return self.type.apply(args, kwargs, **options)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/celery/app/builtins.py\", line 371, in apply\r\n        args=(res.get(propagate=propagate).get(), ))\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/celery/canvas.py\", line 522, in apply\r\n        return Signature.apply(self, *args, **kwargs)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/celery/canvas.py\", line 181, in apply\r\n        return self.type.apply(args, kwargs, **options)\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/celery/app/builtins.py\", line 202, in apply\r\n        **options).get()\r\n      File \"/home/jon/.virtualenvs/hope-flask/local/lib/python2.7/site-packages/celery/result.py\", line 870, in get\r\n        raise self.result\r\n    TypeError: run() got multiple values for keyword argument 'header'\r\n\r\nThe workflow itself looks like this:\r\n\r\n```python\r\nworkflow = group(\r\n    chord(\r\n        tasks.blast_pdb.s(report_id, sequence, position),\r\n        group(\r\n            chord(\r\n                tasks.get_structure_features.s(report_id, sequence,\r\n                                               position),\r\n                group(\r\n                    tasks.get_hssp_features.s(report_id),\r\n                    tasks.create_stills.s(report_id, position, mutation),\r\n                    tasks.create_movies.s(report_id, position, mutation)\r\n                )\r\n            ),\r\n            tasks.get_pisa_features.s(report_id)\r\n        )\r\n    ),\r\n    chord(\r\n        tasks.blast_swissprot_uniprot.s(report_id, sequence, position),\r\n        group(\r\n            tasks.get_esp_features.s(report_id),\r\n            tasks.get_uniprot_features.s(report_id),\r\n            tasks.get_reprof_features.s(report_id)\r\n        )\r\n    ),\r\n    tasks.get_interpro_features.s(report_id, sequence)\r\n)\r\n```\r\n\r\nI'm using celery 3.1.17 and using the behave test framework."}}