{"push_id":647308124,"size":1,"distinct_size":1,"ref":"refs/heads/mo-15-april-add-task-runner","head":"03a0dcacff6782582115ad84fcf402001dcef755","before":"ff260c962a1186d28ed5b652c5fa742e415150e9","commits":[{"sha":"03a0dcacff6782582115ad84fcf402001dcef755","author":{"email":"64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@xethorn.net","name":"Michael Ortali"},"message":"Introducing Task Lists\n\nActivity generators have been very useful: they allow to spawn n instances of\nan activity based on values in the context. The same can be done for tasks (\nwhich makes it very handy when you write the logic units of your activity.)\n\n**Goal**:\n\nThe goal of the generators is to provide an wasy way to write a list of tasks\nif transformations need to be done within the context. The generator should also\ncontribute to the calculation of the different timeout values.\n\nAn additional goal was to make sure it is backward compatible: the way flows\nhave been written until today will remain the same.\n\n**Example**:\n\n```python\n@task.list\ndef create_client(context):\n    yield create_user.fill(\n        username='context.username',\n        email='context.email')\n    if context.get('context.credit_card'):\n        yield create_credit_card.fill(\n            username='context.username',\n            credit_card='context.credit_card')\n    yield send_email.fill(email='context.email')\n```\n\n@rantonmattei","distinct":true,"url":"https://api.github.com/repos/xethorn/garcon/commits/03a0dcacff6782582115ad84fcf402001dcef755"}]}