package tech.easyflow.job.job;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import tech.easyflow.job.entity.SysJob;
import tech.easyflow.job.util.JobUtil;

/**
 * 禁止并发执行
 */
@DisallowConcurrentExecution
public class QuartzJobNoConcurrent extends BaseQuartzJob {

    @Override
    protected Object doExecute(JobExecutionContext ctx, SysJob job) throws Exception {
        return JobUtil.execute(job);
    }
}
