mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Add scheduler output skeleton.
This commit is contained in:
		@@ -12,10 +12,11 @@ def scheduler():
 | 
			
		||||
        'creator': current_user.id,
 | 
			
		||||
        'files': ['file_1', 'file_2', 'file_3'],
 | 
			
		||||
        'service': 'ocr',
 | 
			
		||||
        'args': {
 | 
			
		||||
        'service_args': {
 | 
			
		||||
            'lang': 'deu'
 | 
			
		||||
        }
 | 
			
		||||
        },
 | 
			
		||||
        'status': 'queued'
 | 
			
		||||
    }
 | 
			
		||||
    job = background_scheduler.add_job(print, trigger='date', args=[job])
 | 
			
		||||
    print(job)
 | 
			
		||||
    print(background_scheduler.get_jobs())
 | 
			
		||||
    return render_template('scheduler/index.html.j2', title='Scheduler')
 | 
			
		||||
 
 | 
			
		||||
@@ -2,6 +2,25 @@
 | 
			
		||||
 | 
			
		||||
{% block page_content %}
 | 
			
		||||
<div class="col s12">
 | 
			
		||||
  <div class="card">
 | 
			
		||||
    <div class="card-content">
 | 
			
		||||
      <span class="card-title">All jobs</span>
 | 
			
		||||
      <table>
 | 
			
		||||
        <thead>
 | 
			
		||||
          <tr>
 | 
			
		||||
            <th>creator</th>
 | 
			
		||||
            <th>files</th>
 | 
			
		||||
            <th>service</th>
 | 
			
		||||
            <th>service_args</th>
 | 
			
		||||
            <th>status</th>
 | 
			
		||||
          </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
 | 
			
		||||
        <tbody>
 | 
			
		||||
 | 
			
		||||
        </tbody>
 | 
			
		||||
      </table>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user