예제 #1
0
파일: dummy.py 프로젝트: nyetsche/loom
    def run(cls, step_run):
        from analysis.models.work_in_progress import WorkInProgress
        # Generate a result,
        # post it to the web server.

        for output_port in step_run.step_definition.template.output_ports.all():

            result = {
                'step_definition': step_run.step_definition.to_obj(),
                'output_binding': {
                    'file': cls._render_dummy_file(),
                    'output_port': output_port.to_obj(),
                    },
                }

            # Post result
            WorkInProgress.submit_result({'step_run': step_run.to_json(), 'step_result': result})

        #Remove run from queue
        WorkInProgress.close_run(step_run.to_json())
예제 #2
0
    def run(cls, step_run):
        from analysis.models.work_in_progress import WorkInProgress
        # Generate a result,
        # post it to the web server.

        for output_port in step_run.step_definition.template.output_ports.all(
        ):

            result = {
                'step_definition': step_run.step_definition.to_obj(),
                'output_binding': {
                    'file': cls._render_dummy_file(),
                    'output_port': output_port.to_obj(),
                },
            }

            # Post result
            WorkInProgress.submit_result({
                'step_run': step_run.to_json(),
                'step_result': result
            })

        #Remove run from queue
        WorkInProgress.close_run(step_run.to_json())
예제 #3
0
 def _run_helloworld(self):
     WorkInProgress.submit_new_request(fixtures.helloworld_json)
     WorkInProgress.update_and_run()
예제 #4
0
 def _run_helloworld(self):
     WorkInProgress.submit_new_request(fixtures.helloworld_json)
     WorkInProgress.update_and_run()