State Machine Changes Not Reflecting After Cache Clear & Rebuild

bhupendra.doniwal
bhupendra.doniwal Posts: 59 πŸ§‘πŸ»β€πŸš€ - Cadet

Hi Team,

I have been working with the state machine in Spryker and made some changes, but they are not reflecting in the system. I have already cleared the cache and tried rebuilding, but the issue persists.

Previously, whenever I made changes to the state machine, they were reflected instantly. However, this time, the changes are not applying as expected.

I am using the latest Demoshop B2B Marketplace 202410. Is there any known issue or additional steps I should take to ensure the changes are applied?

Any insights would be appreciated!

Answers

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,103 βš–οΈ - Guardians (admin)

    Heyhey @bhupendra.doniwal ,

    have you tried console oms:process-cache:warm-up already? Andriy and myself introduced some caching for OMS last year at an internal hackathon. This caching improved the performance for big Order Management Processes a lot.

    All the best,

    Florian

  • bhupendra.doniwal
    bhupendra.doniwal Posts: 59 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hey @fsmeier,

    Thanks for the info! I tried running console oms:process-cache:warm-up, but it seems the command isn't available in our setup. I also checked the list of OMS commands, but it’s not there.

    Is there any additional setup required to enable this command? Or could it be part of a specific module that we might be missing?

    Looking forward to your insights!

    Bhupendra

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,103 βš–οΈ - Guardians (admin)

    Heyhey @bhupendra.doniwal ,

    hmpf.. you are right. In the 202410.0 b2b-demo-marketplace version it includes the dedicated spryker/oms package but somehow the console command was forgotten to be integrated as well. :( I am sorry for that, its already fixed in master.

    The following commit gives you an idea what you should add to your shop to make it work (just everything process-cache related(!) ignore the other changes): https://github.com/spryker-shop/b2b-demo-marketplace/commit/fce8ec99d6e46fc109ed815807f4d97190662c7e#diff-e1e64c6b5123053316fb4573e4cd6c2b8fdb47aeac6b5c11afd1001e1e936bc2

    Hope this can solve it.

    All the best,

    Florian