# Cron trigger does not kick in

**URL:** https://drone.discourse.group/t/cron-trigger-does-not-kick-in/10858
**Category:** Drone Support
**Created:** [June 24, 2021, 3:17pm UTC](https://drone.discourse.group/t/cron-trigger-does-not-kick-in/10858 "2021-06-24T15:17:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Manivannan\_V](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/manivannan_v/32/1597_2.png) [@Manivannan\_V](https://drone.discourse.group/u/Manivannan_V)
#### Post date: [June 24, 2021, 3:17pm UTC](https://drone.discourse.group/t/cron-trigger-does-not-kick-in/10858/1 "2021-06-24T15:17:36Z")

</div>

Hi,

Thanks for the help so far guys. I’m stuck at another one.

I’ve set up a cron job named ‘daily’ using drone cli say with cron expression: “0 30 13 \* \* ?” in GMT timezone. This cron is under repository/my-project. I’ve specified the trigger in the my-project under trigger entry in .drone.yml.

But the trigger does not kick at the specified time. Any idea of what could be wrong?

If I remove the cron trigger from .drone.yml immediate push kicks off the build.

> kind: pipeline  
> name: default
> 
> platform:  
> os: linux  
> arch: amd64
> 
> clone:  
> disable: true
> 
> steps:
> 
> - name: clone  
> image: docker:git  
> commands:
> 
> - name: publish  
> image: plugins/ecr  
> settings:  
> dockerfile: xx/Dockerfile  
> region: us-west-2  
> registry: [xxxx.dkr.ecr.us-west-2.amazonaws.com](http://xxxx.dkr.ecr.us-west-2.amazonaws.com)  
> repo: [xxx.dkr.ecr.us-west-2.amazonaws.com/yy](http://xxx.dkr.ecr.us-west-2.amazonaws.com/yy)  
> tags:
> 
> volumes:
> 
> - name: docker\_socket  
> host:  
> path: /var/run/docker.sock
> 
> trigger:  
> event:
> 
> - cron  
> cron:
> - daily  
> …

---

<div class="post-metadata">

### Author: ![csgitharness](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/csgitharness/32/904_2.png) [@csgitharness](https://drone.discourse.group/u/csgitharness)
#### Post date: [June 29, 2021, 12:11pm UTC](https://drone.discourse.group/t/cron-trigger-does-not-kick-in/10858/2 "2021-06-29T12:11:09Z")

</div>

@manivannan_v,

Could you please confirm if you are using cloud drone or self hosted drone setup, If its self hosted drone setup please share the debug server logs for our analysis.

---

<div class="post-metadata">

### Author: ![Manivannan\_V](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/manivannan_v/32/1597_2.png) [@Manivannan\_V](https://drone.discourse.group/u/Manivannan_V)
#### Post date: [June 29, 2021, 2:01pm UTC](https://drone.discourse.group/t/cron-trigger-does-not-kick-in/10858/3 "2021-06-29T14:01:37Z")

</div>

Thanks for the response.

Sorry, I should have updated earlier. I had not given the branch name while creating a cron trigger. Once I recreated the cron with branch name it started working as I expected.
