Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

AttributeError: 'NoneType' object has no attribute 'POLLER' #326

Open
eswolinsky3241 opened this issue Mar 1, 2025 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'POLLER' #326

eswolinsky3241 opened this issue Mar 1, 2025 · 0 comments

Comments

@eswolinsky3241
Copy link

Python version: 3.12.5
hatchet-sdk version: 0.47.0
I'm on MacOS arm.

Have been getting this error following the workflow trigger examples from the documentation, but also see it using pretty much any method that communicates with my Hatchet instance:

from hatchet_sdk import Hatchet

hatchet = Hatchet()

workflowRuns = []

for i in range(10):
    workflowRuns.append(
        {
            "workflow_name": "my_workflow",
            "input": {"n": i},
            "options": {
                "additional_metadata": {
                    "bulk-trigger": str(i),
                    f"hello-{i}": f"earth-{i}"
                },
            },
        }
    )

workflowRunRefs = hatchet.admin.run_workflows(
    workflowRuns,
)

Error:

Traceback (most recent call last):
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi", line 110, in grpc._cython.cygrpc.shutdown_grpc_aio
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi", line 114, in grpc._cython.cygrpc.shutdown_grpc_aio
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi", line 78, in grpc._cython.cygrpc._actual_aio_shutdown
AttributeError: 'NoneType' object has no attribute 'POLLER'
Exception ignored in: 'grpc._cython.cygrpc.AioChannel.__dealloc__'
Traceback (most recent call last):
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi", line 110, in grpc._cython.cygrpc.shutdown_grpc_aio
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi", line 114, in grpc._cython.cygrpc.shutdown_grpc_aio
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi", line 78, in grpc._cython.cygrpc._actual_aio_shutdown
AttributeError: 'NoneType' object has no attribute 'POLLER'
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1740838376.399071 99967340 init.cc:232] grpc_wait_for_shutdown_with_timeout() timed out.

The operation appears to succeed (I see the workflow runs in my Hatchet dashboard) but this would obviously break any downstream code I tried to implement. Any idea what might be going on here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant