简体   繁体   中英

Workmanager with multiple-processes

Is there a way to enqueue work in work manager from multiple processes? Right now I'm getting this message when I'm trying to do it from the "non-ui" process

I/WM-GreedyScheduler: Ignoring schedule request in non-main process .

Work manager version I'm using is 2.4.0. I know there is 2.5.0-alpha2 right now, but I cannot use that in production

WorkManager 2.5.0-alpha02 is the first version of WorkManager that has multi-process support.

There is no mechanism for using WorkManager across multiple processes in any previous version of WorkManager (hence why these new APIs were added in the first place) so you'll need to either upgrade to that version of WorkManager or wait for it to become beta/RC/stable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM