Search code examples
espernesper

How does nesting two crontab Contexts work?


Is it possible to nest two crontab contexts like these?

create context Nest 
context A start (0, *, *, *, 1) end (0, *, *, *, 6),
context B start (0, 8, *, *, *) end (0, 22, *, *, *)

Does the first context decide the second context?

If so I assume, A should be the first since it decides the days, and the second will live as long the days are within the first context.


Solution

  • Yes you are right. The "A" context controls the "B" context. The "B" context lives only when A lives.