Questions tagged [enqueue]

102 questions
7
votes
0 answers

How to consume messages from Cloud Pub/Sub with the Messenger component of Symfony and Enqueue adapter?

Tools I'm using: Symfony 4.1.6 Symfony Messenger component 4.1.6 Enqueue adapter 0.1.2 Enqueue Google Cloud Pub/Sub Transport 0.8.37 My config files: #service.yaml framework: messenger: transports: default:…
Erik Saunier
  • 8,670
  • 1
  • 20
  • 15
4
votes
1 answer

Wordpress - enqueue style after all others or after certain styles

I'm writing a plugin for Wordpress which I need to enqueue style files in front end. But when I do this some other plugins like vs_composer add their styles files after my plugin and override my codes. So I think there are two options to deal with…
Artin GH
  • 546
  • 2
  • 10
  • 21
3
votes
1 answer

Basic setup using Symfony 4 messenger, php-enqueue, AWS SQS, AWS SNS

The goal is to be able to send messages using AWS SQS+SNS. This has been a struggle for a few days and I don't know how to make it work. Symfony 4.2 has a new component, messenger that I wanted to use. It is supposed to work with php-enqueue as a…
ScottGutman
  • 302
  • 1
  • 15
2
votes
1 answer

WorkManager: java.lang.VerifyError: Verifier rejected class androidx.work.impl.OperationImpl

I'm trying to resuscitate an old codebase. In one of the activities, the enqueue() call represented in the code snippet below keeps crashing the app: WorkManager .getInstance(requireContext()) .enqueue(updateValues) // updateValues is a…
Taslim Oseni
  • 6,086
  • 10
  • 44
  • 69
2
votes
0 answers

How to perform multiple tasks one after another with JobIntentService

I want to add tasks to JobIntentService queue, currently i have created JobIntentService, which is working correct for one task, but when I call enqueueWork before finishing existing service , it is not working. Below is my JobIntentService public…
Shruti
  • 391
  • 1
  • 5
  • 21
2
votes
1 answer

enqueue style and script WordPress doesn't work

I'm trying to enqueue javascript and css in WordPress. I have written the following code but it is not working and no style or css is being added to my theme. function add_theme_scripts() { wp_enqueue_style( 'cssdatepicker',…
Somy J
  • 173
  • 1
  • 3
  • 22
2
votes
1 answer

Mini-batch training in Tensorflow when using FIFOQueue

I'am training a linear regression problem using tf.train.GradientDescentOptimizer() in Tensorflow. In general, I can use placeholders and feed_dict={} to input a batch of samples everytime and train the weight W. However, I would like to use…
Mila
  • 285
  • 4
  • 13
2
votes
1 answer

Twilio / TwiML on iOS - Using Enqueue and Dial

Basically, I am creating an iOS app that will Dial a phone number in my office when certain button is tapped. This is working fine, but now I want to have a music file played while waiting for the phone to be picked up. Knowing that Dial cannot use…
Pa Bebek
  • 21
  • 1
1
vote
3 answers

How to enqueue module script?

I tried to enqueue a module script in WordPress. But not enquiring the script on wordpress. I have tried: wp_enqueue_script( 'handle', 'https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js', [], 1.0.0 );
user12974774
1
vote
2 answers

Enqueue External JS Wordpress

I'm struggling to understand how to enqueue an external js file with some widget code within Wordpress. For example: there is a Frontapp chatbot that has to have the following code placed into the end of the tag with my theme:
1
vote
1 answer

How do I enqueue or activate a page of code in WordPress?

I am developing a WordPress custom-theme where I would like to register my Custom Post Type and Taxonomy upon theme install, I have all the generated cpt-code inside my ~custom-theme/custom/posttypes.php and taxonomy.php See it here on Pastebin. I…
ShrockCo
  • 357
  • 1
  • 13
1
vote
1 answer

How to use multiple queue worker with Shopware 6?

Are there any best practive in running multiple message queue workers in Shopware 6? We disabled the Admin Worker und configured supervisor.d to run 5 processes of messenger:consume and 1 process of scheduled-task:run . We experienced some weird…
Marius
  • 31
  • 5
1
vote
2 answers

wordpress enqueue script inside the header

I'm creating a plugin for WordPress, when I use below code in plugin main file it load js in , it works fine. wp_enqueue_script ( 'custom-script', 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap-v4-…
Mohammad Salehi
  • 565
  • 1
  • 12
  • 33
1
vote
0 answers

How to create enqueue CLI consumer without symfony or other bundles

I have PHP projects written without any frameworks and I'm using enqueue/redis to produce message into redis queue, and I want another project to consume messages. How can I make CLI consumer which will not interrupt after it proceed first message.…
Bogdan Dubyk
  • 4,756
  • 7
  • 30
  • 67
1
vote
0 answers

Enqueue for priority queue not working properly C++

For my Computer Science class I am implementing a templated Priority Queue class and I am struggling to implement the enqueue function. I know the error is in the if(value < back) block of the function. Here is the Function: template bool…
1
2 3 4 5 6 7