Goldinteractive / craft-sitecopy

Other
2 stars 5 forks source link

[Feature] Allow users to set the queue priority #8

Closed Alxmerino closed 11 months ago

Alxmerino commented 11 months ago

Pull Request: Feature Implementation

Why?

When someone copies an entry's content to one or more other locales, the plugin generates a queue job to do the work. Since it uses the default priority level of 1024, if there are a lot of other slow-running items in the queue (such as Blitz generation jobs), it can take a long time to run, which causes frustration for the content editors.

How?

This PR adds a new setting option that allows administrators to set a queue priority to the plugin jobs if they desire. It defaults to 1024 which it's Craft's default.

Gif Tax

priorities-priority

lukasNo1 commented 11 months ago

Looks good to me!

I'll publish a new release with this update.