What I’m trying to do:
I have a background task setup as such:
Client Code:
anvil.server.call_s(‘launch_load_video’,team, time, tourney, video)
Server Code:
@anvil.server.background_task
def load_video(team, time, tourney, video):
try:
app_tables.fishpicturest1.get(team=team, time=time , tourney=tourney)[‘video’] = video
except:
video = None
app_tables.fishpicturest1.get(team=Team, time=Time , tourney=tourney)[‘video’] = video
@anvil.server.callable
def launch_load_video(team, time, tourney, video):
anvil.server.launch_background_task(‘load_video’, team, time, tourney, video)
The task performs as it should, however, the task seems to persist for hours unless I kill it.
any suggestions?