Skip to content

TypeError: 'DeploymentHandle' object is not callable after upgrading framex-kit to 0.12.b1 #70

@touale

Description

@touale

After upgrading framex-kit to version 0.12.b1, an exception occurs during plugin startup.
The issue happens when PersonMatchPlugin calls register_proxy_func in on_start().

The error did not occur before the upgrade.

Environment

  • framex-kit: 0.12.b1
  • Python: 3.11
  • Ray Serve (used by framex)

The plugin crashes with the following error:

(ServeController pid=47923) INFO 2026-02-09 09:50:51,556 controller 47923 -- Adding 1 replica to Deployment(name='backend', app='default').
(ServeReplica:default:proxy.ProxyPlugin pid=48191) 02-09 09:50:53 [WARNING] framex.plugin | Plugin(proxy) config not found, use default config
(ServeReplica:default:match.PersonMatchPlugin pid=48196) Task exception was never retrieved
(ServeReplica:default:match.PersonMatchPlugin pid=48196) future: <Task finished name='Task-8' coro=<PersonMatchPlugin.on_start() done, defined at ...> exception=TypeError("'DeploymentHandle' object is not callable")>
Traceback (most recent call last):
  File ".../person_match/plugins/match/__init__.py", line 38, in on_start
    await register_proxy_func(get_teacher_id_filter)
  File ".../framex/plugin/load.py", line 57, in register_proxy_func
    await call_plugin_api(
  File ".../framex/plugin/__init__.py", line 116, in call_plugin_api
    result = await get_adapter().call_func(api, **kwargs)
  File ".../framex/adapter/base.py", line 38, in call_func
    return self._call(func, **kwargs)
  File ".../framex/adapter/base.py", line 67, in _call
    return func(**kwargs)
TypeError: 'DeploymentHandle' object is not callable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions