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.
20 lines (16 loc) • 484 B
JavaScript
const WorkflowLog = require("../schema/mongodb/log/workflowLog");
module.exports = () => {
function getDbWorkflowLogs(username) {
return WorkflowLog.find({ username: username }).select("-_id -__v");
}
function getDbWorkflowLog(username, workflowName) {
return WorkflowLog.findOne({
username: username,
name: workflowName,
}).select("-_id -__v");
}
return {
getDbWorkflowLogs: getDbWorkflowLogs,
getDbWorkflowLog: getDbWorkflowLog,
};
};