I have a below use case to implement.
The user schedules a one-time work of downloading some files after 15 min with WiFi as the constraint. The user loses the Wifi before the scheduled work can get started. Now the requirement is if the file has not been downloaded yet (30 min after the scheduled time). Cancel the work itself.
Should I create one more work to check the status of the downloading work and act accordingly?