I have a Triggered Rule that is fired on "Content is going to be saved". What it should do is look at the content type, and if that passes, delete any scheduled task based on that node ID, and schedule the "Publish Ruleset".
The "Publish Ruleset" then is fired, which calls a Schedule Expire Node rule, and Schedule Node Publish rule. The first one schedules another task based on an Expiration CCK Date field, the second publishes the node based on a Publish CCK Date field.
Anytime these rules are fired, any other scheduled tasks with the same node ID are deleted.
Some times nodes are published when they should be, some times they are not, and they don't seem to be unpublished with consistency either.
Is it too specific to have the CCK Date fields using time as well as date for the rule? Should it just be a date without specifying time?
I am having trouble figuring out if this is the correct way to automate the publishing and unpublishing of content with Rules.
I modelled the Rule after this tutorial:
What I am seeing is sometimes the tasks are scheduled correctly, and the nodes in question are published (or unpublished). The queue never seems to clear itself though. Does Rules know that it can't publish something that is already published, or does it evaluate everything in the queue anyway?
Has anyone found a good way to handle this?