Пример #1
0
        public async Task ExecJob(long groupId, long id)
        {
            var quartzJobName   = "Scheduler_0";
            var quartzGroupName = "BackgroundJobManager";
            var quartzCronStr   = "* * * * * ? *";

            var jobGroup = await _JobGroupManager.GetJobGroupByIdAsync(groupId);

            if (jobGroup == null)
            {
                return;
            }
            _Job_Scheduler.execScheduler(quartzJobName, quartzGroupName, quartzCronStr, jobGroup.TypeTable, id, 0);
        }
        public async Task <JobGroupOutputDto> GetJobGroupById(long id)
        {
            var entity = await _JobGroupManager.GetJobGroupByIdAsync(id);

            return(entity.MapTo <JobGroupOutputDto>());
        }