Update workflow and remove test cron file
This commit is contained in:
parent
8d3f9339ee
commit
64d5e2a1bd
2 changed files with 2 additions and 19 deletions
|
|
@ -104,4 +104,5 @@ jobs:
|
||||||
sudo chmod +x /opt/gbo/bin/system/botui
|
sudo chmod +x /opt/gbo/bin/system/botui
|
||||||
|
|
||||||
lxc exec bot:pragmatismo-system -- systemctl start system || true
|
lxc exec bot:pragmatismo-system -- systemctl start system || true
|
||||||
lxc exec bot:pragmatismo-system -- systemctl start ui || true
|
lxc exec bot:pragmatismo-system -- systemctl start ui || true
|
||||||
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
use cron::Schedule;
|
|
||||||
use std::str::FromStr;
|
|
||||||
|
|
||||||
fn main() {
|
|
||||||
let schedules = vec![
|
|
||||||
"59 * * * *",
|
|
||||||
"0 * * * *",
|
|
||||||
"0 11 * * *",
|
|
||||||
];
|
|
||||||
|
|
||||||
for schedule_str in schedules {
|
|
||||||
println!("\nTesting: {}", schedule_str);
|
|
||||||
match Schedule::from_str(schedule_str) {
|
|
||||||
Ok(_) => println!(" ✓ OK"),
|
|
||||||
Err(e) => println!(" ✗ Error: {}", e),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue