Skip to content
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

Error in result watcher scheduling logic #32

Open
krebsni opened this issue Sep 15, 2022 · 0 comments
Open

Error in result watcher scheduling logic #32

krebsni opened this issue Sep 15, 2022 · 0 comments

Comments

@krebsni
Copy link
Contributor

krebsni commented Sep 15, 2022

The result watcher is trying to check the task result for saved task result. In addition, it seems like the task result is unscheduled twice (or at least the function that does the unscheduling and prints out the success message is called twice). Only happens sometimes

Tested with Docker and MariaDB

qhana-backend-backend-1  | time = 2022-09-15T08:21:59.408Z level = INFO module = qhana/qhana_backend message = "Unschedule watcher 3 after result was saved."
qhana-backend-backend-1  | time = 2022-09-15T08:21:59.411Z level = INFO module = qhana/qhana_backend message = "Unscheduled watcher for step 3. JobId: {\"id\":251354}"
qhana-backend-backend-1  | time = 2022-09-15T08:21:59.475Z level = INFO module = qhana/qhana_backend message = "Unschedule watcher 3 after result was saved."
qhana-backend-backend-1  | time = 2022-09-15T08:21:59.485Z level = ERROR module = qhana/qhana_backend message = "Failed to check task result." error = "Invalid job id: 251354" stackTrace = [
"callableName: externUnscheduleJob moduleName: ballerina.task.2 fileName: scheduler.bal lineNumber: 170",
"callableName: unscheduleJob moduleName: ballerina.task.2 fileName: scheduler.bal lineNumber: 94",
"callableName: unschedule moduleName: qhana.qhana_backend.0.ResultWatcher fileName: result-watcher.bal lineNumber: 567",
"callableName: checkTaskResult moduleName: qhana.qhana_backend.0.ResultWatcher fileName: result-watcher.bal lineNumber: 589",
"callableName: execute moduleName: qhana.qhana_backend.0.ResultWatcher fileName: result-watcher.bal lineNumber: 441"]
@krebsni krebsni changed the title Error in result watcher, trying to check task result for saved task result. Also saved twice. Error in result watcher scheduling logic Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant