Using Workqueue for Periodic Task

There is a request from my project to perform a periodic task. I consider workqueue automatic process as sufficient, but I don’t want to use standard way adding entries to the workqueue. I actually need to have only one entry, that will trigger the automatic process. Is there any way to do it?

You could make use of Work Queue Workflow Loader to generate your own queue messages periodically (currently every 10 seconds).

You can use the lastState and resultState context stores to store some state that will be passed between each run.