What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi All, does someone know how can I get the `ProductConcreteImageStorageWriter`/`ProductAbstractImag

U01SE4SRCU9
U01SE4SRCU9 Posts: 68 πŸ§‘πŸ»β€πŸš€ - Cadet
edited September 2021 in Help

Hi All,
does someone know how can I get the ProductConcreteImageStorageWriter/ProductAbstractImageStorageWriter to run so I can step it through with the debugger? The debugger is working, breakpoints are set, I know how to launch console commands so that the debugger is activated, I just don't know exactly what do I need to start so that these two specific classes are caught too. I tried the image import as well as triggering the product_abstract_image event, but neither worked.

Comments

  • U01K43ADW5N
    U01K43ADW5N Posts: 69 πŸ§‘πŸ»β€πŸš€ - Cadet

    You mean the publish methods?
    You need to disable the scheduler (jenkins) and manually execute the publish queue.
    Take a look at the commands:
    scheduler:suspend
    queue:task:start publish (I recommend using it with the --no-ack flag
    scheduler:resume

  • U01K43ADW5N
    U01K43ADW5N Posts: 69 πŸ§‘πŸ»β€πŸš€ - Cadet

    the queue:task:start {queue name} is going to start executing the queue you want

  • U01K43ADW5N
    U01K43ADW5N Posts: 69 πŸ§‘πŸ»β€πŸš€ - Cadet

    in your case, the publish queue

  • U01K43ADW5N
    U01K43ADW5N Posts: 69 πŸ§‘πŸ»β€πŸš€ - Cadet

    don't forget to run it on debugging mode

  • U01SE4SRCU9
    U01SE4SRCU9 Posts: 68 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thanks, I found it too in the meantime:

    console scheduler:suspend
    console queue:queue:purge-all
    console event:trigger -r product_abstract_image
    console queue:task:start event
    

    Looks like it's essentially the same as yours. πŸ‘

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

    event:trigger? doesn't exist for me

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

    event:trigger:listener or publish:trigger-events?

  • U01K43ADW5N
    U01K43ADW5N Posts: 69 πŸ§‘πŸ»β€πŸš€ - Cadet

    publish:trigger-event should work fine

  • U01K43ADW5N
    U01K43ADW5N Posts: 69 πŸ§‘πŸ»β€πŸš€ - Cadet

    If you are fine with just one event, there are times that I just edit something on Zed and it will trigger the events

  • U01SE4SRCU9
    U01SE4SRCU9 Posts: 68 πŸ§‘πŸ»β€πŸš€ - Cadet

    @U01LE4BMBK7 it's in EventTriggerConsole (EventBehavior module). But I guess what you've mentioned, should probably work too.

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

    ah ok, seems to be removed in my current project