cuddly-jelly-27016
05/14/2025, 8:52 PMpropeller:
....
array-node:
max-delta-timestamp: 2s
....
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/flytecuddly-jelly-27016
05/15/2025, 12:52 AM