'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?



Solution 1:[1]

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(...):
  ...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vanhooser