Skip to content

Conversation

Toflar
Copy link
Member

@Toflar Toflar commented Aug 14, 2025

No description provided.

@Toflar Toflar requested a review from fritzmg as a code owner August 14, 2025 14:29
@Toflar
Copy link
Member Author

Toflar commented Sep 15, 2025

Ping @fritzmg

Copy link
Contributor

@fritzmg fritzmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - however, what I am kind of missing is the intended or typical usage. You will usually have something like this, right?

// In some controller
$job = $this->jobs->createJob('data_export');
$message = new DataExportMessage($someData, $job->getUuid());
$this->messageBus->dispatch($message);
// In the DataExportMessageHandler
$job = $this->jobs->getByUuid($message->getJobUuid());
$this->jobs->persist($job->markPending());

// Do some work …

$this->jobs->persist($job->markCompleted());

@Toflar
Copy link
Member Author

Toflar commented Sep 15, 2025

Yes, if you want to. Could also be a cronjob though etc., yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants