The client.upload_file module for the dask cluster does not work when using prefect

Hello everyone

I ran into a problem when I uploaded client.upload_file to dask and received the link “Scheduler.register_worker_plugin() received an unexpected argument for the keyword ‘idempotent’”

The error is reproduced only when the code is run to the prefecture after the deployment.
If I run the same code, but from my local PC, then the code works.

Function for uploading a file:
def upload_file():
log = get_run_logger()

    responses = client.upload_file(" ") (answers)
except for the exception in the form of e:
log.error(“An error occurred: {}”.format(str(e)))

task_runner uses DaskTaskRunner