-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wip] FileSensor Timeout (Remote Execution Only) #2745
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Future-Outlier <[email protected]>
Hi, @pingsutw Or should we make this feature more generic? Update: it's done already! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2745 +/- ##
==========================================
+ Coverage 90.87% 95.03% +4.16%
==========================================
Files 74 42 -32
Lines 3331 2095 -1236
==========================================
- Hits 3027 1991 -1036
+ Misses 304 104 -200 ☔ View full report in Codecov by Sentry. |
@@ -203,12 +203,13 @@ def __init__( | |||
task_type_version=0, | |||
security_ctx: Optional[SecurityContext] = None, | |||
docs: Optional[Documentation] = None, | |||
timeout: Optional[Union[datetime.timedelta, int]] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make more sense to expose metadata
to the PythonTask
and have BaseSensor
initialize the metadata w/ TaskMetadata(timeout=timeout)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it will make more sense.
Signed-off-by: Future-Outlier <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
# put timeout to metadata here | ||
# raise error if metadata and timeout are both set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not like how timeout
can be defined in two places. If we really want a easy way to set timeout
, I would do this logic FileSensor
and not complicate the Task
API.
Tracking issue
flyteorg/flyte#5035
Why are the changes needed?
timout is important for agent tasks.
What changes were proposed in this pull request?
How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link