-
Notifications
You must be signed in to change notification settings - Fork 39
Conversation
|
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.
hey @dominictarro - thanks so much for the contribution 🙏🏼 just a couple superficial comments, code is looking good to me!
I will try to get this QA'd as soon as possible
edit: its also curious we have those "empty JSON"-looking errors on windows 🧐
prefect_aws/lambda_function.py
Outdated
|
||
Examples: | ||
|
||
>>> from prefect_aws.lambda_function import LambdaFunction |
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.
nit, but I think we generally do examples like this instead of the >>>
syntax. is there specific reason you did that?
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.
No particular reason. Will clean it up.
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.
Thanks so much for the PR @dominictarro! For this block, I would recommend implementing the JobBlock
interface. Implementing that interface will make it easy for users to either fire-and-forget or wait for execution to finish.
So it seems related to needing Docker to execute the Lambda. One of two ways we can go about this
I see almost no reason to go as far as option 2 wants us to go, but maybe you can think of one that I'm missing. |
@dominictarro your first option
seems reasonable to me, doing some I'll also reiterate @desertaxle's point, that for consistency and to allow flexibility for the user, we should try to implement the |
Only issue is this is Lambda's 'Event' (asynchronous) endpoint (1, 2) doesn't return any job ID or result fetch URL. The If we're intent on |
The |
Co-authored-by: nate nowack <nate@prefect.io>
I'll change it up so that I think I'm a bit confused by the use of "fire-and-forget". The I tried these with invoke_with_response_stream as well, no dice. |
Ah, I didn't realize |
@desertaxle Ready for review whenever you have time. |
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.
Looks great! Just a few nits from me.
Co-authored-by: Alexander Streed <desertaxle@users.noreply.github.com>
Co-authored-by: Alexander Streed <desertaxle@users.noreply.github.com>
This is ready for review whenever you have the time. |
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.
this is looking good to me - thanks so much for the contribution / working through the feedback!
Closes #354
Implements a
LambdaFunction
block.Example
Screenshots
Checklist
pre-commit
checks.pre-commit install && pre-commit run --all
locally for formatting and linting.mkdocs serve
view documentation locally.