Hot answers tagged

2

As per the docs at https://craftcms.com/docs/3.x/extend/element-types.html#saving-custom-field-values When saving values on a custom field, always use the setFieldValue() or setFieldValues() methods rather than directly accessing the field handle as a property on the element object. This ensures the value is normalized and marked as dirty for delta saves. $...


1

The priority option is for setting the jobs in priority order before they start. A job that is already running will not be interrupted for a more important one. I would suggest setting up another queue for the longer tasks. That way, your smaller tasks can continue to run separate to the more demanding ones. There is some guidance on how to do this on an ...


Only top voted, non community-wiki answers of a minimum length are eligible