Skip to content

Commit ec726af

Browse files
committed
debug: add logs to trace mediawiki workflow executation
1 parent d1f45f9 commit ec726af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/module.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const handleHivemindWebsiteCase = async (platform: any) => {
140140
* @param {Object} platform - Platform object
141141
*/
142142
const handleHivemindMediaWikiCase = async (platform: any) => {
143+
console.log('Handling Hivemind MediaWiki case for platform:', platform);
143144
const platformDoc = await platformService.getPlatformById(platform.platform);
144145

145146
if (!platformDoc) return;
@@ -148,8 +149,11 @@ const handleHivemindMediaWikiCase = async (platform: any) => {
148149
const existingWorkflowId = platformDoc.get('metadata.workflowId');
149150

150151
if (isActivated === true) {
152+
console.log('Platform is activated, checking for existing workflow ID:', existingWorkflowId);
151153
if (!existingWorkflowId) {
154+
console.log('No existing workflow ID found, executing new workflow for platform:', platform.platform);
152155
const workflowId = await temporalMediaWiki.executeWorkflow(platform.platform);
156+
console.log('New workflow ID created:', workflowId);
153157
platformDoc.set('metadata.workflowId', workflowId);
154158
await platformDoc.save();
155159
}

0 commit comments

Comments
 (0)