Skip to content
Snippets Groups Projects

130 inc batch async

Merged Gareth Hughes requested to merge 130_IncBatchAsync into master
Compare and Show latest version
2 files
+ 35
6
Compare changes
  • Side-by-side
  • Inline
Files
2
import React, { useState, useEffect, useContext } from "react";
import { Link } from 'react-router-dom';
import axios from "axios";
import { Button, Form, Container } from "react-bootstrap";
import { BATCHContext } from "../../contexts/BATCHContext";
@@ -6,7 +7,7 @@ import { GlobalContext } from "../../contexts/GlobalContext";
import "../../assets/Interactive.css";
import LoadingSpinner from "../LoadingSpinner";
export default function Batch() {
export default function Batch() {
const {batchSystemURL, setBatchSystemURL, workflowURL, setWorkflowURL, list_of_workflows, setList_of_workflows, list_of_batchSystems, setList_of_batchSystems, list_job_results, setList_job_results} = useContext(BATCHContext);
const { api_host } = useContext(GlobalContext);
@@ -85,7 +86,6 @@ export default function Batch() {
axios
.get(api_host + "batch/worker/query?jobID=" + jobValues.jobID)
.then((response) => {
console.log(response.data);
setList_job_results(response.data);
})
.catch(function (error) {
@@ -302,7 +302,11 @@ export default function Batch() {
<div className="deploy-buttons">
{ state.showDeploy ?
<Button className="deploy-button" href={api_host + "batch/worker/load?workflowfile=" + workflowURL + "&facility=" + batchSystemURL} >Deploy</Button>
<Link to={{ pathname: "batch/SubmitJob", state: {workflowfile: workflowURL, facility: batchSystemURL} }}>
<Button className="deploy-button">Deploy</Button>
</Link>
//<Button className="deploy-button" href="batch/SubmitJob" >Deploy</Button>
//<Button className="deploy-button" href={api_host + "batch/worker/load?workflowfile=" + workflowURL + "&facility=" + batchSystemURL} >Deploy</Button>
//<Button className="deploy-button" href={api_host + "batch/CONCORDIA"}>Next</Button>
: null }
Loading