crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
21.31k stars 2.96k forks source link

[BUG] Logs are not displayed during async kickoff #1462

Open 11bluetree opened 1 month ago

11bluetree commented 1 month ago

Description

Hi,

When the above logging settings are enabled, logs are displayed in the terminal when running the normal kickoff method. However, when using kickoff_async or kickoff_for_each_async, no execution logs are displayed at all. I would like to see the logs for debugging purposes, so I would appreciate it if you could explain the cause and provide a solution.

Kind regards,

Steps to Reproduce

  1. change execute kickoff to kickoff_async or kickoff_for_each_async

Expected behavior

All log statements should be printed, showing the start and end of each task. Regardless of whether the method is synchronous or asynchronous, verbose logs should be displayed.

Screenshots/Code snippets

none

Operating System

macOS Sonoma

Python Version

3.12

crewAI Version

0.70.1

crewAI Tools Version

0.12.1

Virtual Environment

Poetry

Evidence

none

Possible Solution

none

Additional context

none

github-actions[bot] commented 1 day ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.