Planning Équipes

Search Français Let’s talk

Rest and consecutive days

You know how the solver reads a rest straddling two weeks, why two full weeks in a row are forbidden, why the consecutive-days ceiling is a preference an edition can make mandatory and is set to eight days, and what a late closing followed by an early opening costs. The articles cited are the Labour Code’s; breaks and the meal break are in Legal rules, breaks and meals, minors' rests also in the questions on minor staff members.

The week boundary

The two weekly rests are read on the calendar week, from Monday 0:00 to Sunday 24:00 (L3121-35 (external site), a default definition that a company agreement may move, a fact the application does not hold), the same window as Creneau.semaineIso() and the weekly ceilings. What remains is the question of a rest that straddles Monday.

Everyone, reposHebdomadaireMinimal (L3132-2 (external site)). The text speaks of “twenty-four consecutive hours to which the consecutive hours of daily rest are added”: the 24 h are within the week, only the daily rest added to them may spill over. creditReposMinutes computes min(actual duration, share in the week + 11 h): a straddling rest is credited to both weeks but reaches the 35 h floor only in the one where it spends at least 24 h. A rest from Saturday 20:00 to Monday 10:00 (38 h) satisfies Saturday’s week and leaves the next at 21 h, as the French supreme court reads it (Cass. soc. 13 Nov. 2025, no. 24-10.733).

Minors, on top, in the same reposHebdomadaireMinimal rule (L3164-2 (external site)). “Two consecutive days of rest per week” is counted in calendar days inside the week. A Sunday and the following Monday are one free day in each of two weeks, not two consecutive days of either: neither week is satisfied. Days the event does not cover remain free days, but the two days must follow each other: a week opened in dotted form (Monday, Wednesday, Friday, Sunday) is still penalised if the minor holds them all.

Two full weeks in a row

dureeHebdomadaireMax caps each ISO week independently: nothing prevented two full weeks back to back, a form a solver converges to on a tight need. dureeHebdomadaireMaxDeuxSemaines (hard) forbids it for adults, at the threshold of ParametresLegaux.dureeHebdomadaireMaxMinutes (never a second 48 h constant). The penalty counts pairs of consecutive full weeks (three weeks cost twice as much: a slope to descend rather than a wall); a week is full in effective work, and timeslots being whole hours, “strictly under 48 h” means “47 h at most”. It is the short form of art. L3121-22 (external site) (44 h on average over twelve weeks), the only one that makes sense over fifteen days; the sliding average is out of scope. The rule does not catch 47 h 59 then 48 h: it is the wording the organiser asked for.

Consecutive days

maxJoursTravaillesParSemaine (L3132-1) and reposHebdomadaireMinimal (L3132-2, 35 h) guarantee a free day per calendar week, but let Tuesday-Sunday then Monday-Saturday through: twelve days in a row at zero hard breach. A ceiling on sliding days is therefore a rule of its own, and an organiser policy, not an obligation: L3132-1 reads on the calendar week, and the French supreme court holds that weekly rest need not fall after six consecutive days at the latest (Cass. soc. 13 Nov. 2025, no. 24-10.733; same CJEU reading C-306/16). It is a single rule, maxJoursConsecutifsTravailles, whose level the edition chooses (ADR 0111 (external site)):

Level What it says Default
preference (strong, normal, light) every day beyond the threshold costs medium points, according to the weight yes, at the configured weight (5 shipped)
mandatory every day beyond the threshold is a hard breach: the plan cannot be delivered no

Its former name, read as a level for the whole 4.x, is no longer read since 5.0: the mandatory level is written under the rule’s own name (ADR 0118 (external site)).

Why the threshold is eight days

The threshold (joursConsecutifsMax, eight by default) is set per edition, on the rule’s line, because it decides feasibility, not comfort: the rule requires a rest day in each window of (threshold + 1) days. On the versioned winter grid (festival-hivernal), six days is a ceiling nothing satisfies with the mandatory rule, whereas eight reaches zero hard breach. A weight does not make attainable what arithmetic forbids: tightening towards six is bridged by the grid or the headcount, not by the solver (ADR 0045 (external site)). As a preference, at the shipped dosage, the rule leaves people beyond the threshold: it is what the event asks at constant headcount, and the Fairness screen shows it (“longest streak” column).

