-
Notifications
You must be signed in to change notification settings - Fork 221
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
state_flags in session_attempts table #603
Comments
6 = DONE_CODE + SUCCESS_CODE
handle.update(
context.newCreateTableBuilder("session_attempts")
.addLongId("id")
.addLong("session_id", "not null references sessions (id)")
.addInt("site_id", "not null") // denormalized for performance
.addInt("project_id", "not null references projects (id)") // denormalized for performance
.addString("attempt_name", "not null")
.addLong("workflow_definition_id", "references workflow_definitions (id)")
.addShort("state_flags", "not null") // 0=running or blocked, 1=cancel_requested, 2=done, 4=success
.addString("timezone", "not null")
.addMediumText("params", "")
.addTimestamp("created_at", "not null")
.build()); |
Thanks @hiroyuki-sato . What does 3 stand for? Also what does 6 (DONE + SUCCESS) mean? How is it different to just SUCESS? |
@cosmok Why do you want to know that status? It's internal implementation, and It may change in future. Anyway, have you ever seen value 4 (only SUCCESS_CODE flag)? I'm not a core developer, so I have to read source code before answer. |
@hiroyuki-sato status_flag=3 for a failed one. Also status flag=0 for pending/running. I am trying to collect metrics on the different states for workflows. So, it can be used for alerting as well as for monitoring. I am not aware of any API that I can use to effectively data that looks like the output of this SQL:
|
@cosmok I'm not sure whether you can get those metrics with API call.
FLAG
VALUE MEANING
UPDATE |
@hiroyuki-sato yes state_flags: 3 appears to mean killed (i did kill the few that now have 3 as state_flags) Thanks! |
@cosmok Thank you for your reporting!. I think it is better to create another issue for metrics feature request. |
Thanks @hiroyuki-sato |
Hi,
The state_flags has integer codes, what do the state_flags mean?
For instance, the query below returns the code and I would like to like collect metrics for a project/ workflow. labels for the codes will be handy for graphing the metrics.
The text was updated successfully, but these errors were encountered: