You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When extending the functionality to support advanced scheduling parameters,
Then provide the following enhancements:
Given a cron expression,
When using the cron parameter,
Then the scheduled method should execute based on the cron expression, allowing triggers on the second, minute, hour, day of month, month, and day of the week.
Given a fixed delay duration in milliseconds,
When using the fixedDelay parameter,
Then the annotated method should execute with a fixed period between the end of the last invocation and the start of the next.
Given a fixed delay duration as a string,
When using the fixedDelayString parameter,
Then the annotated method should execute with a fixed period between the end of the last invocation and the start of the next, parsed from the provided string.
Given a fixed rate duration in milliseconds,
When using the fixedRate parameter,
Then the annotated method should execute with a fixed period between invocations.
Given a fixed rate duration as a string,
When using the fixedRateString parameter,
Then the annotated method should execute with a fixed period between invocations, parsed from the provided string.
Given an initial delay duration in milliseconds,
When using the initialDelay parameter,
Then the annotated method should have a delay before the first execution of a fixedRate() or fixedDelay() task.
Given an initial delay duration as a string,
When using the initialDelayString parameter,
Then the annotated method should have a delay before the first execution of a fixedRate() or fixedDelay() task, parsed from the provided string.
Given a scheduler type or instance,
When using the scheduler parameter,
Then the annotated method should run on the specified scheduler.
Given a TimeUnit enum,
When using the timeUnit parameter,
Then the annotated method should use the specified TimeUnit for fixedDelay(), fixedDelayString(), fixedRate(), fixedRateString(), initialDelay(), and initialDelayString().
Given a time zone,
When using the zone parameter,
Then the cron expression should be resolved based on the specified time zone.
Expected Behavior
Develop a robust and flexible @Scheduled annotation in Dart that adheres to the given conditions, providing developers with versatile scheduling options. Ensure backward compatibility with the existing @Scheduled annotation if applicable and update documentation with examples and use cases for the new parameters.
Additional Information
Coordinate with the team to ensure alignment with the overall project architecture and coding standards. Update the documentation to reflect the changes and provide clear instructions for implementing the extended @Scheduled annotation.
The text was updated successfully, but these errors were encountered:
Issue Description
Given the existing
@Scheduled
annotation in Dart,When extending the functionality to support advanced scheduling parameters,
Then provide the following enhancements:
Given a cron expression,
When using the
cron
parameter,Then the scheduled method should execute based on the cron expression, allowing triggers on the second, minute, hour, day of month, month, and day of the week.
Given a fixed delay duration in milliseconds,
When using the
fixedDelay
parameter,Then the annotated method should execute with a fixed period between the end of the last invocation and the start of the next.
Given a fixed delay duration as a string,
When using the
fixedDelayString
parameter,Then the annotated method should execute with a fixed period between the end of the last invocation and the start of the next, parsed from the provided string.
Given a fixed rate duration in milliseconds,
When using the
fixedRate
parameter,Then the annotated method should execute with a fixed period between invocations.
Given a fixed rate duration as a string,
When using the
fixedRateString
parameter,Then the annotated method should execute with a fixed period between invocations, parsed from the provided string.
Given an initial delay duration in milliseconds,
When using the
initialDelay
parameter,Then the annotated method should have a delay before the first execution of a
fixedRate()
orfixedDelay()
task.Given an initial delay duration as a string,
When using the
initialDelayString
parameter,Then the annotated method should have a delay before the first execution of a
fixedRate()
orfixedDelay()
task, parsed from the provided string.Given a scheduler type or instance,
When using the
scheduler
parameter,Then the annotated method should run on the specified scheduler.
Given a TimeUnit enum,
When using the
timeUnit
parameter,Then the annotated method should use the specified TimeUnit for
fixedDelay()
,fixedDelayString()
,fixedRate()
,fixedRateString()
,initialDelay()
, andinitialDelayString()
.Given a time zone,
When using the
zone
parameter,Then the cron expression should be resolved based on the specified time zone.
Expected Behavior
Develop a robust and flexible
@Scheduled
annotation in Dart that adheres to the given conditions, providing developers with versatile scheduling options. Ensure backward compatibility with the existing@Scheduled
annotation if applicable and update documentation with examples and use cases for the new parameters.Additional Information
Coordinate with the team to ensure alignment with the overall project architecture and coding standards. Update the documentation to reflect the changes and provide clear instructions for implementing the extended
@Scheduled
annotation.The text was updated successfully, but these errors were encountered: