XF 2.0 Added Cron gets deleted on upgrade?

sip

Active member
I had added a duplicate of account promotions cron so that account promotions run every half an hr (original + new)
But, today I found that the added one was not there.
Does upgrade remove the manually added cron?
I'll keep a watch on this during next upgrade.
 
If you assigned it to the XF add on it would be removed, yes.

You would need to assign it to your own add on or just leave the add on ID field blank.
 
If you assigned it to the XF add on it would be removed, yes.

You would need to assign it to your own add on or just leave the add on ID field blank.
I duplicated the Promotions cron with a different Cron entry ID.
I deleted it and then tried to add again
I do not see any add on id provison.

Cron callback : XF\Cron\UserGroupPromotion :: runPromotions

That's the only reference to XF.
Basically, I want to run promotions cron every 30 minutes.
 
Ok I enabled debug mode
The Add on is blank. I am sure it must have been blank earlier also as the cron was set in non debug mode
 

Attachments

  • addon.webp
    addon.webp
    6.9 KB · Views: 4
If you create it as normal and then look in the xf_cron table in the database does it have a value under addon_id?
Yes the column is blank.
Last time also I had set in non debug mode so I presume that the col would have been blank
But, RC2 --> RC3 wiped that cron from db

Will keep a watch and see how things go on next upgrade.
 
Yeah let us know. I just double checked the code surrounding add-on data and almost certainly custom entries (ones with no add-on IDs) should never be touched.
 
  • Like
Reactions: sip
Back
Top Bottom