title: JobIntentService job ID globally unique or scoped by the class?
body: <p>Documentation implies it's scoped per the service class:</p>
  
  <blockquote>
    <p>A unique job ID for scheduling; must be the same value for all work
    enqueued for the same class.</p>
  </blockquote>
  
  <p>However, I have two services with their <code>JOB_ID</code>, and <code>enqueWork()</code> as:</p>
  
  <pre><code>  companion object {
      private const val JOB_ID = 1
  
      fun enqueueWork(context: Context, action: String) {
        enqueueWork(context, Svc1::class.java, JOB_ID, Intent(action))
      }
    }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>  companion object {
      private const val JOB_ID = 1
  
      fun enqueueWork(context: Context, action: String) {
        enqueueWork(context, Svc2::class.java, JOB_ID, Intent(action))
      }
    }
  </code></pre>
  
  <p>when I start both the services at boot (probably around the same time) <code>Svc2</code> runs 2x. Changing <code>Svc2</code>'s JOB_ID to 2 solves the problem.</p>
  
  <p>If it's NOT scoped by the service class, that's awful as it means every service needs to be aware of the implementation of every other service in the same app.</p>
  
  <p>?</p>