Skip to content

Commit

Permalink
Merge pull request #35 from AGScheduler/dev
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
kwkwc committed Jun 5, 2024
2 parents e817e19 + e7e78f8 commit 2cd2e33
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "agscheduler-cli"
version = "0.3.1"
version = "0.3.2"
edition = "2021"
description = "Command line interface for AGScheduler"
license = "MIT"
Expand Down
24 changes: 9 additions & 15 deletions src/api_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ impl AGScheduler {
}
}
Err(err) => {
println!("Error: {}", err)
println!("Error: {}", err);
return;
}
}
let func_name = interaction.select_func_name(fn_selections);
Expand Down Expand Up @@ -184,7 +185,8 @@ impl AGScheduler {
}
}
Err(err) => {
println!("Error: {}", err)
println!("Error: {}", err);
return;
}
}

Expand Down Expand Up @@ -577,9 +579,7 @@ mod tests {
"last_run_time": "0001-01-01T00:00:00Z",
"name": "myJob",
"next_run_time": "2024-04-15T04:19:12Z",
"queues": [
"default"
],
"queues": [],
"start_at": "",
"status": "running",
"timeout": "1h",
Expand Down Expand Up @@ -610,9 +610,7 @@ mod tests {
"last_run_time": "0001-01-01T00:00:00Z",
"name": "myJob",
"next_run_time": "2024-04-15T04:19:12Z",
"queues": [
"default"
],
"queues": [],
"start_at": "",
"status": "running",
"timeout": "1h",
Expand All @@ -631,9 +629,7 @@ mod tests {
"last_run_time": "0001-01-01T00:00:00Z",
"name": "myJob2",
"next_run_time": "2024-04-15T04:19:12Z",
"queues": [
"default"
],
"queues": [],
"start_at": "2024-05-16 17:16:08",
"status": "running",
"timeout": "1h",
Expand All @@ -652,9 +648,7 @@ mod tests {
"last_run_time": "0001-01-01T00:00:00Z",
"name": "myJob3",
"next_run_time": "2024-04-15T04:19:12Z",
"queues": [
"default"
],
"queues": [],
"start_at": "",
"status": "running",
"timeout": "1h",
Expand Down Expand Up @@ -839,7 +833,7 @@ mod tests {
mock.expect_input_timezone().return_const("UTC");
mock.expect_input_args().return_const("{}");
mock.expect_input_timeout().return_const("1h");
mock.expect_input_queues().return_const("[\"default\"]");
mock.expect_input_queues().return_const("[]");
mock.expect_input_page().return_const(page);
mock.expect_input_page_size().return_const(page_size);
mock.expect_select_type().return_const("Interval");
Expand Down
2 changes: 1 addition & 1 deletion src/interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl InteractionTrait for Interaction {

#[cfg_attr(coverage_nightly, coverage(off))]
fn input_queues(&self, text: &str) -> String {
self.input_common_default("Queues", "[\"default\"]", text)
self.input_common_default("Queues", "[]", text)
.trim()
.to_string()
}
Expand Down

0 comments on commit 2cd2e33

Please sign in to comment.