Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Daisy Huang
Tera Contributor

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
Mega Sage

Hi @Daisy Huang 

 

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

@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