mirror of
https://github.com/Portabase/agent.git
synced 2026-09-11 22:11:52 +00:00
725312e1d5
* fix: s3 port type mismatch, add string_or_number_to_string deserializer * fix: adding some tests * fix: adding some tests * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline * fix: working on pipeline --------- Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
30 lines
636 B
Rust
30 lines
636 B
Rust
mod core;
|
|
mod domain;
|
|
mod services;
|
|
mod settings;
|
|
mod tasks;
|
|
#[cfg(test)]
|
|
mod tests;
|
|
mod utils;
|
|
|
|
use crate::tasks::ping::ping_server;
|
|
use crate::utils::locks::FileLock;
|
|
use crate::utils::logging;
|
|
use utils::redis_client;
|
|
use utils::task_manager::scheduler;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
logging::init_logger();
|
|
|
|
// Remove all locks on startup
|
|
if let Err(e) = FileLock::clean_startup().await {
|
|
eprintln!("Failed to clean locks on startup: {:?}", e);
|
|
}
|
|
|
|
tokio::join!(ping_server(), async {
|
|
let conn = redis_client::redis_connection().await;
|
|
scheduler::scheduler_loop(conn).await;
|
|
});
|
|
}
|