Is there a clean way to handle task result?

Gotcha. In Prefect 1.0, unfortunately, you would need to move this part into a separate task. It won’t work reliably otherwise:

@task
def get_path(folder_param):
    return os.path.join(folder_param)

Perhaps this can get you a little bit more excited to slowly migrate to Prefect 2.0 :smile: You can already do that! Check this post for more details:

https://discourse.prefect.io/t/should-i-start-with-prefect-2-0-orion-skipping-prefect-1-0/544

And this Discourse tag for various migration examples: Topics tagged migration-guide