-
Notifications
You must be signed in to change notification settings - Fork 202
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 or update cron tasks and optional job parameters. #1
Conversation
…on the cron form.
…oblem with run now.
Great contribution! I also had something like this in mind for a long time now. I will review your code soon and if you don't mind I will merge it into the module. |
Yes, that would be great. Thanks. |
Hi Jason, I had a short review on your code. Works fine (besides the Cds_Log. See inline comment). I've some remarks:
|
Yes the Cds_Log is debugging code. I have removed this from my fork. Here are my answers and comments to your remarks.
Thanks for the feedback. |
Hi Jason, are you still working on your version? I'd really like to see your features merged to the original module. I think deleting tasks is the most importing missing feature. Separating "General" and "Settings" is ok, but how could I add optional parameters to my cron task? And how would I be able to access them inside the cron task implementation? To you have an example for this feature? About the enabling/disabling thing: Do you see an easy way to change this to match the rest of the customization of a cron task? For the string/select field of model/method configuration: Would be nice to benefit from both: Being able to choose a predifined string from a list without needing to look it up somewhere and without the chance to add typos and having the freedom to add new cron tasks without creating a xml configuration. I bet having both in a clean way (without offering two fields) is not an easy task. So I would stick to how it is now and offer only a select box. Bye, Fabrizio |
Yes, I am still working on my version. However, the last couple of weeks have been very busy for me and I haven't had much time. I will work on deleting tasks in the next couple of days. I will also try changing the enabling/disabling to be another core_config_data record for each job code. Here is an example of what I was thinking about with using the optional parameters/arguments in a task. http://stackoverflow.com/questions/5673911/magento-store-id-in-cronjob . Yes, I agree having both a select and a text field would be beneficial. I haven't thought about how I would support both. Thanks, |
I am working on deleting tasks. I should have it done soon. Thanks, |
…new task for duplicate job code.
I have added the delete option for tasks to the edit form. Let me know if you find any problems. Thanks, |
I have added the following functionality to the scheduler in my fork. Add or update cron tasks. When it saves the new or updated task it is saved to the core_config_data table. Support for optional parameters. This feature allows a user to set parameters in the configuration and use then when running the job. It only supports text parameters with no validation. Let me know what you think and any problems or questions you have.
Thank you,
Jason Evans