Skip to content

Commit 3ea57c8

Browse files
authored
Fix tracking bug when creating >1 sub workflows
1 parent 17d4ad7 commit 3ea57c8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

backend/redis/instance.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,9 @@ func createInstance(ctx context.Context, rdb redis.UniversalClient, instance *co
134134
return err
135135
}
136136

137-
c, err := rdb.RPush(ctx, subInstanceKey(instance.ParentInstanceID), instanceStr).Result()
138-
if err != nil {
137+
if err := rdb.RPush(ctx, subInstanceKey(instance.ParentInstanceID), instanceStr).Err(); err != nil {
139138
return errors.Wrap(err, "could not track sub-workflow")
140139
}
141-
142-
if c != 1 {
143-
return errors.New("could not track sub-workflow")
144-
}
145140
}
146141

147142
return nil

0 commit comments

Comments
 (0)