Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20507

ezcontentstaging: protection from trying to sync an event twice in parallel by cronjob is not working

    XMLWordPrintable

Details

    Description

      The problem is that the select which gets all PENDING events is run at beginning of cronjob, but event status is not checked when every event begins sync.

      Scenario:
      . cronjob A start, selects all pending events: 1, 2, 3
      . cronjob A starts syncing event 1, but network issues make this a long process
      . cronjob B starts, selects all pending events: 2 and 3
      . BANG! error because both processes will try to sync event 2 and 3

      Attachments

        Activity

          People

            Unassigned Unassigned
            gaetano.giunta-obsolete@ez.no Gaetano Giunta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: