File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -521,8 +521,21 @@ async def handle_cast(
521
521
return None
522
522
523
523
if self .instance is None :
524
+ # This could happen because of the following reasons. Both
525
+ # indicates a possible bug in the framework:
526
+ # 1. the execution of the previous message for "__init__" failed,
527
+ # but that error is not surfaced to the caller.
528
+ # - TODO(T229200522): there is a known bug. fix it.
529
+ # 2. this message is delivered to this actor before the previous
530
+ # message of "__init__" is delivered. Out-of-order delivery
531
+ # should never happen. It indicates either a bug in the
532
+ # message delivery mechanism, or the framework accidentally
533
+ # mixed the usage of cast and direct send.
524
534
raise AssertionError (
525
- "__init__ failed earlier and no Actor object is available"
535
+ f"""
536
+ actor object is missing when executing method { message .method }
537
+ on actor { mailbox .actor_id }
538
+ """
526
539
)
527
540
the_method = getattr (self .instance , message .method )._method
528
541
You can’t perform that action at this time.
0 commit comments