There is currently a WIP PR on the Python for Android repository which allows Python for Android apps to define their own WorkManager compatible scripts. Essentially, this would allow us to define a Python script that can then be run in a WorkManager context.
We need to upgrade our Python for Android version to a version that includes these updates - either by getting this merged into mainline, or merging to our fork and updating the code to finalize it (it's not entirely clear to me whether it is working or not at this stage).
There is currently a WIP PR on the Python for Android repository which allows Python for Android apps to define their own WorkManager compatible scripts. Essentially, this would allow us to define a Python script that can then be run in a WorkManager context.
We need to upgrade our Python for Android version to a version that includes these updates - either by getting this merged into mainline, or merging to our fork and updating the code to finalize it (it's not entirely clear to me whether it is working or not at this stage).