Skip to content

Commit

Permalink
Disable job to top up canisters until we have more cycles (#6833)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Nov 17, 2024
1 parent 9e4895e commit 4ebc221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/canisters/local_user_index/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- Add `BotApiCanister` to the canister state ([#6828](https://github.com/open-chat-labs/open-chat/pull/6828))
- Add the `BotCommand` access token type ([#6830](https://github.com/open-chat-labs/open-chat/pull/6830))
- Disable job to top up canisters until we have more cycles ([#6833](https://github.com/open-chat-labs/open-chat/pull/6833))

## [[2.0.1454](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.1454-local_user_index)] - 2024-11-14

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ thread_local! {
const CYCLES_CHECK_INTERVAL: Milliseconds = 7 * DAY_IN_MS;

pub fn start_job() {
run_now_then_interval(Duration::from_millis(CYCLES_CHECK_INTERVAL), populate_canisters);
let enabled = false;
if enabled {
run_now_then_interval(Duration::from_millis(CYCLES_CHECK_INTERVAL), populate_canisters);
}
}

fn populate_canisters() {
Expand Down

0 comments on commit 4ebc221

Please sign in to comment.