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 ability to add cron jobs #134

Open
CodeShakingSheep opened this issue Jan 18, 2024 · 1 comment
Open

Add ability to add cron jobs #134

CodeShakingSheep opened this issue Jan 18, 2024 · 1 comment

Comments

@CodeShakingSheep
Copy link
Member

I would like to be able to add a predefined cron file during installation or in the config panel. The idea is that the user provides the cron content upon installation or in the config panel, such as

59 23 28-31 * * my_webapp curl ${{APP_URL}}/api/cron/monthlyDigestEmail -X POST -H 'content-type: application/json' -H 'authorization: ${{CRON_API_KEY}}' --fail
*/15 * * * * my_webapp curl ${{APP_URL}}/api/cron/workflows/scheduleEmailReminders -X POST -H 'content-type: application/json' -H 'authorization: ${{CRON_API_KEY}}' -sSf

Then the app automatically creates a file for it in /etc/cron.d with respective permissions.

@alexAubin
Copy link
Member

Hmf this feels outside of the scope of what this app is intended for :|

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

No branches or pull requests

2 participants