fix: workflow termination

This commit is contained in:
Nevo David 2026-01-07 13:57:45 +07:00
parent 2544e870aa
commit 2cc639bbfc
2 changed files with 4 additions and 4 deletions

View File

@ -105,7 +105,7 @@ export class AutopostService {
try {
return this._temporalService.client
.getRawClient()
?.workflow.start('postWorkflowV101', {
?.workflow.start('autoPostWorkflow', {
workflowId: `autopost-${id}`,
taskQueue: 'main',
args: [{ id, immediately: true }],

View File

@ -384,7 +384,7 @@ export class PostsService {
const workflows = this._temporalService.client
.getRawClient()
?.workflow.list({
query: `WorkflowType="postWorkflow" AND postId="${post.id}" AND ExecutionStatus="Running"`,
query: `postId="${post.id}" AND ExecutionStatus="Running"`,
});
for await (const executionInfo of workflows) {
@ -444,7 +444,7 @@ export class PostsService {
const workflows = this._temporalService.client
.getRawClient()
?.workflow.list({
query: `WorkflowType="postWorkflow" AND postId="${posts[0].id}" AND ExecutionStatus="Running"`,
query: `postId="${posts[0].id}" AND ExecutionStatus="Running"`,
});
for await (const executionInfo of workflows) {
@ -513,7 +513,7 @@ export class PostsService {
const workflows = this._temporalService.client
.getRawClient()
?.workflow.list({
query: `WorkflowType="postWorkflow" AND postId="${getPostById.id}" AND ExecutionStatus="Running"`,
query: `postId="${getPostById.id}" AND ExecutionStatus="Running"`,
});
for await (const executionInfo of workflows) {