Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auto-publish/auto-retract cron script #581

Merged
merged 6 commits into from
Jan 16, 2024

Conversation

miknevinas
Copy link
Contributor

This script auto-publishes and retracts content based on specified dates in the 'Dates' tab.

It is assumed that this cron job will run every 30 minutes, as dates can be specified in 30-minute intervals.

The 'admin' user needed to be set to query private documents locally, this can probably be removed.

Copy link
Contributor

@zombified zombified left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also want a method like https://github.com/castlecms/castle.cms/blob/master/castle/cms/cron/__init__.py#L119-L120 in the castle/cms/cront/init.py file

and a reference to that method like https://github.com/castlecms/castle.cms/blob/master/setup.py#L135 in the setup.py file

so we can have a bin script generated for it

castle/cms/cron/_auto_publish_retract.py Outdated Show resolved Hide resolved
castle/cms/cron/_auto_publish_retract.py Outdated Show resolved Hide resolved
@zombified zombified merged commit aae43a0 into master Jan 16, 2024
3 checks passed
@zombified zombified deleted the am/auto-publish-retract-cron branch January 16, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants