Skip to content

chore: Update crewai#661

Merged
jirispilka merged 6 commits intomasterfrom
chore/update-crewai
Mar 31, 2026
Merged

chore: Update crewai#661
jirispilka merged 6 commits intomasterfrom
chore/update-crewai

Conversation

@jirispilka
Copy link
Copy Markdown
Contributor

@jirispilka jirispilka commented Jan 30, 2026

Another attempt:

  1. Downgrade base image from Python 3.14 → 3.13 (Dockerfile)
    crewai depends on tiktoken, which has no pre-built wheel for Python 3.14 and requires a
    Rust compiler to build from source — causing the Docker build to fail.

  2. Fix Actor hanging on the platform (main.py)
    crew.kickoff() is a blocking synchronous call inside an async context. It blocks the event
    loop, preventing the async with Actor: block from exiting and calling Actor.exit(). The
    Actor would complete its work but never terminate, eventually timing out. Fixed with await
    crew.kickoff_async().

  3. Suppress crewAI's interactive trace prompt (main.py)
    On first run in a fresh Docker container, crewAI prompts "Would you like to view your
    execution traces?" and waits 20 seconds for stdin input that never comes. There's no
    dedicated non-interactive flag — CREWAI_TESTING=true is the only env var that suppresses
    it. Must be set before importing crewai since the TraceCollectionListener singleton is
    initialized at import time.

  4. Update crewAI from 0.x → 1.x (requirements.txt)
    Bumps crewai[tools] from >= 0.11.0, < 1.0.0 to >= 1.12.2, < 2.0.0.

Console run: https://console.apify.com/actors/runs/ScP7JvAupLhnQBTca#log

@github-actions github-actions Bot added the t-ai Issues owned by the AI team. label Jan 30, 2026
@jirispilka jirispilka changed the title chore/update-crewai chore: Update crewai Jan 30, 2026
@jirispilka jirispilka requested a review from MQ37 January 30, 2026 22:08
Copy link
Copy Markdown
Contributor

@MQ37 MQ37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CrewAI sucks and update actually broke this - let's not invest time in this (I already tried to fix this for like 8 hours)

@B4nan
Copy link
Copy Markdown
Member

B4nan commented Feb 2, 2026

It's a matter of time when we include this repo in the SOC2 checks and we will need to deal with outdated deps more and more. Let's not just ignore this, if there is a problem on their end, report it or link existing issue here so we know what we are waiting for.

@danpoletaev danpoletaev force-pushed the chore/update-crewai branch from 8774f00 to 684bd90 Compare March 6, 2026 21:52
@B4nan B4nan force-pushed the chore/update-crewai branch from 684bd90 to 8774f00 Compare March 6, 2026 22:49
@B4nan
Copy link
Copy Markdown
Member

B4nan commented Mar 30, 2026

Since you are at it - the CI started failing recently because of missing openai token (apparently):

Error: The following secrets are missing:
  - OPENAI_API_KEY

Set them by calling "apify secrets add <SECRET_NAME> <SECRET_VALUE>" for each missing secret.
If you want to skip missing secrets, run the command with the --allow-missing-secrets flag.

https://github.com/apify/actor-templates/actions/runs/23595380717/job/68710641803

@jirispilka jirispilka requested a review from MQ37 March 30, 2026 11:22
@jirispilka
Copy link
Copy Markdown
Contributor Author

Since you are at it - the CI started failing recently because of missing openai token (apparently):

Error: The following secrets are missing:
  - OPENAI_API_KEY

Set them by calling "apify secrets add <SECRET_NAME> <SECRET_VALUE>" for each missing secret.
If you want to skip missing secrets, run the command with the --allow-missing-secrets flag.

https://github.com/apify/actor-templates/actions/runs/23595380717/job/68710641803

It should be fixed in this PR: #744

Copy link
Copy Markdown
Contributor

@MQ37 MQ37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, really I appreciate the time and effort (I know it must have been painful to fix) 👍

@jirispilka jirispilka merged commit 46379f0 into master Mar 31, 2026
42 checks passed
@jirispilka jirispilka deleted the chore/update-crewai branch March 31, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants