https://prefect.io logo
a

Andor Tóth

02/28/2020, 2:20 PM
hi everyone
👋 6
i

itay livni

02/28/2020, 2:29 PM
@Andor Tóth
Copy code
from prefect import task
@task
def add_something(a):
   n = a + 1
   return n
n = add_something.run(a)
👍 1
a

Andor Tóth

02/28/2020, 2:31 PM
aha, I wasn't aware that each task has a run method
thanks!
I was looking for something I'm used to with Airflow 🙂
j

Jeremiah

02/28/2020, 2:51 PM
Don’t worry things are easier here :)