Flagsmith / flagsmith

Open Source Feature Flagging and Remote Config Service. Host on-prem or use our hosted version at https://flagsmith.com/
https://flagsmith.com/
BSD 3-Clause "New" or "Revised" License
4.78k stars 364 forks source link

Recurring flag scheduling #1914

Open tianli91 opened 1 year ago

tianli91 commented 1 year ago

Is your feature request related to a problem? Please describe. We would like schedule maintenance on regular basis on every day 5am -530am.

Describe the solution you'd like Enhancement for current flag scheduling.

gz#398

matthewelwell commented 1 year ago

Hi @tianli91, I wonder if you could perhaps use a segment override for this? If you define a segment that has 2 rules:

current_time > 5am current_time < 5.30am

Then, when you request the flags for a user, you can provide the current_time trait. You can then enable the maintenance feature for this segment.