UNPKG

flowviz

Version:

A framework which provides seamless integration with other phylogenetic tools and frameworks, while allowing workflow scheduling and execution, through the Apache Airflow workflow system.

21 lines (18 loc) 823 B
const SimpleHttpOperatorModule = require("../models/airflow/SimpleHttpOperator"); // const SimpleHttpOperator = DockerOperatorModule.DockerOperator; // const SimpleHttpOperatorParams = DockerOperatorModule.DockerOperatorParams; function mapTaskToSimpleHttpOperator(task, tool) { // return new SimpleHttpOperator( // (id = task.id), // (operator_params = new SimpleHttpOperatorParams( // (image = task.action.image), // (api_version = task.action.api_version), // (mounts = task.action.mounts), // (command = task.action.command), // (auto_remove = task.action.auto_remove), // (docker_url = task.action.docker_url), // (network_mode = task.action.network_mode) // ).toJson()) // ).toJson(); } module.exports = mapTaskToSimpleHttpOperator;