Skip to content

Commit

Permalink
Docs updated v0.7.0 (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumare3 authored Sep 4, 2020
1 parent 1d1e643 commit 626fc78
Show file tree
Hide file tree
Showing 297 changed files with 7,130 additions and 4,150 deletions.
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

0 comments on commit 626fc78

Please sign in to comment.