https://flyte.org logo
#ask-the-community
Title
# ask-the-community
c

Chirag Gosalia

12/06/2022, 2:05 PM
what is the unit of the timeout when specifying it as task meta data. for example
Copy code
@task(timeout=60)
def foo:
    return "foo"
safe to assume
60
is seconds?milliseconds? cc @Louis DiNatale
d

Dan Rammer (hamersaw)

12/06/2022, 3:07 PM
Hey @Chirag Gosalia, it looks like the timeout can be given as either a
datetime.timedelta
or an
int
. If it's an
int
then it is parsed into a
timedelta
as seconds as you suggested.