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

Docs updated v0.7.0 #501

Merged
merged 1 commit into from
Sep 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _modules/abc.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>abc &mdash; Flyte 0.6.0 documentation</title>
<title>abc &mdash; Flyte 0.7.0 documentation</title>



Expand Down
380 changes: 160 additions & 220 deletions _modules/flytekit/clients/friendly.html

Large diffs are not rendered by default.

28 changes: 6 additions & 22 deletions _modules/flytekit/clients/helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>flytekit.clients.helpers &mdash; Flyte 0.6.0 documentation</title>
<title>flytekit.clients.helpers &mdash; Flyte 0.7.0 documentation</title>



Expand Down Expand Up @@ -160,17 +160,8 @@
<div itemprop="articleBody">

<h1>Source code for flytekit.clients.helpers</h1><div class="highlight"><pre>
<span></span>
<span class="kn">from</span> <span class="nn">flytekit.clis.auth</span> <span class="k">import</span> <span class="n">credentials</span> <span class="k">as</span> <span class="n">_credentials_access</span>



<div class="viewcode-block" id="iterate_node_executions"><a class="viewcode-back" href="../../../flytekit/flytekit.clients.html#flytekit.clients.helpers.iterate_node_executions">[docs]</a><span class="k">def</span> <span class="nf">iterate_node_executions</span><span class="p">(</span>
<span class="n">client</span><span class="p">,</span>
<span class="n">workflow_execution_identifier</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="n">task_execution_identifier</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="n">limit</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="n">filters</span><span class="o">=</span><span class="kc">None</span>
<div class="viewcode-block" id="iterate_node_executions"><a class="viewcode-back" href="../../../flytekit/flytekit.clients.html#flytekit.clients.helpers.iterate_node_executions">[docs]</a><span></span><span class="k">def</span> <span class="nf">iterate_node_executions</span><span class="p">(</span>
<span class="n">client</span><span class="p">,</span> <span class="n">workflow_execution_identifier</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">task_execution_identifier</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">limit</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">filters</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> This returns a generator for node executions.</span>
Expand All @@ -192,14 +183,11 @@ <h1>Source code for flytekit.clients.helpers</h1><div class="highlight"><pre>
<span class="n">workflow_execution_identifier</span><span class="o">=</span><span class="n">workflow_execution_identifier</span><span class="p">,</span>
<span class="n">limit</span><span class="o">=</span><span class="n">num_to_fetch</span><span class="p">,</span>
<span class="n">token</span><span class="o">=</span><span class="n">token</span><span class="p">,</span>
<span class="n">filters</span><span class="o">=</span><span class="n">filters</span>
<span class="n">filters</span><span class="o">=</span><span class="n">filters</span><span class="p">,</span>
<span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">node_execs</span><span class="p">,</span> <span class="n">next_token</span> <span class="o">=</span> <span class="n">client</span><span class="o">.</span><span class="n">list_node_executions_for_task_paginated</span><span class="p">(</span>
<span class="n">task_execution_identifier</span><span class="o">=</span><span class="n">task_execution_identifier</span><span class="p">,</span>
<span class="n">limit</span><span class="o">=</span><span class="n">num_to_fetch</span><span class="p">,</span>
<span class="n">token</span><span class="o">=</span><span class="n">token</span><span class="p">,</span>
<span class="n">filters</span><span class="o">=</span><span class="n">filters</span>
<span class="n">task_execution_identifier</span><span class="o">=</span><span class="n">task_execution_identifier</span><span class="p">,</span> <span class="n">limit</span><span class="o">=</span><span class="n">num_to_fetch</span><span class="p">,</span> <span class="n">token</span><span class="o">=</span><span class="n">token</span><span class="p">,</span> <span class="n">filters</span><span class="o">=</span><span class="n">filters</span><span class="p">,</span>
<span class="p">)</span>
<span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">node_execs</span><span class="p">:</span>
<span class="n">counter</span> <span class="o">+=</span> <span class="mi">1</span>
Expand Down Expand Up @@ -227,10 +215,7 @@ <h1>Source code for flytekit.clients.helpers</h1><div class="highlight"><pre>
<span class="n">counter</span> <span class="o">=</span> <span class="mi">0</span>
<span class="k">while</span> <span class="kc">True</span><span class="p">:</span>
<span class="n">task_execs</span><span class="p">,</span> <span class="n">next_token</span> <span class="o">=</span> <span class="n">client</span><span class="o">.</span><span class="n">list_task_executions_paginated</span><span class="p">(</span>
<span class="n">node_execution_identifier</span><span class="o">=</span><span class="n">node_execution_identifier</span><span class="p">,</span>
<span class="n">limit</span><span class="o">=</span><span class="n">num_to_fetch</span><span class="p">,</span>
<span class="n">token</span><span class="o">=</span><span class="n">token</span><span class="p">,</span>
<span class="n">filters</span><span class="o">=</span><span class="n">filters</span>
<span class="n">node_execution_identifier</span><span class="o">=</span><span class="n">node_execution_identifier</span><span class="p">,</span> <span class="n">limit</span><span class="o">=</span><span class="n">num_to_fetch</span><span class="p">,</span> <span class="n">token</span><span class="o">=</span><span class="n">token</span><span class="p">,</span> <span class="n">filters</span><span class="o">=</span><span class="n">filters</span><span class="p">,</span>
<span class="p">)</span>
<span class="k">for</span> <span class="n">t</span> <span class="ow">in</span> <span class="n">task_execs</span><span class="p">:</span>
<span class="n">counter</span> <span class="o">+=</span> <span class="mi">1</span>
Expand All @@ -240,7 +225,6 @@ <h1>Source code for flytekit.clients.helpers</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="ow">not</span> <span class="n">next_token</span><span class="p">:</span>
<span class="k">break</span>
<span class="n">token</span> <span class="o">=</span> <span class="n">next_token</span></div>

</pre></div>

</div>
Expand Down
Loading