Reputation: 1820
I have a long operation that I can no longer run from the UI as it exceeds the maximum execution time as well as memory limit. I am fairly aware of how I can set tasks in a table, and have a cron execute a sfTask
that finishes pending tasks.
Can someone let me know the following:
sfTaskLoggerPlugin
, sfGearmanPlugin
and sfJobQueuePlugin
have not been recently updated.All inputs are appreciated.
PS: Have referred Long script in admin, task in Symfony? and few others :)
Upvotes: 2
Views: 1947
Reputation: 823
I think most of what you need is covered by the standard documentation.
http://www.symfony-project.org/cookbook/1_2/en/tasks
I use Symfony tasks frequently through scripts that hand-off through a cron job. I use environment switching via the command line, just like the docs discuss. I use parameter passing too.
Symfony tasks are very powerful, and give you everything that you need from the CLI in order to reach into your application and execute what you need.
If after reading the docs, you have a more specific question, post it, and we'll do our best to answer you.
Upvotes: 1