cytadela8
cytadela8
WWindmill
Created by cytadela8 on 12/7/2023 in #help
Chartjs options not working
Hi, do chartjs options actually work? I'm trying to scale the x axis properly (I have dates on the x axis). Specifying the "options" seems to have no effect. I'm trying to use following options:
{
"scales": {
"x": {
"type": "time",
"time": {
"unit": "second",
"displayFormats": {
"second": "YYYY-MM-DD HH:mm:ss"
}
},
"title": {
"display": true,
"text": "Time"
}
},
"y": {
"title": {
"display": true,
"text": "Value"
}
}
}
}
{
"scales": {
"x": {
"type": "time",
"time": {
"unit": "second",
"displayFormats": {
"second": "YYYY-MM-DD HH:mm:ss"
}
},
"title": {
"display": true,
"text": "Time"
}
},
"y": {
"title": {
"display": true,
"text": "Value"
}
}
}
}
5 replies
WWindmill
Created by cytadela8 on 12/4/2023 in #help
Postgresql job crashing native worker
I believe I managed to accidently create a postgresql job/script that crashes the windmill native workers. I think its due to the select returning quite big numbers. I'm getting this log in my worker:
thread 'tokio-runtime-worker' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rust_decimal-1.32.0/src/str.rs:30:15:

called `Result::unwrap()` on an `Err` value: CapacityError: insufficient capacity

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rust_decimal-1.32.0/src/str.rs:30:15:

called `Result::unwrap()` on an `Err` value: CapacityError: insufficient capacity

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Other SQLs work fine
11 replies