You can use the Running Tasks module to view and terminate running tasks. You can filter running tasks by application, server, user, task performed, and task status.
By default, running tasks remain in the database for 900 seconds (15 minutes). You can change the default time by modifying the AutoClearDeadTasksAfterSeconds setting. See Configuration Settings.