コード例 #1
0
        public async Task <int> AddDefaultJobQueue(int projectId, string originUrl, string jobType, CancellationToken cancellationToken = default)
        {
            var defaultJobDefinition = await _jobDefinitionService.GetDefaultJobDefinition(projectId);

            if (defaultJobDefinition == null)
            {
                throw new DefaultJobDefinitionNotFoundException(projectId);
            }

            return(await AddJobQueue(projectId, originUrl, jobType, defaultJobDefinition.Id));
        }