Closed irvinlim closed 1 year ago
Base: 70.36% // Head: 70.60% // Increases project coverage by +0.24%
:tada:
Coverage data is based on head (
c08ae2c
) compared to base (c8e12c6
). Patch coverage: 82.60% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Closes #7.
Overview
This PR introduces support for multiple cron expressions per JobConfig.
For example, given the following JobConfig spec:
This allows us to specify that the JobConfig shall be periodically scheduled as follows:
API Semantics
expression
/expressions
is allowed inspec.schedule.cron
.0/30 10-19 * * *
and0 0/2 * * *
. However, the JobConfig will be scheduled only once.Changes
expressions
tospec.schedule.cron
and make bothexpression
/expressions
optional.Expression
interface, which is implemented by*cronexpr.Expression
, as well as a newmultiExpression
implementation.Next()
.