Jump to content

Julien

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Julien

  1. Hello everyone,

    I'm actually  working on a Registrar module and I would like some opinion on how to deal with pending operations. By that I mean maybe someone want's to order a domain name but the process can take between 0 seconds to a few days if technical issues arises,  and so our server might respond with an indication that the operation is pending, meaning it will be resolved but it's not instantaneous.

    My line of thought would be to issue a warning/error when such an operation arise, saying something like 'Operation is being processed' or something close.
    Then running a cron job that check our API if the operation is still pending or failed or is successful,  and then altering the DB in case of success.

    My questions are:

    - Did I oversee some crucials steps in this process?

    - Could you point me to the table in the database that I might need to read/edit for this process to succeed?

    - Is there a way to raise an actual warning? Not an error but a real warning?  For error I use $this->Input->setErrors, is

    It's not a very clear question as I'm still thinking about it, any feedback would be appreciated.
    And forgive me for my English.

    Julien

     

    Edit1: Also in documentation  it  talk about cron configuration only for plugins, not for modules. Will I run into any problem?

    Edit2: I discovered this thread about  cron for module, I asked there if there were any news.

×
×
  • Create New...