In this article
Use controlled failing project scripts to verify crewai run’s exit propagation; a nonzero process result does not roll back previously completed workflow effects.
The November 8 CrewAI 1.15.38 release changes classic crew and Python flow runs to propagate a failed project script’s exit code. This week’s delivered patch corrects a command that could print an error yet exit successfully. Automation should check the exit boundary, while retaining separate evidence for artifacts and external work completed before the failure.
Observe the parent process boundary
Create disposable classic crew and Python flow fixtures whose scripts exit with known nonzero codes. Launch them through crewai run from the same wrapper used by CI. Capture the parent exit status independently from stderr. A pipeline that greps for an error line may still misclassify results, especially when useful diagnostic text changes. Assert successful scripts continue to return success as the control.
A failed run can leave valid partial artifacts
Have the synthetic script write an identifiable local artifact before failing. Inspect it after the command returns nonzero. The new status improves orchestration truth but does not define rollback. A retrying parent should classify artifacts by run identity and completion state, rather than deleting or publishing every file merely because the command failed or succeeded. Use only harmless outputs while establishing that lifecycle.
Command families have distinct coverage
The PR targets classic run paths and explicitly names other commands outside this change. Keep a matrix of the commands the organization invokes instead of applying one passing result to train, test or replay. Evaluation also intentionally handles project failure so it can still grade available evidence. Test that workflow separately; its continuation after a failed script need not mean the failure was ignored.
Retry policy should use task evidence
Configure one bounded retry around the failing fixture and count project launches. If real workflows can perform tool effects before failure, reconcile an operation ledger before replaying them. The release establishes an observable process failure; it does not make arbitrary agent work idempotent. Report the tested command, project format and wrapper behavior so a corrected exit status becomes a reliable input to scheduling rather than an automatic invitation to repeat everything.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.