refactor(sql): changes to improve the job disable

This commit is contained in:
2026-02-18 08:53:19 -06:00
parent 6edd20585f
commit 2111a5fdc9
3 changed files with 10 additions and 10 deletions

View File

@@ -13,8 +13,8 @@ post {
body:json { body:json {
{ {
"runningNr": "1864553", "runningNr": "1865027",
"reason": "30006" "reason": "packer printed premature"
} }
} }

View File

@@ -5,7 +5,7 @@ meta {
} }
post { post {
url: {{url}}/lst/old/api/logistics/bookout url: {{url}}/lst/old/api/logistics/removeasreusable
body: json body: json
auth: none auth: none
} }
@@ -13,8 +13,8 @@ post {
body:json { body:json {
{ {
"runningNr": "1865027", "runningNr": "1865018",
"reason": "packer printed premature" "reason": "validating stockout"
} }
} }

View File

@@ -1,8 +1,8 @@
/* /*
disables sql jobs. disables sql jobs.
*/ */
EXEC msdb.dbo.sp_update_job @job_name = N'[jobName]', @enabled = 0;
DECLARE @JobName varchar(max) = '[jobName]' -- DECLARE @JobName varchar(max) = '[jobName]'
UPDATE msdb.dbo.sysjobs -- UPDATE msdb.dbo.sysjobs
SET enabled = 0 -- SET enabled = 0
WHERE name = @JobName; -- WHERE name = @JobName;