diff --git a/gui/pages/Content/Agents/ActivityFeed.js b/gui/pages/Content/Agents/ActivityFeed.js
index 9b92c77ab..36b0b7c91 100644
--- a/gui/pages/Content/Agents/ActivityFeed.js
+++ b/gui/pages/Content/Agents/ActivityFeed.js
@@ -16,12 +16,11 @@ export default function ActivityFeed({selectedRunId, selectedView, setFetchedDat
const [scheduleTime, setScheduleTime] = useState(null);
const [isLoading, setIsLoading] = useState(true);
const [waitingPeriod, setWaitingPeriod] = useState(null);
- const [waitingPeriodOver, setWaitingPeriodOver] = useState(null);
const [errorMsg, setErrorMsg] = useState('');
useEffect(() => {
const interval = window.setInterval(function () {
- if (selectedRunStatus === "RUNNING") {
+ if (selectedRunStatus !== "ERROR_PAUSED") {
fetchFeeds();
}
}, 5000);
@@ -78,10 +77,6 @@ export default function ActivityFeed({selectedRunId, selectedView, setFetchedDat
EventBus.emit('reFetchAgents', {});
}, [runStatus])
- useEffect(() => {
- setWaitingPeriodOver(updateDateBasedOnValue(convertWaitingPeriod(waitingPeriod)))
- }, [waitingPeriod]);
-
function fetchFeeds() {
if (selectedRunId !== null) {
setIsLoading(true);
@@ -157,7 +152,7 @@ export default function ActivityFeed({selectedRunId, selectedView, setFetchedDat
⏳
-
Waiting Block Initiated. The Agent will wait for {convertWaitingPeriod(waitingPeriod) || null} and continue on {waitingPeriodOver || 'soon'}
+
Waiting Block Initiated. The Agent will wait for {convertWaitingPeriod(waitingPeriod) || null}
}
{runStatus === 'RUNNING' &&
diff --git a/gui/utils/utils.js b/gui/utils/utils.js
index b00bcff19..7ef7015ce 100644
--- a/gui/utils/utils.js
+++ b/gui/utils/utils.js
@@ -523,23 +523,23 @@ export const convertWaitingPeriod = (waitingPeriod) => {
return convertedValue + ' ' + unit;
}
-export const updateDateBasedOnValue = (convertedValue, inputDate = new Date()) => {
- const [value, unit] = convertedValue.split(' ');
- const unitConversion = {
- 'seconds': 1000,
- 'minutes': 1000 * 60,
- 'hours': 1000 * 60 * 60,
- 'days': 1000 * 60 * 60 * 24,
- 'weeks': 1000 * 60 * 60 * 24 * 7
- };
-
- const updatedDate = new Date(inputDate.getTime() + parseInt(value, 10) * unitConversion[unit]);
-
- return updatedDate.toLocaleString('en-US', {
- day: 'numeric',
- month: 'long',
- year: 'numeric',
- hour: 'numeric',
- minute: 'numeric'
- });
-}
\ No newline at end of file
+// export const updateDateBasedOnValue = (convertedValue, inputDate = new Date()) => {
+// const [value, unit] = convertedValue.split(' ');
+// const unitConversion = {
+// 'seconds': 1000,
+// 'minutes': 1000 * 60,
+// 'hours': 1000 * 60 * 60,
+// 'days': 1000 * 60 * 60 * 24,
+// 'weeks': 1000 * 60 * 60 * 24 * 7
+// };
+//
+// const updatedDate = new Date(inputDate.getTime() + parseInt(value, 10) * unitConversion[unit]);
+//
+// return updatedDate.toLocaleString('en-US', {
+// day: 'numeric',
+// month: 'long',
+// year: 'numeric',
+// hour: 'numeric',
+// minute: 'numeric'
+// });
+// }
\ No newline at end of file
diff --git a/superagi/agent/agent_iteration_step_handler.py b/superagi/agent/agent_iteration_step_handler.py
index 6c0f33e9f..dd5a14575 100644
--- a/superagi/agent/agent_iteration_step_handler.py
+++ b/superagi/agent/agent_iteration_step_handler.py
@@ -90,7 +90,8 @@ def execute_step(self):
print("Decoding JSON has failed")
tool_name = ''
- CallLogHelper(session=self.session, organisation_id=organisation.id).create_call_log(execution.name,agent_config['agent_id'],total_tokens, tool_name,agent_config['model'])
+ CallLogHelper(session=self.session, organisation_id=organisation.id).create_call_log(execution.name,
+ agent_config['agent_id'], total_tokens, tool_name, agent_config['model'])
assistant_reply = response['content']
output_handler = get_output_handler(iteration_workflow_step.output_type,