executant 1.11.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -639,6 +639,14 @@ async function* runForEach(task, from) {
|
|
|
639
639
|
const total = items.length;
|
|
640
640
|
const innerTotal = task.inner.length;
|
|
641
641
|
const startIteration = from?.[0] ?? 1;
|
|
642
|
+
if (startIteration > 1 && startIteration > total) {
|
|
643
|
+
yield {
|
|
644
|
+
type: "log",
|
|
645
|
+
level: "warn",
|
|
646
|
+
text: `[from-step] No iterations to run: target iteration ${startIteration} exceeds total ${total} in "${task.name}"`
|
|
647
|
+
};
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
642
650
|
for (const [i, item] of items.entries()) {
|
|
643
651
|
const iteration = i + 1;
|
|
644
652
|
if (iteration < startIteration) continue;
|