This message was deleted.
# puppet-enterprise
s
This message was deleted.
t
This job does not appear in orch api.
How can we remove this already deleted job?
Note: new PE server has been installed from backup of old pe server.
Query from postgresql:
Copy code
pe-orchestrator=# select id, scheduled_job_id, enabled from scheduled_job_snapshots;
 id | scheduled_job_id | enabled
----+------------------+---------
  1 |                1 | t
  2 |                2 | t
  3 |                3 | t
  4 |                4 | t
  5 |                5 | t
  6 |                6 | t
  7 |                7 | t
  8 |                7 | f
  9 |                8 | t
 10 |                8 | f
 11 |                9 | t
 12 |                9 | f
 13 |               10 | t
 14 |               11 | t
 15 |               11 | f
 16 |               10 | f
Scheduled Job IDs 7 und 8 are running, even enable is set to “f”. Job IDs 9 to 11 were disabled and are gone.
Differences between job 8 und 9:
Job 8:
Copy code
"description" : "production_prd description"
"schedule" : {
  "interval" : {
    "units" : "seconds", 
    "value" : 86400
  }
},
"next_run" : { 
  "time" : "2022-10-31T21:30:00.000Z"
  }
}
Job 9:
Copy code
"description" : "server: reboot", 
"schedule" : { 
  "interval" : null 
},
"next_run" : null,
d
@tuxmea will ping this in the internal PE and support channels too
a
Hello, could I ask if this is 2021.7.0 or 2021.7.1?
t
2021.7.0
the .1 release came shortyl after upgrade
a
Ok thanks. There was a new Scheduler API released in 2021.7.0. Unfortunately this had a bug that allowed some deleted/deactivated scheduled jobs to continue running. We had seen this with jobs on a recurring schedule, but not one-time scheduled jobs. The bug was fixed in 2021.7.1, but I need to confirm whether that fix would also apply to this situation.
t
Hi @April Murphy the bug description perfectly fits to what we see at the customer. Many thanks for taking care. I have advised the customer to not do an update, until we have the go from puppet.
👍 2
a
Hi @tuxmea They should be good to go with the upgrade. The bug fix added purging conditions for any deactivated jobs.
t
Hi @April Murphy many thanks for the fast reply. Customer has been advised to upgrade to PE 2021.7.1.
Hi @April Murphy update to 2021.7.1 solved the issue. Many thanks for your support.
🎉 2
youre welcome 1