Skip to content

Recursive Schema.execute call blocks forever with dataloader #4235

Closed
@tchak

Description

@tchak

Describe the bug

We are in the process of updating graphql gem and migrating to use dataloader (nonblocking: false). We run into an issue that comes up due to a bit of weirdness in our application. Some of our mutations during their execution call Schema.execute (we use graphql queries as serialization for objects on our audit logs). What happens is that calls to dataloader during this execution inside mutations block forever. Not really knowing what I am doing, I tried to pass a new dataloader instance to the internal execute call context. It solved the blocking forever problem but now I am getting an empty data hash from the internal execute with no errors. I can provide more details if needed, but maybe it's absolutely terrible and unreasonable what we are doing ?

Versions

graphql version: 1.13.6 and 2
rails: 6.1.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions