def generate_task(name, description, command, dependencies=[], artifacts={}, scopes=[], routes=[]):
    created = datetime.datetime.now()
    expires = taskcluster.fromNow('1 month')
    deadline = taskcluster.fromNow('1 day')
    return {'workerType': 'github-worker', 'taskGroupId': TASK_ID, 'expires': taskcluster.stringDate(expires), 'retries': 5, 'created': taskcluster.stringDate(created), 'tags': {}, 'priority': 'lowest', 'schedulerId': 'taskcluster-github', 'deadline': taskcluster.stringDate(deadline), 'dependencies': ([TASK_ID] + dependencies), 'routes': routes, 'scopes': scopes, 'requires': 'all-completed', 'payload': {'features': {'taskclusterProxy': True}, 'maxRunTime': 7200, 'image': 'mozillamobile/focus-android:1.4', 'command': ['/bin/bash', '--login', '-c', ('git fetch %s %s && git config advice.detachedHead false && git checkout %s && %s' % (REPO_URL, BRANCH, COMMIT, command))], 'artifacts': artifacts, 'deadline': taskcluster.stringDate(deadline)}, 'provisionerId': 'aws-provisioner-v1', 'metadata': {'name': name, 'description': description, 'owner': OWNER, 'source': SOURCE}}
def generate_task(name, description, command, dependencies=[], artifacts={}, scopes=[], routes=[]):
    created = datetime.datetime.now()
    expires = taskcluster.fromNow('1 month')
    deadline = taskcluster.fromNow('1 day')
    return {'workerType': 'github-worker', 'taskGroupId': TASK_ID, 'expires': taskcluster.stringDate(expires), 'retries': 5, 'created': taskcluster.stringDate(created), 'tags': {}, 'priority': 'lowest', 'schedulerId': 'taskcluster-github', 'deadline': taskcluster.stringDate(deadline), 'dependencies': ([TASK_ID] + dependencies), 'routes': routes, 'scopes': scopes, 'requires': 'all-completed', 'payload': {'features': {'taskclusterProxy': True}, 'maxRunTime': 7200, 'image': 'mozillamobile/focus-android:1.4', 'command': ['/bin/bash', '--login', '-c', ('git fetch %s %s && git config advice.detachedHead false && git checkout %s && %s' % (REPO_URL, BRANCH, COMMIT, command))], 'artifacts': artifacts, 'deadline': taskcluster.stringDate(deadline)}, 'provisionerId': 'aws-provisioner-v1', 'metadata': {'name': name, 'description': description, 'owner': OWNER, 'source': SOURCE}}