I use the WorkManager and I have one Worker, and I run it periodically at 1 hour intervals. But in some special cases, can I run this Worker with OneTimeWorkRequest? Would it end the PeriodicWorkRequest if I did it this way?
What is the best method to go about doing this?
You can use the same Worker class in two different WorkRequest:
You can then use getTags() in your Worker, if you need, to detect which WorkRequest is currently executing.