Skip to content

Last run variable #9

Open
Open

Description

@alexander-schranz

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)

Activity

  1. wachterjohannes commented on Jan 20, 2016

    @wachterjohannes
    Member

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

  2. alexander-schranz commented on Jan 20, 2016

    @alexander-schranz
    MemberAuthor

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

  3. wachterjohannes commented on Jan 20, 2016

    @wachterjohannes
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions