Skip to content
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

New agents guide and deployment config docs updates #4822

Merged
merged 26 commits into from
Feb 23, 2024

Conversation

neverett
Copy link
Contributor

@neverett neverett commented Feb 1, 2024

Why are the changes needed?

To prepare for Flyte agents GA.

What changes were proposed in this pull request?

Note: Links to new agents integrations docs are broken, since those docs are in a flytesnacks branch (see flyteorg/flytesnacks#1498).

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

flyteorg/flytesnacks#1498

Signed-off-by: nikki everett <[email protected]>
@neverett neverett added the documentation Improvements or additions to documentation label Feb 1, 2024
@neverett neverett self-assigned this Feb 1, 2024
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 1, 2024
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6a2ce3f) 58.97% compared to head (3e05037) 58.93%.
Report is 34 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4822      +/-   ##
==========================================
- Coverage   58.97%   58.93%   -0.04%     
==========================================
  Files         644      645       +1     
  Lines       55146    55380     +234     
==========================================
+ Hits        32521    32638     +117     
- Misses      20050    20159     +109     
- Partials     2575     2583       +8     
Flag Coverage Δ
unittests 58.93% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Feb 2, 2024
nikki everett and others added 2 commits February 2, 2024 14:39
Signed-off-by: nikki everett <[email protected]>
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Feb 5, 2024
pingsutw and others added 2 commits February 5, 2024 14:06
Signed-off-by: nikki everett <[email protected]>
@neverett
Copy link
Contributor Author

neverett commented Feb 5, 2024

Not sure why the DCO check is failing, since all commits appear to be signed off.

nikki everett added 3 commits February 9, 2024 16:01
Signed-off-by: nikki everett <[email protected]>
Signed-off-by: nikki everett <[email protected]>

If you need to connect to an external service in your workflow, we recommend using the corresponding agent rather than a web API plugin. Agents are designed to be scalable and can handle large workloads efficiently, and decrease load on FlytePropeller, since they run outside of it. You can also test agents locally without having to change the Flyte backend configuration, streamlining development.

For a list of agents you can use in your tasks, see the [Agent Setup](https://docs.flyte.org/en/latest/deployment/agents/index.html) documentation.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it would be better to link to the Integrations section of the docs, specifically the External Service Backend Plugins section, but that section contains plugins that don't have a corresponding agent (e.g. AWS Athena). Should I add a new "Agents" section to that Integrations page?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good


To create a new async agent, extend the `AgentBase` class in the `flytekit.backend` module and implement the `execute` methods. All calls must be idempotent.

- `execute`: TK
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flagging this for more detail from eng.

nikki everett added 2 commits February 14, 2024 15:59
Signed-off-by: nikki everett <[email protected]>
pingsutw and others added 11 commits February 16, 2024 10:25
* Add sync agent example

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

---------

Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: nikki everett <[email protected]>
Signed-off-by: nikki everett <[email protected]>
Signed-off-by: nikki everett <[email protected]>
Signed-off-by: nikki everett <[email protected]>
Signed-off-by: nikki everett <[email protected]>
Signed-off-by: nikki everett <[email protected]>
Signed-off-by: nikki everett <[email protected]>
Signed-off-by: nikki everett <[email protected]>
@neverett neverett changed the title Updates for agents docs Agents guide and deployment config docs updates Feb 20, 2024
@neverett neverett changed the title Agents guide and deployment config docs updates New agents guide and deployment config docs updates Feb 20, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 20, 2024
@neverett neverett mentioned this pull request Feb 21, 2024
2 tasks
@neverett neverett merged commit 5f92f31 into master Feb 23, 2024
48 of 49 checks passed
@neverett neverett deleted the docs/agents-updates branch February 23, 2024 17:32
yubofredwang pushed a commit to yubofredwang/flyte that referenced this pull request Mar 26, 2024
* small update to start PR

Signed-off-by: nikki everett <[email protected]>

* add airflow and snowflake agent pages and update existing agents docs

Signed-off-by: nikki everett <[email protected]>

* small updates

Signed-off-by: nikki everett <[email protected]>

* [Doc] Airflow agent deployment (flyteorg#4831)

Signed-off-by: Kevin Su <[email protected]>

* [Doc] Snowflake agent deployment (flyteorg#4832)

Signed-off-by: Kevin Su <[email protected]>

* copyedits

Signed-off-by: nikki everett <[email protected]>

* move agents guide to flyte

Signed-off-by: nikki everett <[email protected]>

* rename directory and add guide to toctree

Signed-off-by: nikki everett <[email protected]>

* stub out async vs sync agents content

Signed-off-by: nikki everett <[email protected]>

* link to list of agents

Signed-off-by: nikki everett <[email protected]>

* edits for sync vs async agents

Signed-off-by: nikki everett <[email protected]>

* add visible TOC table to index page

Signed-off-by: nikki everett <[email protected]>

* update for async vs sync tasks

Signed-off-by: nikki everett <[email protected]>

* Update async agent example (flyteorg#4906)

* Add sync agent example

Signed-off-by: Kevin Su <[email protected]>

* nit

Signed-off-by: Kevin Su <[email protected]>

---------

Signed-off-by: Kevin Su <[email protected]>

* formatting and copy updates

Signed-off-by: nikki everett <[email protected]>

* fix formatting in snowflake doc, small fixes in agents procedural docs

Signed-off-by: nikki everett <[email protected]>

* fix toctree

Signed-off-by: nikki everett <[email protected]>

* add link

Signed-off-by: nikki everett <[email protected]>

* fix links

Signed-off-by: nikki everett <[email protected]>

* update link

Signed-off-by: nikki everett <[email protected]>

* import blog content

Signed-off-by: nikki everett <[email protected]>

* rename agent creation doc, small content updates

Signed-off-by: nikki everett <[email protected]>

* fix article title

Signed-off-by: nikki everett <[email protected]>

* fix link

Signed-off-by: nikki everett <[email protected]>

* undo unnecessary formatting change in unrelated file

Signed-off-by: nikki everett <[email protected]>

---------

Signed-off-by: nikki everett <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Co-authored-by: Kevin Su <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants