Hi Sunkai,

Thanks for your proposal. We will give it a review and contact you ASAP.


Best,
Trista


------------------------------------------------------------------------------
Juan Pan(Trista), Apache member, Apache ShardingSphere PMC, Apache brpc 
(Incubator) & Apache AGE (Incubator) mentor
Twitter, @trista86934690
     


On 08/10/2021 15:43,sk c<sunkai....@gmail.com> wrote:
Hi everyone,

I prefer to discuss the annotation of ElasticJob  plan.

example:

```
@ElasticScheduled(
cron = "0/5 * * * * ?",
jobName = "SimpleTestJobSecond",
shardingTotalCount = 3,
shardingItemParameters = "0=Beijing,1=Shanghai,2=Guangzhou",
jobListenerTypes = {"NOOP", "LOG"},
props = {
@ElasticJobProp(key = "print.title", value = "test title"),
@ElasticJobProp(key = "print.content", value = "test
content")
}
)
public class SimpleTestJob implements CustomJob {

@Override
public void execute(final ShardingContext shardingContext) {
}

}
```

```
@Configuration
@EnableElastic(scanBasePackages =
"org.apache.shardingsphere.elasticjob.lite.example.job.simple")
public class ElasticConfig {

}
```

we can look at it on
https://github.com/apache/shardingsphere-elasticjob/pull/1954

I am going to work it soon. Please remind me if you have a suggestion.


------------------
Sincerely,
SunKai  Cai (skai)

Reply via email to