instar 0.7.34 → 0.7.35
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/commands/init.js +2 -2
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -1019,8 +1019,8 @@ function getDefaultJobs(port) {
|
|
|
1019
1019
|
enabled: true,
|
|
1020
1020
|
gate: `curl -sf http://localhost:${port}/health >/dev/null 2>&1`,
|
|
1021
1021
|
execute: {
|
|
1022
|
-
type: '
|
|
1023
|
-
value: `
|
|
1022
|
+
type: 'script',
|
|
1023
|
+
value: `RESULT=$(curl -s -X POST http://localhost:${port}/feedback/retry 2>/dev/null); COUNT=$(echo "$RESULT" | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('retried',0))" 2>/dev/null || echo 0); [ "$COUNT" -gt "0" ] && echo "Feedback retry: $COUNT item(s) forwarded." || echo "Feedback retry: nothing pending."`,
|
|
1024
1024
|
},
|
|
1025
1025
|
tags: ['coherence', 'default'],
|
|
1026
1026
|
},
|