简体   繁体   English

如何确保我的 Foundry 作业以 static 分配运行?

[英]How do I ensure my Foundry job is running with static allocation?

I can tell whether my job is using static allocation , however I want to actually change my job to use it.我可以判断我的工作是否正在使用 static 分配,但是我实际上想改变我的工作以使用它。 How do I do this?我该怎么做呢?

Ensure your compute function has the configure decorator and includes the STATIC_ALLOCATION profile like so:确保您的计算 function 具有configure装饰器并包含STATIC_ALLOCATION配置文件,如下所示:

from transforms.api import Input, Output, configure, transform


@configure(profile=["STATIC_ALLOCATION"])
@transform(
  ...
)
def my_compute_function(...):
  ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM