Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
Unleash

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to disable unleash#9227

Unanswered
FedericoAlvarez asked this question inQ&A
Feb 5, 2025· 1 comments· 1 reply
Discussion options

Hello there!

So this is my use case: My application has two deploys I have a cron job and a service.
I would like to programatically set if i want unleash to be active or not, as in my case the job doesn't use features flags.
And my logs are full of:io.getunleash.UnleashException: Could not fetch toggles

Any idea how can archive that?

ty

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Hello there!

So this is my use case: My application has two deploys I have a cron job and a service. I would like to programatically set if i want unleash to be active or not, as in my case the job doesn't use features flags. And my logs are full of:io.getunleash.UnleashException: Could not fetch toggles

Any idea how can archive that?

ty

Hi! Depending on your SDK, you can set the fetch interval and metrics interval to 0 to disable the network activity. You could also provide a FakeUnleash implementation in your cron-job if you don't need feature flags at all here, or a custom no-op implementation.

You must be logged in to vote
1 reply
@FedericoAlvarez
Comment options

Thanks@FredrikOseberg i will give it a try

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@FedericoAlvarez@FredrikOseberg

[8]ページ先頭

©2009-2025 Movatter.jp