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.
45 lines (41 loc) • 805 B
JavaScript
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const Task = require("./task");
const AirflowDagSchema = new Schema({
start_date: {
type: String,
minlength: 3,
maxlength: 30,
required: true,
},
end_date: {
type: String,
minlength: 3,
maxlength: 30,
required: true,
},
tasks: [Task],
});
const WorkflowSchema = new Schema({
dag_id: {
type: String,
minlength: 3,
maxlength: 30,
required: true,
unique: true,
},
description: {
type: String,
minlength: 3,
maxlength: 50,
required: true,
},
username: {
type: String,
minlength: 3,
maxlength: 20,
required: true,
},
dag: { type: Object, required: true }, // TODO
});
module.exports = mongoose.model("Workflow", WorkflowSchema);