Pipelines stuck in running state

Summary

Some of the pipelines are stuck in the running state, even when all jobs are already completed/cancelled.

Steps to reproduce

Unknown.

What is the current bug behavior?

Some pipelines are stuck in the running state.

What is the expected correct behavior?

Pipelines should be marked as completed. Or at least there should be a option to complete/remove pipeline manually.

Relevant logs and/or screenshots

Screen_Shot_2017-03-03_at_23.51.44

Output of checks

Results of GitLab environment info

System information
System:		Ubuntu 16.04
Current User:	git
Using RVM:	no
Ruby Version:	2.3.3p222
Gem Version:	2.6.6
Bundler Version:1.13.7
Rake Version:	10.5.0
Sidekiq Version:4.2.7

GitLab information
Version:	8.16.6
Revision:	65cdbdd
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	postgresql
URL:		[xxx]
HTTP Clone URL:	[xxx]
SSH Clone URL:	[xxx]
Using LDAP:	no
Using Omniauth:	no

GitLab Shell
Version:	4.1.1
Repository storage paths:
- default: 	/var/opt/gitlab/git-data/repositories
Hooks:		/opt/gitlab/embedded/service/gitlab-shell/hooks/
Git:		/opt/gitlab/embedded/bin/git

Results of GitLab application Check

Checking GitLab Shell ...

GitLab Shell version >= 4.1.1 ? ... OK (4.1.1)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ... 
3/1 ... repository is empty
3/2 ... ok
2/3 ... ok
5/4 ... ok
2/5 ... ok
2/6 ... ok
2/7 ... ok
7/8 ... ok
2/9 ... ok
2/10 ... ok
2/11 ... ok
2/12 ... ok
2/13 ... ok
2/14 ... ok
2/15 ... ok
2/16 ... ok
2/17 ... ok
2/19 ... ok
2/20 ... ok
2/21 ... ok
2/22 ... ok
2/23 ... ok
2/25 ... ok
2/27 ... ok
2/30 ... ok
2/31 ... ok
2/34 ... ok
2/35 ... ok
2/36 ... ok
2/37 ... ok
2/38 ... ok
2/45 ... ok
2/46 ... ok
2/49 ... ok
2/52 ... ok
2/57 ... ok
2/59 ... ok
2/63 ... ok
2/66 ... ok
7/72 ... ok
2/73 ... ok
2/74 ... ok
2/75 ... ok
5/76 ... repository is empty
2/77 ... ok
2/78 ... ok
2/79 ... ok
2/80 ... ok
2/81 ... repository is empty
2/82 ... ok
2/83 ... ok
2/84 ... ok
2/85 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Reply by email ...

Reply by email is disabled in config/gitlab.yml

Checking Reply by email ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... skipped (no tmp uploads folder yet)
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ... 
3/1 ... yes
3/2 ... yes
2/3 ... yes
5/4 ... yes
2/5 ... yes
2/6 ... yes
2/7 ... yes
7/8 ... yes
2/9 ... yes
2/10 ... yes
2/11 ... yes
2/12 ... yes
2/13 ... yes
2/14 ... yes
2/15 ... yes
2/16 ... yes
2/17 ... yes
2/19 ... yes
2/20 ... yes
2/21 ... yes
2/22 ... yes
2/23 ... yes
2/25 ... yes
2/27 ... yes
2/30 ... yes
2/31 ... yes
2/34 ... yes
2/35 ... yes
2/36 ... yes
2/37 ... yes
2/38 ... yes
2/45 ... yes
2/46 ... yes
2/49 ... yes
2/52 ... yes
2/57 ... yes
2/59 ... yes
2/63 ... yes
2/66 ... yes
7/72 ... yes
2/73 ... yes
2/74 ... yes
2/75 ... yes
5/76 ... yes
2/77 ... yes
2/78 ... yes
2/79 ... yes
2/80 ... yes
2/81 ... yes
2/82 ... yes
2/83 ... yes
2/84 ... yes
2/85 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.3)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.10.2)
Active users: 5

Checking GitLab ... Finished
Assignee Loading
Time tracking Loading