Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    vladislav
    @v_8_jupiter_twitter
    Hello. If you have a time please help me.
    1. In gearmand i use mysql table: | unique_key | function_name | priority | data | when_to_run
    2. I add job lient.submitJobBg('sendOptIn', JSON.stringify(jobData))
      Problem in next: if i add job 'sendOptIn' once all is goodm but when i try to add again same job i het error "Unhandled rejection ServerError: QUEUE_ERROR
      at Query._callback ("
    nponeccop
    @nponeccop
    Hi. This is probably a problem with gearmand or with your setup. Can you construct a minimal example and check if it fails when gearmand is run in-memory?
    vladislav
    @v_8_jupiter_twitter
    Sure give me 10 min i will try to use gearamnd without mysql table
    vladislav
    @v_8_jupiter_twitter
    If gearman run without mysql all is good.
    http://gearman.org/manual/job_server -- i installed gearmand + mysql table by this instructions
    CREATE TABLE `queue` ( `unique_key` varchar(64) DEFAULT NULL, `function_name` varchar(255) DEFAULT NULL, `priority` int(11) DEFAULT NULL, `data` longblob, `when_to_run` bigint(20) DEFAULT NULL, UNIQUE KEY `unique_key` (`unique_key`,`function_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8
    vladislav
    @v_8_jupiter_twitter
    It seems problem in UNIQUE KEY unique_key (unique_key,function_name)
    But how i can assign unique key? from client.submitJobBg('sendOptIn', JSON.stringify(jobData))
    ?
    nponeccop
    @nponeccop
    The problem is in gearman then and not in Abraxas. Our code is the same as it doesn't know whether it's an SQL or a non-sql installation. And I personally use in-memory setup so I cannot help you with the details of gearman installation. You should ask in gearman.org support forums.
    The key is supposed to be auto-generated by gearman
    vladislav
    @v_8_jupiter_twitter
    Ok. Thank you