fix: workflow termination
This commit is contained in:
parent
2544e870aa
commit
2cc639bbfc
|
|
@ -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 }],
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue