I want to use result = gearman_client.submit_job("reverse_task", "Hello World!", wait_until_complete=False) to submit a non-blocking job to Gearman Job Server. However, result.state is always 'CREATED', and result.complete is always False. If I change wait_until_complete to True, then everything goes right. That's so wired. Can anyone help?
How to submit non-blocking job in Gearman?
296 Views Asked by expoter At
1
There are 1 best solutions below
Related Questions in MESSAGE-QUEUE
- Message Queues: Per Message Guarantees
- mq_timedsend() returns error 14 "bad address"
- Posix message queues and the command line?
- Best way to ensure an event is eventually published to a message queuing sytem
- Azure Service Bus Queue grouped messages
- How to interrupt an xQueueReceive() API in FreeRTOS?
- Spring JMS - Unable to connect to broker URL with embedded Broker
- How to do error handling with EasyNetQ / RabbitMQ
- Setting message priority in RabbitMQ PHP
- Using a queuing system to do custom logic
- Storm-jms Spout collecting Avro messages and sending down stream?
- How many tcp connection created on a queuing protocol such as ZeroMQ
- RabbitMQ: How to send Dead Letter Exchange from Erlang client
- What happens to message in queue of 1 length which is not acked in rabbitmq?
- Can I view raw message in iron.io webpage?
Related Questions in GEARMAN
- gearman function in worker remains undefined
- Cache / queue for high frequency writes
- What is the role of the last argument ( $uniqueId ) in PHP Gearman's doNormal()?
- Gearman client NON_BLOCKING mode vs doBackground
- How to submit non-blocking job in Gearman?
- Is there a way to see whats "stuck" on Gearman-Job-Server?
- Jenkins master failover scenario
- monitoring gearman in nagios
- byte[] to string conversion
- Who finishes first? Gearman or Mongo PHP insert?
- Gearman PECL Extension on MAMP
- Best Way to Handle Background Processes
- Gearmand Server Completely Locks Up
- Gearman receive data of processed task
- How to process a git submodule's parent repo with zuul, Gearman and Jenkins?
Related Questions in PYTHON-GEARMAN
- How to submit non-blocking job in Gearman?
- Python gearman Received non-binary argument
- How can I get the status of non-blocking jobs of gearman submit_multiple_jobs?
- Cannot trap exceptions from Gearman Client instantiation
- I can not use django-gearman-commands make the worker work all the time
- Error running basic python-gearman example
- Error Running Gearman for Windows 7
- Scrapy and Gearman
- Python Gearman get data from background task
- How to configure or install GEARMAN in windows OS?
- running mutliple worker in parallel in gearman-python
- is PYTHON Gearman Worker accept multi-tasks
- How to get status of Gearman Jobs by their uniq id?
- Altering python-gearman worker tasks during job processing
- gearman stop start restart command
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As python-gearman described here, you should use
gearman_client.wait_until_jobs_completed([result])to wait until all jobs completed, rather than checkingresult.completein a while loop.