Skip to main content

Hello team,

I the following setup

  • Schedule 1
    • Layer 1 - Primary
    • Layer 2 - Business Hours

Primary and Business Hours have the same users but Primary changes weekly while Business Hours changes daily.
How can I make sure that, if a user is set for Primary, it will be skipped for Business Hours?

A hack that would work, but would be more effort to maintain when adding or removing users, is to explicitly lay out multiple weeks in the Business Hours layer via rotation entries. That is to say, specifying the same group of users round-robin until there are seven rotation entries (one for each day), and doing that once for each user in the group, excluding the user on-call for Primary a given week from the rotation. Let’s say there four users, A, B, C and D. The “Business Hours” will have 28 entries (seven for each week where a member is on Primary):

 

Week 1:

Primary: A

Business Hours: B, C, D, B, C, D, B

 

Week 2:

Primary: B

Business Hours: C, D, A, C, D, A, C

 

Week 3: 

Primary: C

Business Hours: D, A, B, D, A, B, D

 

Week 4:

Primary: D

Business Hours: A, B, C, A, B, C, A

 

The rotation entries for “Business Hours”, superimposed on “Primary” for illustrative purposes, would then look like this:

 

B, C, D, B, C, D, B, C, D, A, C, D, A, C, D, A, B, D, A, B, D, A, B, C, A, B, C, A
A _ _ _ _ _ _ B _ _ _ _ _ _ C _ _ _ _ _ _ D _ _ _ _ _ _

 


Hello Demitri,

Thanks a lot for the suggestion!

I might be able to generate that with Terraform, considering we have around 30 primaries :)

Have a great day,
Antoine


Reply