package com.red.circle.scheduling.job;

import com.red.circle.tool.core.date.DateUtils;
import java.time.ZoneOffset;
import lombok.extern.slf4j.Slf4j;
import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;
import org.springframework.stereotype.Component;

/**
 * @author pengliang on 2023/10/20
 */
@Slf4j
@Component
public class TestSimpleJob implements SimpleJob {

  @Override
  public void execute(ShardingContext shardingContext) {
    log.warn(DateUtils.format(DateUtils.now(), "yyyy-MM-dd HH:mm:ss", ZoneOffset.systemDefault()));
  }

}
