<#6453 Add max-delta-timestamp configuration optio...
# flyte-github
c
#6453 Add max-delta-timestamp configuration option to FlytePropeller ArrayNode Pull request opened by hamersaw ## Tracking issue N/A ## Why are the changes needed? Added a max-delta-timestamp configuration option to FlytePropeller ArrayNode configuration to allow for ArrayNode subNodes beginning execution greater than 3 days after the start of the ArrayNode. ## What changes were proposed in this pull request? ^^^ ## How was this patch tested? Updated local configuration to:
Copy code
propeller:
  ....
  array-node:
    max-delta-timestamp: 2s
  ....
Copy code
import flytekit as fl
import time

THRESHOLD = 11

@fl.task
def detect_anomalies(data_point: int) -> bool:
    time.sleep(1)  # Simulate a time-consuming task
    return data_point > THRESHOLD

@fl.workflow
def map_workflow(data: list[int] = [10, 12, 11, 10, 13, 12, 100, 11, 12, 10]) -> list[bool]:
    # Use the map task to apply the anomaly detection function to each data point
    return fl.map_task(detect_anomalies, concurrency=2,)(data_point=data)
### Labels • fixed: For any bug fixed. This is important to improve the readability of release notes. ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link ### Summary by Bito This pull request introduces a new configuration option, max-delta-timestamp, to the FlytePropeller ArrayNode, allowing subNodes to execute up to 3 days post ArrayNode initiation. The updates include modifications to configuration files and command flags, along with unit tests to validate the new functionality, enhancing the usability of the FlytePropeller framework. Unit tests added: True Estimated effort to review (1-5, lower is better): 2 flyteorg/flyte