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

Sort tasks by priority in the TaskRunner #16

Closed
veewee opened this issue May 26, 2015 · 1 comment
Closed

Sort tasks by priority in the TaskRunner #16

veewee opened this issue May 26, 2015 · 1 comment

Comments

@veewee
Copy link
Contributor

veewee commented May 26, 2015

In a Task service it must be possible to add a "priority" tag to the service configuration.
E.g.:

parameters:
    tasks:
        taskname:
            metadata:
                priority: 1000

The higher the priority, the earlier the task is executed.
The tasks will be sorted during runtime in the TasksCollection or in the TasksComilerPass.

The metadata functionallity is already available with the getTaskMetadata() method on the GrumPHP object.

More information: https://github.com/phpro/grumphp/blob/master/doc/tasks.md#metadata

@veewee
Copy link
Contributor Author

veewee commented Jan 26, 2016

Fixed in #92

@veewee veewee closed this as completed Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant