<p dir="auto">Example failure at<br>
<a href="https://app.shippable.com/builds/55b327486572ba0c00576d31" rel="nofollow">https://app.shippable.com/builds/55b327486572ba0c00576d31</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- FAIL: TestDQ_always_pop_earliest_deadline (23.77 seconds)
delay_test.go:256: Expected delay-prority of 1s got instead got 2s
FAIL
coverage: 64.9% of statements
FAIL    github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/pkg/queue   92.958s"><pre class="notranslate"><code class="notranslate">--- FAIL: TestDQ_always_pop_earliest_deadline (23.77 seconds)
delay_test.go:256: Expected delay-prority of 1s got instead got 2s
FAIL
coverage: 64.9% of statements
FAIL    github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/pkg/queue   92.958s
</code></pre></div>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/karlkfi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/karlkfi">@karlkfi</a></p>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.0&quot;, GitCommit:&quot;a16c0a7f71a6f93c7e0f222d961f4675cd97a46b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-09-26T18:16:57Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.0&quot;, GitCommit:&quot;a16c0a7f71a6f93c7e0f222d961f4675cd97a46b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-09-26T18:10:32Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: AWS</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Debian GNU/Linux 8 (jessie)</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">Deployed a scheduled job from this manifest:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
apiVersion: batch/v2alpha1
kind: ScheduledJob
metadata:
  name: expire-documents
spec:
  schedule: 15,45 * * * *
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: expire-documents-job
            image: registry.example.com/base:alpine
            imagePullPolicy: Always
            args:
            - curl
            - -XPOST
            - -v
            - http://document.stage.svc.example.cluster:8080/admin/tasks/expire-documents
          restartPolicy: OnFailure

          imagePullSecrets:
          - name: my-registry"><pre class="notranslate"><code class="notranslate">
---
apiVersion: batch/v2alpha1
kind: ScheduledJob
metadata:
  name: expire-documents
spec:
  schedule: 15,45 * * * *
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: expire-documents-job
            image: registry.example.com/base:alpine
            imagePullPolicy: Always
            args:
            - curl
            - -XPOST
            - -v
            - http://document.stage.svc.example.cluster:8080/admin/tasks/expire-documents
          restartPolicy: OnFailure

          imagePullSecrets:
          - name: my-registry
</code></pre></div>
<p dir="auto">After some time the jobs are no longer executed:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl --namespace stage describe scheduledjobs
Name:               expire-documents
Namespace:          stage
Schedule:           15,45 * * * *
Concurrency Policy:     Allow
Suspend:            False
Starting Deadline Seconds:  &lt;unset&gt;
Image(s):           registry.example.com/base:alpine
Selector:           &lt;unset&gt;
Parallelism:            &lt;unset&gt;
Completions:            &lt;unset&gt;
No volumes.
Labels:         &lt;none&gt;
Last Schedule Time: Sat, 08 Oct 2016 18:15:00 +0200
Active Jobs:        &lt;none&gt;
Events:
  FirstSeen LastSeen    Count   From                SubobjectPath   Type        Reason      Message
  --------- --------    -----   ----                -------------   --------    ------      -------
  1h        31m     178 {scheduled-job-controller }         Warning     FailedCreate    Error creating job: jobs.batch &quot;expire-documents-1858111306&quot; already exists
  30m       1m      177 {scheduled-job-controller }         Warning     FailedCreate    Error creating job: jobs.batch &quot;expire-documents-1858242378&quot; already exists
  8h        1m      14  {scheduled-job-controller }         Warning     FailedCreate    (events with common reason combined)
  56s       6s      6   {scheduled-job-controller }         Warning     FailedCreate    Error creating job: jobs.batch &quot;expire-documents-1400211256&quot; already exists"><pre class="notranslate"><code class="notranslate">kubectl --namespace stage describe scheduledjobs
Name:               expire-documents
Namespace:          stage
Schedule:           15,45 * * * *
Concurrency Policy:     Allow
Suspend:            False
Starting Deadline Seconds:  &lt;unset&gt;
Image(s):           registry.example.com/base:alpine
Selector:           &lt;unset&gt;
Parallelism:            &lt;unset&gt;
Completions:            &lt;unset&gt;
No volumes.
Labels:         &lt;none&gt;
Last Schedule Time: Sat, 08 Oct 2016 18:15:00 +0200
Active Jobs:        &lt;none&gt;
Events:
  FirstSeen LastSeen    Count   From                SubobjectPath   Type        Reason      Message
  --------- --------    -----   ----                -------------   --------    ------      -------
  1h        31m     178 {scheduled-job-controller }         Warning     FailedCreate    Error creating job: jobs.batch "expire-documents-1858111306" already exists
  30m       1m      177 {scheduled-job-controller }         Warning     FailedCreate    Error creating job: jobs.batch "expire-documents-1858242378" already exists
  8h        1m      14  {scheduled-job-controller }         Warning     FailedCreate    (events with common reason combined)
  56s       6s      6   {scheduled-job-controller }         Warning     FailedCreate    Error creating job: jobs.batch "expire-documents-1400211256" already exists
</code></pre></div>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">Jobs are executed as defined in the manifest.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<p dir="auto">Deploy a scheduled job and wait for some time.</p>