Checking that a threshold holds, then getting it found

Two questions. The first is arithmetic, and the feasibility analysis poses it before any solve as soon as the rule is active: each day demands at least its floor (its peak of simultaneous seats), and each animateur offers, over a window of (threshold + 1) days, only the smaller of two numbers, the threshold or their available days in the window. On the tightest window, the Problems screen says where things stand, naming dates and never a person:

Margin (supply minus demand) What the analysis says
negative, rule mandatory blocking: no plan holds the rule, N person-days are missing, that is at least ⌈N / threshold⌉ staff members
negative, rule as a preference warning: the plan will necessarily exceed the cap for some
positive but under 10% of the demand warning: the rule will hold only if each day employs almost the minimum number of people
wider nothing

The condition is necessary, not sufficient: competences, hours, legal rules and a day held by more than its floor consume the margin, and inflating the floor would cry impossible on grids the solver fills easily. Under the mandatory rule, when the grid leaves room, the analysis re-reads the plan in place with the same arithmetic; a fully past window is never judged, and in a window straddling the past a day already worked counts whoever actually held it. The Needs screen counts the mandatory rule exactly: the smallest headcount whose rest calendars hold together six days a week and the consecutive threshold, by a maximum flow (ADR 0071 (external site)); as a preference, it never raises that figure: a rule the solver may breach must not drive recruiting.

What decides remains a plan: built apart and imported, the Problems screen judges it, and zero hard breach proves the need is tenable. The second question is the solver’s: under the mandatory rule, its feasibility phase searches by whole days (the chain filling a hole frees a day of the streak, a returned day goes only to colleagues already present that day, a day in pieces regroups on fewer people, ADR 0049 (external site)).

Closing late then opening early

reposQuotidienMinimal holds daily rest hard: 11 h for an adult (L3131-1 (external site)), 12 h for a minor and 14 h under 16 (L3164-1 (external site)). Someone closing at 23:00 and resuming at 10:00 respects the 11 h to the minute: legal but debatable over fifteen days. eviterFermeturePuisOuverture (medium, “Organisation quality”) expresses this preference and nothing else: not a Code obligation, hence no “Legal” category.

What it counts

Three ParametresQualite thresholds: late service (the day ends at 22:00 or after), early service (the next day starts at 10:00 or before) and desired rest (12 h), set by planning.contraintes.heure-service-tardif, planning.contraintes.heure-service-matinal and planning.contraintes.repos-souhaite-apres-service-tardif-minutes. The penalty is the number of minutes missing from the desired rest, counted from the legal floor: desired − max(actual rest, legal floor). This formula stops the rule from becoming a second disguised floor:

  • a schedule that is already unlawful is not billed twice for the same minutes: those under the floor remain the business of reposQuotidienMinimal;
  • where the law already requires as much as the wish (a minor, 12 h; before age 16, 14 h), the rule is entirely silent;
  • a desired rest set at the level of the floor, or below it, makes it inert: a preference that does not exceed the law says nothing. Leaving both service hours empty is a legitimate answer (ADR 0031 (external site)).

Bounds are compared as instants, not as clock hours: a 20:00-0:00 shift ends the next day at 0:00 and would pass for early if read as an hour, whereas it is the closing the rule looks for. The rule reasons on days, not on pairs of shifts: a night’s rest is a single quantity (last end of D, first start of D+1), whereas a pairwise join bills it once per pair (resuming at 8:00 then again at 10:00 paid the same night twice). The day is aggregated first (max(end), min(start)), then the two days are joined on the adjacency key.

Why 22:00 and 10:00

10:00 and not 9:00: with an early threshold at 9:00, a shift ending at 22:00 or after and a resumption at 9:00 or before are at most 11 h apart, never beyond an adult’s legal floor which the rule refuses to bill: an inert rule. At 10:00 the useful band is [11 h, 12 h[, exactly the target.

The tension with continuity on a premium stand

eviterRoulementStandsPremium pushes to keep the same faces on a premium stand; on a stand that opens and closes every day, avoiding closing then opening amounts to rotating them. Both rules are medium and weighted: the trade-off is set per edition, not in the code.

A mistake, an omission? Fix this page on GitHub. (external site)

A question no guide answers?

Let’s talk See hosting