def METHOD_NAME(config, tasks):
    level = config.params["level"]
    for task in tasks:
        shipping_phase = task["attributes"]["shipping_phase"]
        task["worker"]["version"] = get_version(config.params)
        if task["worker"].get("action") == "push-to-maven":
            task["name"] = f"module-{task['name']}"
            task["description"] = task["description"].format(
                task["attributes"]["buildconfig"]["name"]
            )
            task["worker"]["bucket"] = (
                "maven-production" if level == "3" else "maven-staging"
            )
        else:
            task["description"] = task["description"].format(task["name"])
            task["worker"]["bucket"] = "release" if level == "3" else "dep"
            if shipping_phase == "ship":
                task["worker"]["action"] = "direct-push-to-bucket"
            else:
                task["worker"]["action"] = "push-to-candidates"
        yield task