Skip to content

Commit

Permalink
fixes to task queue
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantBorthakur committed Jun 8, 2023
1 parent c521ce6 commit 154bcf3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Binary file modified gui/app/favicon.ico
Binary file not shown.
8 changes: 6 additions & 2 deletions gui/pages/Content/Agents/TaskQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react';
import styles from './Agents.module.css';
import 'react-toastify/dist/ReactToastify.css';
import { getExecutionTasks } from '@/pages/api/DashboardService';
import Image from "next/image";

export default function TaskQueue({ selectedRunId }) {
const [tasks, setTasks] = useState({ pending: [], completed: [] });
Expand Down Expand Up @@ -29,7 +30,10 @@ export default function TaskQueue({ selectedRunId }) {
{tasks.pending.map((task, index) => (
<div key={index} className={styles.history_box} style={{ background: '#272335', padding: '20px', cursor: 'default' }}>
<div style={{ display: 'flex' }}>
<div className={styles.feed_title} style={{ marginLeft: '0' }}>
<div>
<Image width={14} height={14} style={{mixBlendMode: 'exclusion'}} src="/images/loading.gif" alt="loading-icon"/>
</div>
<div className={styles.feed_title}>
{task.name}
</div>
</div>
Expand All @@ -39,7 +43,7 @@ export default function TaskQueue({ selectedRunId }) {
{tasks.completed.map((task, index) => (
<div key={index} className={styles.history_box} style={{ background: '#272335', padding: '20px', cursor: 'default' }}>
<div style={{ display: 'flex' }}>
<div className={styles.feed_title} style={{ marginLeft: '0' }}>
<div className={styles.feed_title} style={{marginLeft: '0' }}>
{task.name}
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion gui/pages/api/DashboardService.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const getExecutionTasks = (executionId) => {
return api.get(`/agentexecutionfeeds/get/tasks/${executionId}`);
};


export const createAgent = (agentData) => {
return api.post(`/agents/create`, agentData);
};
Expand Down
1 change: 0 additions & 1 deletion gui/pages/api/apiConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import axios from 'axios';

const GITHUB_CLIENT_ID = process.env.GITHUB_CLIENT_ID;
const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8001';
// const API_BASE_URL = 'http://192.168.127.48:8001';

export const baseUrl = () => {
return API_BASE_URL;
Expand Down

0 comments on commit 154bcf3

Please sign in to comment.