package com.laker.admin.module.task.core.impl;

import com.laker.admin.module.task.core.IJob;
import com.laker.admin.module.task.core.Job;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;
import java.util.concurrent.TimeUnit;

@Job(taskCode = "job1", taskName = "laker测试任务")
@Slf4j
public class TestJob implements IJob {
    @Override
    public void execute(Map map) throws Exception {
        log.info("laker job run");
        TimeUnit.SECONDS.sleep(10);
    }
}