-
Notifications
You must be signed in to change notification settings - Fork 1
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
DB stored tasks #12
Comments
Hello, Tsmgeek, thank you for your suggestions. First of all I would like to point out that Crunz-ui was created specifically to be used with Crunz. In the company where I work, we needed a quick workaround to allow even less skilled developers to load tasks into the system even without using ftp uploads. It is interesting your proposal to use a DB to save the tasks and I imagine the logs too. However, you must also consider that Crunz-ui is only a graphical interface that uses Crunz as an engine to launch the programmed tasks. Crunz has a process that runs every minute. The process checks if there are tasks compatible with the launch date and time and, if any, runs them through the Php present in the system. Saving the tasks in DB would mean, every minute, having to read all the tasks scheduled for that date and time and having to write them to the filesystem to prepare them for the Crunz process,but as you well know the file system writing procedure is considerably slow. Could you suggest me the apps that save cron in db that you have experienced? Regarding the problem you reported, I have no experience with Phpfpm server. However, we have installed Crunz-ui on a Docker.
The called script performed, on the Doker image, the following operation
Crunz-ui was then configured to use, for saving the logs, a folder configured as writable at the time of generating the logs. I am available to verify the installation on your docker systems. |
Dkron/Rundek etc are some other packages that can execute code and get logs but not PHP specific. We have a app that has a distributed load farm on phpfpm, it does not matter its phpfpm just that it runs across multiple servers and the crons are on several other servers depending on their tasks. Splitting the 1:1 link between the UI and backend may be quite useful as then your UI can be on a public facing system but the backend "manager" sits on each of your registered cron servers which can stay private, it shuttles config/logs back and forth so the UI can operate independently elsewhere. |
Is your feature request related to a problem? Please describe.
Can't be used if running on phpfpm server farm with separate backends or in docker deploys with no shared storage.
Describe the solution you'd like
Store all takes in DB, deploy to tasks directory via cron script, also updates/deletes tasks as needed.
This could then extend to allowing you to assign tasks to specific nodes or distribute tasks etc as possible future features.
Describe alternatives you've considered
There are other apps that store crons in DB, just not the power of crunz and many are old and just support exec, not php functions.
Additional context
N/a
The text was updated successfully, but these errors were encountered: