用法:
traceback(timeout=None, **kwargs)
返回失败任务的回溯
这将返回一个回溯对象。您可以使用
traceback
模块检查此对象。或者,如果您调用future.result()
,则此回溯将伴随引发的异常。- timeout:编号,可选
以秒为单位的时间,之后引发
dask.distributed.TimeoutError
如果暂停在返回之前经过了几秒钟,adask.distributed.TimeoutError
被抛出
- 追溯
回溯对象。如果客户端是异步的,则为协程。
参数:
返回:
例子:
>>> import traceback >>> tb = future.traceback() >>> traceback.format_tb(tb) [...]
相关用法
- Python distributed.Future用法及代码示例
- Python distributed.protocol.serialize.register_generic用法及代码示例
- Python distributed.Client.gather用法及代码示例
- Python distributed.recreate_tasks.ReplayTaskClient.recreate_task_locally用法及代码示例
- Python distributed.diagnostics.plugin.SchedulerPlugin用法及代码示例
- Python distributed.Client.ncores用法及代码示例
- Python distributed.Client.retire_workers用法及代码示例
- Python distributed.Client.unregister_worker_plugin用法及代码示例
- Python distributed.fire_and_forget用法及代码示例
- Python distributed.Client.set_metadata用法及代码示例
- Python distributed.Client.scheduler_info用法及代码示例
- Python distributed.Client.submit用法及代码示例
- Python distributed.Client.compute用法及代码示例
- Python distributed.SpecCluster.scale用法及代码示例
- Python distributed.get_worker用法及代码示例
- Python distributed.SpecCluster.scale_up用法及代码示例
- Python distributed.Client.nthreads用法及代码示例
- Python distributed.comm.resolve_address用法及代码示例
- Python distributed.Client.unpublish_dataset用法及代码示例
- Python distributed.get_task_stream用法及代码示例
注:本文由纯净天空筛选整理自dask.org大神的英文原创作品 distributed.Future.traceback。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。