コード例 #1
0
        public async Task <MessageModel <string> > ExecuteJob(int jobId)
        {
            var data = new MessageModel <string>();

            var model = await _tasksQzServices.QueryById(jobId);

            if (model != null)
            {
                return(await _schedulerCenter.ExecuteJobAsync(model));
            }
            else
            {
                data.msg = "任务不存在";
            }
            return(data);
        }