Hi everyone. I started to use CircleCI in December, last year but I could not solve what I wanted so I tried other tools like the automated build Docker Hub. It was fine for one of my images but not for an other, so I am here again, since CircleCI has scheduled workflows and pipeline variables so I can have different build process based on whether it was trigged by git push or a cron job. I have spent days to improve my scripts and you can see many failed attempts in the list of the builds, but it finally works and the result is
itsziget/httpd24 on Docker Hub.
So in this post I am not asking for help to build my Docker image, but I noticed that scheduled builds are delayed. The documentations mentions, that
Note: Scheduled workflows may be delayed by up to 15 minutes. This is done to maintain reliability during busy times such as 12:00am UTC. Scheduled workflows should not assume they are started with to-the-minute accuracy.
Although at first I thought the build would not start at all, later I realized it actually ran. I searched for this in the documentation and I found what I quoted above. However, my build was scheduled at 02:00 AM UTC, but it ran about 45 minutes later, which is more than 15 minutes. I can accept it, so no real poblem here, but I don’t know if
- it is intentional and the documentation was not updated or
- it should have started the build until 02:15 AM UTC but some unknown conditions affected the scheduling or
- There are different delays mentioned somewhere in the documentation whcih I could not find yet
I tried to search for “nightly delay”, “sheduled delay”, “nightly”, “scheduled” on the forum, but I could not find the answer so far.
If you go to the project and check the build step, you can see that I logged the event type and the time:
-- [info] -- Event type: cron -- [info] -- Run cron job -- [info] -- Current local time: 2022-07-18 02:47:39 UTC -- [info] -- Current UTC time: 2022-07-18 02:47:39 UTC
The event type is actually a pipeline parameter in the trigger definition. I configured the scheduler from the Web UI not in my
config.yml which is this:
On the Web UI I have this configuration:
Repeats on these days: Select All
Start Time: 2:00 UTC
Repeats Per Hour: 1
- Is this 45 minute delay normal?
- Is there a documentation mentioning this 45 minute delay which I could not find?
- Would it be different if I configured the cron job in my
config.yml? I know I could test it and maybe I will later.