You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Since Github updated their UI I can't work out how to search the issues anymore so I apologise if this is a duplicate.)
Does this gem support firing a state transition in response to a certain instance of time passing? For example, if I had an auction which ends on Sunday night at 9pm, does this gem support changing the state of the auction from 'open' to 'closed' when the end time is reached?
I can see other ways of achieving the same thing by having a periodic job that checks through all 'open' auctions and closes them, but just wanted to know if this gem supported something similar already.
The text was updated successfully, but these errors were encountered:
I would also like a feature like this. I'm working on an e-commerce site and I'd like to have a prelaunch state that changes to launched when the product goes on sale.
The only way I could think of doing it with out using some sort of delayed job would be for state machine to be smart enough to switch the state retroactively the next time it is checked. That seems like a poor option though.
Maybe what we really need is an example showing the best practices for this.
(Since Github updated their UI I can't work out how to search the issues anymore so I apologise if this is a duplicate.)
Does this gem support firing a state transition in response to a certain instance of time passing? For example, if I had an auction which ends on Sunday night at 9pm, does this gem support changing the state of the auction from 'open' to 'closed' when the end time is reached?
I can see other ways of achieving the same thing by having a periodic job that checks through all 'open' auctions and closes them, but just wanted to know if this gem supported something similar already.
The text was updated successfully, but these errors were encountered: