简体   繁体   中英

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. How do I do this?

Ensure your compute function has the configure decorator and includes the STATIC_ALLOCATION profile like so:

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


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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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