Skip to content

Service run twice somtimes #212

@petibub

Description

@petibub

Sometimes, a service is executed twice - in the logs, "DatafileObserver::updated()" appears, which means that DatafileObserver::updated has been triggered, which than triggers dispatchService().

This happens in Service::handle(), section finally{}. The only suspicious commands are:

  • $this->datafile->save();
  • DatafileProcessed::dispatch($this->datafile->id);
    I don't understand how DatafileObserver is linked with these commands.

This bug is especially relevant for the Selfone Widget, which takes around 500 seconds and when processed twice unnecessarily longer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    WidgetAnything related to the widgets (services, views, etc)

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions