salmon-exabyte-11054
06/06/2023, 2:12 PM@resources(cpu=os.getenv("CPU", 1))
@step
def expensive_step(self):
pass
Thank you!victorious-lawyer-58417
06/06/2023, 2:36 PM@resources(cpu=int(os.getenv('CPU', 1))victorious-lawyer-58417
06/06/2023, 2:37 PM@resources(cpu=MY_CPU)
and set MY_CPU through a constant that you read from a config file at the top of the modulevictorious-lawyer-58417
06/06/2023, 2:38 PMrun --with resources:cpu=$CPU
on the command linesalmon-exabyte-11054
06/06/2023, 3:03 PM