Questions tagged [workmanagers]
98 questions
10
votes
2 answers
WorkManager : getInstance() is Deprecated
WorkManager.getInstance() is Deprecated in version 2.1.0
dependency :
implementation 'androidx.work:work-runtime:2.1.0'
What are the changes in this method or any other ways?

Pratik Butani
- 60,504
- 58
- 273
- 437
8
votes
0 answers
Android WorkManager not starting the worker
I want to download certain files from the server at the start of the app .So I tried using Work Manager which gets enqueued from my custom Application class.But the Worker class is not getting triggered and the state is only ENQUEUED and not going…

adi
- 984
- 15
- 33
8
votes
6 answers
Type mismatch: inferred type is PluginRegistry? but FlutterEngine was expected
I want to work with Flutter Workmanager, I did the cited configuration in my .kt like this:
package com.example.mybackprocess
import be.tramckrijte.workmanager.WorkmanagerPlugin
import io.flutter.app.FlutterApplication
import…

Djamila Jada
- 141
- 2
- 4
- 11
8
votes
1 answer
WorkManager setRequiresDeviceIdle is confusing
I have implemented a scheduled work manager. My idea is to complete a process every 2 hours. But I need guaranteed execution. According to Work Manager's documentation every enqueued process will be executed guaranteed.
But now this…

Mudassir Zulfiqar
- 355
- 2
- 10
8
votes
2 answers
What's the difference between "Stuck Thread Max Time" and "Max Stuck Thread Time" in Weblogic 10.3.x?
Weblogic 10.3.6 Admin Console has two parameters related with Stuck Threads time configuration.
One in: Servers -> Some_Server -> Configuration -> Tuning has the parameter: Stuck Thread Max Time
Other in: Servers -> Some_Server -> Configuration ->…

avaz
- 523
- 2
- 8
- 20
7
votes
2 answers
Android Work Manager - Does Work Manager will 100% ensure the background execution to be Completed?
From what I read from the documentation https://developer.android.com/topic/libraries/architecture/workmanager,
It said that:
The task is still guaranteed to run, even if your app is force-quit or
the device is rebooted.
So which mean, the…

I am a Student
- 1,570
- 4
- 21
- 36
6
votes
1 answer
Enable programmatic concurrency on Jetty with WorkManager
I managed to configure a custom implementation of the CommonJ − JSR 237 Timer & WorkManager API (http://commonj.myfoo.de) as a JNDI resource on Jetty 6 and 8, but it only works in a global scope.
With this solution JNDI name of the resource is…

Rafael Guillen
- 1,343
- 10
- 25
5
votes
3 answers
Using a CommonJ implementation with GlassFish and Spring 3
In my quest to unify deployment among Websphere 7 and GlassFish 3 environments, I decided to try implementing a CommonJ WorkManager and TimerManager in GlassFish. But it isn't quite working as expected. I have done the following:
Use the myFOO…

faffy
- 351
- 3
- 14
5
votes
1 answer
Work manager do not run when proguarding app in api 27,28,29
I have a periodic task that runs every 15 minutes.
When proguarding the application. The work manager does not work if the app is killed from the background.
Testing devices : One plus 7T, Nokia 5+ ,Google pixel 2 Emulator
The work manager only…

Ravi Parmar
- 968
- 11
- 28
5
votes
3 answers
How to create threads in Java EE environment?
I have a requirement where I have to persist some data in a table and the persisting may take sometime. Basically I want to persist a log. I don't want the execution to wait till the persisting finishes.
I know I have to use threads to accomplish…

Krishna Chaitanya
- 2,533
- 4
- 40
- 74
4
votes
1 answer
EditWorkManager method getWorkInfoByIdLiveData not giving the WorkInfo
I'm trying to get my WorkerInfo with the getWorkInfoByLiveData method that exists in the WorkManager instance.
val workInfo = workManager.getWorkInfoByIdLiveData(uuid).value
The WorkInfo is always null. Also, I'm calling this method from the main…

Ahsan Saeed
- 701
- 10
- 22
4
votes
5 answers
WorkManager need to work only in between particular time interval, how to use work manager constraints ? Work manager example
I am first time working with Work Manager and I have implemented it successfully.
I am taking location on every 30 Minutes to track employee.
I have started my Work Manager when Database synced first time, but I want to stop it on every day by…

Pratik Butani
- 60,504
- 58
- 273
- 437
4
votes
1 answer
How to get WorkManager always running in background
How do i get WorkManager always running in background, nomatter if app is closed/killed/open, it should always be running. I've code in doWork method that checks for changes in database and sends a notification upon change in database. So, it should…

Mukesh
- 154
- 1
- 11
4
votes
0 answers
How to migrate from Jboss 5.x to Jboss 7.x if application uses WorkManager API
We are working to migrate an existing application in production environment that in some case use WorkManager (as vertical scalability) to parallelize the workload.
The application uses also JMS but due to performance issue some part are implemented…

carned
- 41
- 2
4
votes
2 answers
Getting Spring scheduled tasks to run with the task executor thread
Background: I use Spring 3.0.x in my Websphere 7 applications to grab the CommonJ WorkManager and TimerManager. I use these to do arbitrary tasks at certain intervals in my deployed applications.
Problem:
I just learned that when setting a bean…

faffy
- 351
- 3
- 14