Skip to content

Commit

Permalink
Delay change (#1107)
Browse files Browse the repository at this point in the history
* Delay Changed

* Updated Feed Polling Time
  • Loading branch information
luciferlinx101 authored Aug 24, 2023
1 parent 9da77f1 commit 65f3e53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/pages/Content/Agents/ActivityFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function ActivityFeed({selectedRunId, selectedView, setFetchedDat
useEffect(() => {
const interval = window.setInterval(function () {
fetchFeeds();
}, 10000);
}, 5000);

return () => clearInterval(interval);
}, [selectedRunId]);
Expand Down
2 changes: 1 addition & 1 deletion superagi/jobs/agent_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def execute_next_step(self, agent_execution_id):
logger.info("Agent Execution is completed or waiting for permission")
session.close()
return
superagi.worker.execute_agent.apply_async((agent_execution_id, datetime.now()), countdown=10)
superagi.worker.execute_agent.apply_async((agent_execution_id, datetime.now()), countdown=2)
# superagi.worker.execute_agent.delay(agent_execution_id, datetime.now())
finally:
session.close()
Expand Down

0 comments on commit 65f3e53

Please sign in to comment.