bulltrackers-module 1.0.315 → 1.0.316

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.
@@ -129,7 +129,8 @@ async function dispatchComputationPass(config, dependencies, computationManifest
129
129
  const etaSeconds = Math.max(20, Math.ceil(totalweight * BASE_SECONDS_PER_WEIGHT_UNIT));
130
130
  const remainingDatesCount = Math.max(0, dirtyDates.length - targetCursorN);
131
131
 
132
- const computationNames = selectedTasks.map(t => t.name);
132
+ // [UPDATED] Capture both name and reason for transparency
133
+ const taskDetails = selectedTasks.map(t => `${t.name} (${t.reason})`);
133
134
 
134
135
  logger.log('INFO', `[Dispatcher] ✅ Dispatching ${selectedTasks.length} tasks for ${selectedDate}. ETA: ${etaSeconds}s. [Mode: ${isSweep ? 'RECOVERY' : 'NORMAL'}]`, {
135
136
  date: selectedDate,
@@ -139,7 +140,7 @@ async function dispatchComputationPass(config, dependencies, computationManifest
139
140
  totalweight: totalweight,
140
141
  etaSeconds: etaSeconds,
141
142
  dispatchId: currentDispatchId,
142
- tasks: computationNames
143
+ tasks: taskDetails // [UPDATED] Now logs "calc-name (Reason)"
143
144
  });
144
145
 
145
146
  const mapToTaskPayload = (t) => ({
@@ -149,7 +150,7 @@ async function dispatchComputationPass(config, dependencies, computationManifest
149
150
  date: selectedDate,
150
151
  pass: passToRun,
151
152
  dispatchId: currentDispatchId,
152
- triggerReason: t.reason,
153
+ triggerReason: t.reason, // Already passed to worker
153
154
  resources: t.resources || 'standard'
154
155
  });
155
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.315",
3
+ "version": "1.0.316",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [