We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

ATF - Execute ATF suites via API calls generated CICD adhoc schedule and won't delett

Not applicable

Hi Community,

We used API calls to trigger ATF suites to run, but found it will create "CICD adhoc schedule" in table sys_atf_schedule, can won't delete it. It's a defect on ServiceNow or what your suggestion to handle them?

 

Thanks, 
Daisy

2 REPLIES 2

Shaqeel
Mega Sage

Hi @Community Alums 

 

This actually happens when you hit ATF run API, ServiceNow actually creates an ad-hoc execution record in the table sys_atf_schedule.

This happens because APi calls test suite does not run directly instead, it queues the the run by creating an ad-hoc schedule.. The ATF runner service job then picks it up and executes it just like a background scheduled job.

That is why you see these CICD adhoc schedules entries.


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Not applicable

@Shaqeel  if so, then I need to create a scheduled job to clean-up those ad-hoc scheduled suites to keep the envrnioment, right?

 

BRs,
Daisy