Example #1
0
        public async Task <JobStatus> ProcessJob(Job job, TargetPlatform platform)
        {
            switch (platform)
            {
            case TargetPlatform.HostOS:
                _messageQueueService.ConsumeMessage();
                break;

            case TargetPlatform.Docker:
                await ExecuteJobWithDockerAsync(job);

                break;

            case TargetPlatform.Kubernetes:
                await ExecuteJobWithKubernetesAysnc(job);

                break;

            default:
                break;
            }

            return(JobStatus.Completed);
        }