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

Last run variable #9

Open
alexander-schranz opened this issue Jan 19, 2016 · 3 comments
Open

Last run variable #9

alexander-schranz opened this issue Jan 19, 2016 · 3 comments

Comments

@alexander-schranz
Copy link
Member

It would be a good feature to know when the handler was run last time with a specific workload.

Example: I want to calculate values foreach User which logged in since the handler was called last time.

I would change the handlerinterface in this case to this:

public function handle($workload, \DateTime $lastRunTime = null)
@wachterjohannes
Copy link
Member

you could put this into the workload? because you have to save the information into the task-storage

@alexander-schranz
Copy link
Member Author

the next task is not written by the handler and the handler cant manipulate this.

@wachterjohannes
Copy link
Member

hmm maybe a task should have a link to the previous one if exists and that should be handled by the scheduler maybe?

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

2 participants