Answers.Body: <p>You can develop your own cron trigger. There is no tutorial for that but take a look at the daily group membership cron trigger. </p>
  
  <p>But as Pradeep suggested also take a look at the membership status rules and enable the update membership status cron.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-14T19:50:28.037Z
Answers.LastActivityDate: 2018-08-14T19:50:28.037Z
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Answers.Body: <p>You can set the Membership status rule to end date as 40 days for pending status. But i am not confident that pending memberships are actually processed by 'Update Membership statuses' cron job.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-14T14:59:18.487Z
Answers.LastActivityDate: 2018-08-14T14:59:18.487Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>How can i set the trigger event to be a daily cron on memberships? </p>
  
  <p>Goal is to check all memberships that has status pending for more than 40 days, if yes then change status to expired. I understand it would be a custom condition and action.</p>
  
Tags: <civimember><civirules>
Title: How to setup cron trigger in CiviRules extension
ThreadText: # How to setup cron trigger in CiviRules extension
  
  (Asked by: username_0 on 2018-08-14)
  
  How can i set the trigger event to be a daily cron on memberships?
  
  Goal is to check all memberships that has status pending for more than 40 days, if yes then change status to expired. I understand it would be a custom condition and action.
  
  **Tags:** civimember, civirules
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-08-14. Score: 2
  
  You can develop your own cron trigger. There is no tutorial for that but take a look at the daily group membership cron trigger.
  
  But as username_2 suggested also take a look at the membership status rules and enable the update membership status cron.
  
  
  ---
  
  ### Answer by username_2 on 2018-08-14. Score: 1
  
  You can set the Membership status rule to end date as 40 days for pending status. But i am not confident that pending memberships are actually processed by 'Update Membership statuses' cron job.
  
  
  ---
  
  