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

Moved scheduled tasks classes to Scheduler component #6981

Merged
merged 11 commits into from Jan 14, 2015
Merged

Moved scheduled tasks classes to Scheduler component #6981

merged 11 commits into from Jan 14, 2015

Conversation

mnapoli
Copy link
Contributor

@mnapoli mnapoli commented Jan 12, 2015

I have moved classes related to "scheduled tasks" into a new component name Scheduler.

For now I haven't touched at the logic itself, I have just renamed and moved classes from static classes to non-static classes using (a bit) dependency injection.

If you want to review the PR, I recommend you read commit-by-commit rather than the whole diff, I've tried to make them small and easy to follow.

My plan would be to extract this component from Piwik later on. Scheduling tasks is definitely a generic thing, and I had a look but no really good alternative exist. In the past I've used Quartz in Java, I'm sure there's a need for something in PHP. There is cron-expression that is a lib to parse Cron strings (but it doesn't do anything else), so our Scheduler could use that.

@mnapoli mnapoli added the c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. label Jan 12, 2015
@mnapoli mnapoli added this to the Piwik 2.11.0 milestone Jan 12, 2015
@mattab
Copy link
Member

mattab commented Jan 14, 2015

Hi @julienmoumne FYI!

@mattab
Copy link
Member

mattab commented Jan 14, 2015

looks good @mnapoli !

mattab pushed a commit that referenced this pull request Jan 14, 2015
Moved scheduled tasks classes to Scheduler component
@mattab mattab merged commit 8e72367 into master Jan 14, 2015
@mnapoli mnapoli deleted the scheduler branch January 14, 2015 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants