Find Jobs
Hire Freelancers

SQL Job dependency

$30-250 USD

Concluído
Publicado há mais de 11 anos

$30-250 USD

Pago na entrega
Hi, I wanted to create a process to control SQL Server Jobs that depend on each other. Job Control Process The process controls SQL Server Jobs that depend on each other ie. if Job1 depends on Job 2 ie. Job2 has to complete, before Job1 can start, then the process will control the job starting. At the moment the jobs are scheduled to run at specific times eg. Job2 is scheduled to start at 1pm and Job1 at 2pm. The issue is that if Job2 runs for over an hour, the next job (Job1) would fail. The process controls job start times based on Job levels (not Job steps). The following tables in the Operations database manage the control process. • AS_JobSchedules - A table that contains the jobs • AS_Dependencies - A table that contains a list of Jobs and their dependencies. ? JobID FK to JSID in JobSchedules, ? JobDependencyID FK to JSID in JobSchedules ? Priority specifies priority of dependency in case 1 job depends on more than one job. • AS_JobRunLog - A table that logs RunStartdate, RunCompletedDate or RunFailedDate of every job that runs. • AS_JobRunWaitLog - A table that logs the job that’s waiting, the job that’s causing the wait and duration of wait. Every Job will have 2 extra steps around the normal job steps of the job. 1. Begin Check Job dependency 2. Whatever the job steps are... 3. Log Job dependency The broad process might be: 1. Job1 begins – Step1 (Begin Check Job dependency stored Procedure) a. INSERTs a record in the AS_JobRunLog table with RunStartDate (leaving RunCompletedDate and RunFailedDate as NULL) b. Checks AS_Dependencies table for its dependency job/s. It then checks to see if that job's entry in the AS_JobRunLog table has a RunCompleted that is not null and within 24 hours of the RunStartDate of this job (ie the job that ran last actually completed). c. If it’s completed, the Steps 1 completes successfully and the next step can begin. d. If not; ie the job is still running, it INSERTs a record in the AS_JobRunWaitLog. e. It uses a WAITFOR and hangs back for 10 minutes and tries again until it finds the dependency job has completed. The job step then completes successfully and the next step can begin. 2. Step2 – The actual step of that job. 3. Step 3 - (Log Job dependency stored Procedure) a. If the previous job step succeeds, Step 3 stored procedure UPDATEs the record in the AS_JobRunLog table with RunCompletedDate (leaving RunFailedDate as NULL) b. If the previous job step fails, Step 3 stored procedure UPDATEs the record in the AS_JobRunLog table with RunFailedDate (leaving RunCompletedDate as NULL) So in summary, I need someone to write 2 stored procedures that achieve the above process using the tables listed. 1. usp_BeginCheckJobDependency stored Procedure 2. usp_LogJobDependency stored Procedure Please quote for this. Thank you.
ID do Projeto: 4118658

Sobre o projeto

12 propostas
Projeto remoto
Ativo há 11 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hi, I would be pleased to write your two stored procs for you. Your procs will be delivered on a silver platter and fully tested. Please refer to PM for references.
$160 USD em 2 dias
5,0 (52 avaliações)
5,8
5,8
12 freelancers estão ofertando em média $275 USD for esse trabalho
Avatar do Usuário
Hi, Please consider my proposal for the task. Regards, Muhammad Ali Safder
$150 USD em 5 dias
5,0 (36 avaliações)
5,1
5,1
Avatar do Usuário
please refer PMB
$175 USD em 5 dias
5,0 (1 avaliação)
2,9
2,9
Avatar do Usuário
functional needs, I'd like to do that, would you mind increase your budget?
$1.300 USD em 3 dias
5,0 (1 avaliação)
1,8
1,8
Avatar do Usuário
Hi Asim, Please check the PM for details. Regards, Prteek3288
$250 USD em 4 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
I have read your idea, and I am curious the solution you are talking, let's discuss more details.
$200 USD em 5 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
I am SQL Architech having 10+ working experience and I have already design such job functionality. SO I can ensure you 100% satisfation.
$100 USD em 4 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hi, I have experience in SQL and reporting using various tool and can be potential asset for your project. Please check your message box for more details.
$150 USD em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
I have excellent experience in PLSQL and SQL. I am ready to start.
$100 USD em 5 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hey There! I am interested in doing this project for you.
$210 USD em 5 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hi, we have team working on web applications, SQL, PLSQL and database technologies. We assure the quality of work and delivery. We have successfully completed many projects in past and it is very easy project. Thanks in advance...!!!
$150 USD em 5 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
understand requirements; can do it in 24h
$350 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED KINGDOM
London, United Kingdom
5,0
37
Método de pagamento verificado
Membro desde jul. 15, 2005

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.