Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added logs #1246

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions superagi/jobs/agent_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ def execute_waiting_workflows(self):
step_wait = AgentWorkflowStepWait.find_by_id(session, workflow_step.action_reference_id)
if step_wait is not None:
wait_time = step_wait.delay if not None else 0
logger.info(f"Agent Execution ID: {agent_execution.id}")
logger.info(f"Wait time: {wait_time}")
logger.info(f"Wait begin time: {step_wait.wait_begin_time}")
logger.info(f"Current time: {datetime.now()}")
logger.info(f"Wait Difference : {(datetime.now() - step_wait.wait_begin_time).total_seconds()}")
if ((datetime.now() - step_wait.wait_begin_time).total_seconds() > wait_time
and step_wait.status == AgentWorkflowStepWaitStatus.WAITING.value):
agent_execution.status = AgentExecutionStatus.RUNNING.value
Expand Down