Skip to content

fix(Dgraph): Forward task status requests to correct Alpha #7774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 5, 2021

Conversation

ajeetdsouza
Copy link
Contributor

@ajeetdsouza ajeetdsouza commented May 3, 2021

Currently, the Task API only knows about tasks created by itself. This PR would allow tasks to extract the Raft ID from the Task ID, and use it to forward the request to the correct Alpha.


This change is Reviewable

@ajeetdsouza ajeetdsouza requested a review from jarifibrahim May 3, 2021 14:16
@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label May 3, 2021
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 7 of 7 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ajeetdsouza, @jarifibrahim, @pawanrawal, and @vvbalaji-dgraph)


worker/queue.go, line 155 at r1 (raw file):

		switch meta.Status() {
		case TaskStatusFailed:
			return 0, fmt.Errorf("an error occurred, please check logs for details")

Just say "task failed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphql Issues related to GraphQL support on Dgraph.
Development

Successfully merging this pull request may close these issues.

2 participants