RFC: Flowpack/Task - A Task Scheduler For Flow

Hello Neos community,

I’d like to introduce a new Flowpack package - GitHub - Flowpack/task: Task Scheduler for Neos - A task scheduler for Flow and Neos and would love to hear your thoughts about the approach and architecture. The package is not released yet (but already in use in real projects) - so nothing is carved in stone and your comments are highly welcome.

Motivation

Neos Flow was missing a builtIn way or default package to run and maintain recurring tasks, such as importer or report-generator. I used GitHub - ttreeagency/Scheduler: A basic tasks scheduler inspired by cron for your Flow Framework and Neos project. a lot in the past, but it has some caveats and it is not the default. To have a default package would enable other package maintainers to ship fitting code to eg. run maintenance tasks for their packages.

Recently I used custom entry-points to run commands triggered by cron jobs which got very intransparent with growing numbers of tasks. I had the need to have a list of all unattended jobs and their status.

Flowpack / Task

I looked into existing implementations of different Frameworks and liked the simple approach of Welcome to php-task’s documentation! — php-task 1.0.0 documentation. Sadly the implementation tries to be super-flexible on the one hand, while makes some symfony based assumptions on the other and so I decided to not wrap the package but reimplement the idea for flow directly.

Working with it already feels pretty good and it serves all my needs so far.
So if you have the need for a scheduler, have look and let me know your thought.

Cheers,
Daniel

3 Likes