<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>master.runmanager.run_manager &#8212; tensormsa 1.0 documentation</title>
    
    <link rel="stylesheet" href="../../../_static/alabaster.css" type="text/css" />
    <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../../',
        VERSION:     '1.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../../_static/doctools.js"></script>
    <link rel="top" title="tensormsa 1.0 documentation" href="../../../index.html" />
    <link rel="up" title="Module code" href="../../index.html" />
   
  <link rel="stylesheet" href="../../../_static/custom.css" type="text/css" />
  
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

  </head>
  <body role="document">
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <h1>Source code for master.runmanager.run_manager</h1><div class="highlight"><pre>
<span></span><span class="kn">from</span> <span class="nn">cluster.service</span> <span class="k">import</span> <span class="n">WorkFlowTrainTask</span>

<div class="viewcode-block" id="RunManager"><a class="viewcode-back" href="../../../master.runmanager.html#master.runmanager.run_manager.RunManager">[docs]</a><span class="k">class</span> <span class="nc">RunManager</span> <span class="p">:</span>
    <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">    1. definition</span>
<span class="sd">        -manage job list</span>
<span class="sd">        -manage cluster tarin server status</span>
<span class="sd">        -manage cluster job and result</span>

<span class="sd">    2. table</span>
<span class="sd">        CONF_SERV_CLUSTER_INFO</span>
<span class="sd">        COMMON_JOB_LIST_INFO</span>
<span class="sd">        NN_VER_BARCHLIST_INFO</span>
<span class="sd">    &quot;&quot;&quot;</span>
<div class="viewcode-block" id="RunManager.get_view_obj"><a class="viewcode-back" href="../../../master.runmanager.html#master.runmanager.run_manager.RunManager.get_view_obj">[docs]</a>    <span class="k">def</span> <span class="nf">get_view_obj</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">        get view data for net config</span>
<span class="sd">        :return:</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="k">pass</span></div>

<div class="viewcode-block" id="RunManager.set_view_obj"><a class="viewcode-back" href="../../../master.runmanager.html#master.runmanager.run_manager.RunManager.set_view_obj">[docs]</a>    <span class="k">def</span> <span class="nf">set_view_obj</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">obj</span><span class="p">):</span>
        <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">        set net config data edited on view</span>
<span class="sd">        :param obj:</span>
<span class="sd">        :return:</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="k">pass</span></div>

<div class="viewcode-block" id="RunManager.regist_train_request"><a class="viewcode-back" href="../../../master.runmanager.html#master.runmanager.run_manager.RunManager.regist_train_request">[docs]</a>    <span class="k">def</span> <span class="nf">regist_train_request</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="n">task</span> <span class="o">=</span> <span class="n">WorkFlowTrainTask</span><span class="p">()</span>
        <span class="n">task</span><span class="o">.</span><span class="n">delay</span><span class="p">()</span>

        <span class="k">return</span> <span class="kc">None</span></div>

    <span class="k">def</span> <span class="nf">_find_proper_train_server</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>

        <span class="k">return</span> <span class="kc">None</span>

    <span class="k">def</span> <span class="nf">_check_train_server_capa</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>

        <span class="k">return</span> <span class="kc">None</span>

    <span class="k">def</span> <span class="nf">_get_next_job</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>

        <span class="k">return</span> <span class="kc">None</span>

    <span class="k">def</span> <span class="nf">_check_cur_running_job</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>

        <span class="k">return</span> <span class="kc">None</span>

    <span class="k">def</span> <span class="nf">_get_max_allow_job</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>

        <span class="k">return</span> <span class="kc">None</span>

    <span class="k">def</span> <span class="nf">_exec_next_job</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>

        <span class="k">return</span> <span class="kc">None</span>

<div class="viewcode-block" id="RunManager.set_job_init"><a class="viewcode-back" href="../../../master.runmanager.html#master.runmanager.run_manager.RunManager.set_job_init">[docs]</a>    <span class="k">def</span> <span class="nf">set_job_init</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">nn_id</span><span class="p">,</span> <span class="n">wf_ver</span><span class="p">):</span>

        <span class="k">return</span> <span class="kc">None</span></div>

<div class="viewcode-block" id="RunManager.set_job_start"><a class="viewcode-back" href="../../../master.runmanager.html#master.runmanager.run_manager.RunManager.set_job_start">[docs]</a>    <span class="k">def</span> <span class="nf">set_job_start</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">nn_id</span><span class="p">,</span> <span class="n">wf_ver</span><span class="p">):</span>

        <span class="k">return</span> <span class="kc">None</span></div>

<div class="viewcode-block" id="RunManager.set_job_finish"><a class="viewcode-back" href="../../../master.runmanager.html#master.runmanager.run_manager.RunManager.set_job_finish">[docs]</a>    <span class="k">def</span> <span class="nf">set_job_finish</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">nn_id</span><span class="p">,</span> <span class="n">wf_ver</span><span class="p">):</span>
        <span class="k">return</span> <span class="kc">None</span></div>

<div class="viewcode-block" id="RunManager.set_job_error"><a class="viewcode-back" href="../../../master.runmanager.html#master.runmanager.run_manager.RunManager.set_job_error">[docs]</a>    <span class="k">def</span> <span class="nf">set_job_error</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">nn_id</span><span class="p">,</span> <span class="n">wf_ver</span><span class="p">):</span>
        <span class="k">return</span> <span class="kc">None</span></div></div>
</pre></div>

          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper"><div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="../../../index.html">Documentation overview</a><ul>
  <li><a href="../../index.html">Module code</a><ul>
  </ul></li>
  </ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="../../../search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy;2017, seungwookim.
      
      |
      Powered by <a href="http://sphinx-doc.org/">Sphinx 1.4.6</a>
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.9</a>
      
    </div>

    

    
  </body>
</html>