Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Marker support to be able to schedule tasks #2

Open
burakkoken opened this issue Sep 24, 2021 · 0 comments
Open

Add Marker support to be able to schedule tasks #2

burakkoken opened this issue Sep 24, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@burakkoken
Copy link
Member

burakkoken commented Sep 24, 2021

This feature makes it easier to schedule task by using markers and code generation.
The following markers should be added, they will be enough for now.

  • +chrono:scheduled. This should have the following arguments.
    FixedDelay, FixedRate, Cron
  • +chrono:enable-scheduling
    (main method should be marked with this annotation, it will enable support for scheduling)

The simple rule that we need to follow to marker a method with +chrono:scheduled is:
The method should have the method signature as shown below. (If not, the method will be ignored or an error message will be shown.)

func(ctx context.Context)

Please investigate how to support this feature.

@burakkoken burakkoken added the enhancement New feature or request label Sep 24, 2021
@burakkoken burakkoken self-assigned this Sep 24, 2021
@burakkoken burakkoken changed the title Add Marker support using Marker project Add Marker support to be able to schedule tasks Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant