<p>I am trying out parallelism on Kubernetes for the first time. Currently the job does some actions for each user in a SQL database. I have setup a work queue so all jobs know what user to process.</p>
<p>Currently my CronJob Yaml file is:</p>
<pre><code>apiVersion: batch/v1
kind: CronJob
metadata:
  name: messagequeue
spec:
  schedule: &quot;0 1 * * *&quot;
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      parallelism: 5 &lt;-- i need to change this based on user count
      template:
        metadata:
          name: messagequeue
        spec:
          containers:
          - name: c
            image: *image*
          restartPolicy: OnFailure
</code></pre>
<p>I use 'parallelism: 5' because i have 5 active users in the database. Is there a way to change the parallelism count on the fly?</p>

Joey
<p>update concurrent policy to ALLOW as given below.</p>
<pre><code>  concurrencyPolicy: Allow   
</code></pre>
