it's part of the backing store.stop teamsitedelete worklow directory from the backing storestart teamsite
use strict;use TeamSite::Config;use TeamSite::WFsystem;my $iwhome = TeamSite::Config::iwgethome();my $wfs = new TeamSite::WFsystem();my @jobids = ();push(@jobids, $_->GetId()) foreach (@{$wfs->GetWorkflows()});print "No Jobs to remove\n" and exit(0) if (!@jobids);# This loop is to avoid problems where there are more jobids# than can fit on a single command line. It slows things up# a tiny bit, but it's better than failing outrightwhile(@jobids){ my $jobids = ""; while(length($jobids) < 200){ $jobids .= shift(@jobids) . " "; } `$iwhome/bin/iwrmjob $jobids`; print "$jobids\n";}exit(0);
You can also delete your jobs with a perl script. Someone posted this a while back but I don't remember who it was. use strict;use TeamSite::Config;use TeamSite::WFsystem;my $iwhome = TeamSite::Config::iwgethome();my $wfs = new TeamSite::WFsystem();my @jobids = ();push(@jobids, $_->GetId()) foreach (@{$wfs->GetWorkflows()});print "No Jobs to remove\n" and exit(0) if (!@jobids);# This loop is to avoid problems where there are more jobids# than can fit on a single command line. It slows things up# a tiny bit, but it's better than failing outrightwhile(@jobids){ my $jobids = ""; while(length($jobids) < 200){ $jobids .= shift(@jobids) . " "; } `$iwhome/bin/iwrmjob $jobids`; print "$jobids\n";}exit(0);
I think you have to pass job IDs for this script to work? To make it more efficient, add few lines of code to build a list of all active jobs.First, get list of active tasks using CTL iwquerytasks, then get parent job id using $Task->GetWorkflowId() for each task id. this might result in duplicate job ids so you will have to remove duplicates. now you are left with list of active job and you can choose to delete all of them or delete by some condition (date, owner...)
Did you read the code?It retrieves a list of all the active jobs (not tasks) and builds up command lines to delete those jobs using iwrmjob
push(@jobids, $_->GetId()) foreach (@{$wfs->GetWorkflows()});
Found this script on a forum: ...