Skip to content

Commit

Permalink
Disable config sync entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Oct 8, 2024
1 parent c3ff011 commit 2986bcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webhooky/src/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub async fn run_job_cmd(cmd: crate::core::SubCommand, context: Context) -> Resu
..
} = context;
let config = app_config.read().unwrap().clone();
cio_api::configs::refresh_db_configs_and_airtable(&db, &company, &config).await?;
// cio_api::configs::refresh_db_configs_and_airtable(&db, &company, &config).await?;
}
crate::core::SubCommand::SyncFinance(_) => {
let Context {
Expand Down
6 changes: 3 additions & 3 deletions webhooky/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ pub async fn server(
// scheduler
// .every(12.hours())
// .run(enclose! { (server_context) move || create_do_job_fn(server_context.clone(), "sync-companies")});
scheduler
.every(1.hours())
.run(enclose! { (server_context) move || create_do_job_fn(server_context.clone(), "sync-configs")});
// scheduler
// .every(1.hours())
// .run(enclose! { (server_context) move || create_do_job_fn(server_context.clone(), "sync-configs")});
// scheduler
// .every(6.hours())
// .run(enclose! { (server_context) move || create_do_job_fn(server_context.clone(), "sync-finance")});
Expand Down

0 comments on commit 2986bcb

Please sign in to comment.