The Chronos documentation says Chronos support "scheduleTimeZone", and it has high priority. I defined the job as the following.
{
"schedule": "R1/2017-03-11T17:25:00Z/PT12H",
"scheduleTimeZone": "PST",
"name": "samplejob",
"epsilon": "PT15M",
"command": "/bin/date; sleep 3; echo 'helloy'",
"owner": "bob@vmware.com",
"cpus": "0.2",
"mem": "256",
"async": false
}
I expected the job to start in five minutes. However the UI showed that the job is OVERDUE. But then I manually started the job. After the job succeeded, the UI showed that the next run is in 4 minutes. (The execution of the job took about 1 minute.)
Then I defined the job as the following.
{
"schedule": "R1/2017-03-11T17:25:00-08:00/PT12H",
"name": "samplejob",
"epsilon": "PT15M",
"command": "/bin/date; sleep 3; echo 'helloy'",
"owner": "bob@vmware.com",
"cpus": "0.2",
"mem": "256",
"async": false
}
The UI showed that the job will start in 3 minutes. (Another one minute just passed for creating a new job.)
It seems that the UI is not handling the "scheduleTimeZone" correctly at the first time.
I observed the following in Chronos v3.0.0.
The Chronos documentation says Chronos support "scheduleTimeZone", and it has high priority. I defined the job as the following. { "schedule": "R1/2017-03-11T17:25:00Z/PT12H", "scheduleTimeZone": "PST", "name": "samplejob", "epsilon": "PT15M", "command": "/bin/date; sleep 3; echo 'helloy'", "owner": "bob@vmware.com", "cpus": "0.2", "mem": "256", "async": false } I expected the job to start in five minutes. However the UI showed that the job is OVERDUE. But then I manually started the job. After the job succeeded, the UI showed that the next run is in 4 minutes. (The execution of the job took about 1 minute.)
Then I defined the job as the following. { "schedule": "R1/2017-03-11T17:25:00-08:00/PT12H", "name": "samplejob", "epsilon": "PT15M", "command": "/bin/date; sleep 3; echo 'helloy'", "owner": "bob@vmware.com", "cpus": "0.2", "mem": "256", "async": false } The UI showed that the job will start in 3 minutes. (Another one minute just passed for creating a new job.)
It seems that the UI is not handling the "scheduleTimeZone" correctly at the first time.