> On 12 Sep 2022, at 7:14 pm, 'Branson, GaBriella C' via TopBraid Suite Users > <[email protected]> wrote: > > Thanks, John. I have yet to test it out as our EDG is hanging up on us…but I > can see from the logs that our cancel was behaving as expected - now to get > into the collection and edit the import per your instructions. > > Do you have any advice on cancelling a massive load of workflows? There are > over 800 that have been created because of this scheduled import.
One way to batch-delete hundreds of workflows is by going to the SPARQL endpoint page .../tbl/sparql as administrator, assuming SPARQL Updates are enabled in the advanced server configuration parameters. In the drop down below the query editor field, select the Default Graph to be like urn:x-evn-master:XY.tch where XY is the ID of your asset collection - this is the part before the .editor in the URL of the main editor. For example for the geography taxonomy this would be urn:x-evn-master:geo.tch - note the .tch is the graph containing the metadata about the workflows. Then, to delete all workflows, run these queries in sequence. # Delete all added and deleted triples from all workflows PREFIX teamwork: <http://topbraid.org/teamwork#> DELETE { ?triple ?p ?o . } WHERE { ?tag a teamwork:Tag . ?change teamwork:tag ?tag . ?change teamwork:added|teamwork:deleted ?triple . ?triple ?p ?o . } # Delete other change metadata PREFIX teamwork: <http://topbraid.org/teamwork#> DELETE { ?change ?p ?o . } WHERE { ?tag a teamwork:Tag . ?change teamwork:tag ?tag . ?change ?p ?o . } # Delete status transitions PREFIX teamwork: <http://topbraid.org/teamwork#> DELETE { ?sc ?p ?o . } WHERE { ?tag a teamwork:Tag . ?tag teamwork:statusChange ?sc . ?sc ?p ?o . } # Delete workflow itself PREFIX teamwork: <http://topbraid.org/teamwork#> DELETE { ?tag ?p ?o . } WHERE { ?tag a teamwork:Tag . ?tag ?p ?o . } There are ways to automate this using scripts, but in your version this would require uploading SWP files which I didn't want to require. Note that the above will delete *all* workflows including past ones. To only delete certain workflows, you'd need to filter the ?tag by some criteria such as by creation date. Let me know if you need that step as well. NB: From versions 7.3 onwards, the above could be automated much more easily using the (ADS) Script Editor panel: tbs.workflows().forEach(tbs.deleteWorkflow) HTH Holger > > GaBriella Branson > Wildland Fire Data Management Program - Knowledge Manager > > Stay Connected! Sign up to receive email updates from the Wildland Fire Data > Management Program > <https://public.govdelivery.com/accounts/USDOI/subscriber/new?qsp=USDOI_6> > > From: [email protected] <[email protected]>On > Behalf Of John Beard > Sent: Monday, September 12, 2022 9:06 AM > To: TopBraid Suite Users <[email protected]> > Subject: [EXTERNAL] [topbraid-users] Re: Cancel Scheduled Import > > > > This email has been received from outside of DOI - Use caution before > clicking on links, opening attachments, or responding. > > > > Hi GaBriella, > > The cancel button only cancels the currently executing job. To cancel future > executions you need to edit the job configuration in the data asset > collection and clear the cron expression field. > On Monday, September 12, 2022 at 12:33:22 PM UTC-4 [email protected] > <mailto:[email protected]>wrote: > We had a user schedule a JDBC import to occur every five minutes and it is > causing a few issues. I have gone into Scheduled Jobs under Server > Administration and attempted to hit the cancel button: > > > But the screen merely flashes and the import continues to run. Am I supposed > to be cancelling from within the collection? > > Thanks in advance. > -- > You received this message because you are subscribed to a topic in the Google > Groups "TopBraid Suite Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/topbraid-users/aGy6uYlFKUE/unsubscribe > <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Ftopbraid-users%2FaGy6uYlFKUE%2Funsubscribe&data=05%7C01%7Cgabriella_branson%40ios.doi.gov%7Cd89b3d78ab4c49540d4208da94e14306%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C637985992462661722%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EuasIh%2B0PgyaUkyUlqe6thUSZJLI8ntIdwrIWdAPTBE%3D&reserved=0>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/b64f332d-0d43-48e8-8b1e-9d46569dcfeen%40googlegroups.com > > <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Ftopbraid-users%2Fb64f332d-0d43-48e8-8b1e-9d46569dcfeen%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cgabriella_branson%40ios.doi.gov%7Cd89b3d78ab4c49540d4208da94e14306%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C637985992462661722%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8PE0TfCra78EV5T1tE8k0re%2FElFowMD6a9IPk3cAONc%3D&reserved=0>. > > -- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/CO6PR09MB7319B24850E0941F919A95FDDA449%40CO6PR09MB7319.namprd09.prod.outlook.com > > <https://groups.google.com/d/msgid/topbraid-users/CO6PR09MB7319B24850E0941F919A95FDDA449%40CO6PR09MB7319.namprd09.prod.outlook.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/099F5162-1BFC-449D-8390-9DC1B1718098%40topquadrant.com.
