Skip to content

caused by the local function refresh_task #66

@omgbbq

Description

@omgbbq

error

Traceback (most recent call last):
File "/data/www/cwb-api/.venv/lib/python3.11/site-packages/loguru/_handler.py", line 204, in emit
self._queue.put(str_record)
File "/usr/local/python3/lib/python3.11/multiprocessing/queues.py", line 371, in put
obj = _ForkingPickler.dumps(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python3/lib/python3.11/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
File "/data/www/cwb-api/.venv/lib/python3.11/site-packages/apscheduler/job.py", line 260, in getstate
raise ValueError(
ValueError: This Job cannot be serialized since the reference to its callable (<function EcsRamRoleCredentialsProvider.init..refresh_task at 0x7f96cc373ba0>) could not be determined. Consider giving a textual reference (module:function name) instead.

version

alibabacloud-credentials:1.0.2
apscheduler:3.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions