gresrun / jesque

An implementation of Resque in Java.
http://gresrun.github.io/jesque
Apache License 2.0
631 stars 132 forks source link

通过jesque的延时任务实现支持cron表达式的调度任务 #173

Closed cyao2q closed 1 year ago

cyao2q commented 3 years ago

项目示例 https://gitee.com/shy323/cloud-jesque

ScheduleUtils.cronEnqueue(client, "scheduleService", "print", ScheduleUtils.createCronExpression(triggerTime));

ScheduleUtils.cronEnqueue(client, "scheduleService", "withParams", "0 0/1 * * * ?", 31L, "Cyao");

ScheduleUtils.delayedEnqueue(client, "scheduleService", "withParams", triggerTime, "你好啊", "世界");
cyao2q commented 1 year ago

1