Questions tagged [background-process]
A background process is a computer process that runs "behind the scenes" (i.e. in the background) and without user intervention. Typical tasks for these processes include logging, system monitoring, scheduling, and user notification.
3,017
questions
0
votes
0
answers
13
views
.NET Core background job with HttpContext
I need a .Net core, user-triggered background job approach, which supports the HttpContext of that user. I've gone down the hangfire path unsuccessfully, and what I can tell, BackgroundService does ...
0
votes
0
answers
21
views
Run python screen capture script in Windows 10 background
I am trying to run the script that captures my screen on the Windows 10 and sends that stream to the flask app. It works fine when I start the script from the Windows CMD, but once I set the script to ...
0
votes
2
answers
21
views
Flutter: run code like a timer when app is running in background
I have a simple timer which works fine when the app is running in foreground. I can listen to the stream and update the UI. However when the app is in the background it will not continue counting. How ...
0
votes
0
answers
30
views
what is current state of ios background tasks? is it possible?
I want to make an app with location tracking while the app is in the background.
This app should get the location and make a post request from it in every
interval.
But as I found in ios it throttles ...
0
votes
1
answer
41
views
Can VBA code run after an application is closed?
I am using the ItemAdd event to watch for new Outlook emails. Does this event work while the application is closed?
Currently, my macro launches upon initial startup using the "...
0
votes
1
answer
14
views
Passing django.core.mail.EmailMultiAlternatives instance as async_task with Django-Q
An E-mail template is build-up and send weekly to more than 2000 email recipients (bcc). I must run it as background since it takes few minutes to get rendering back and that some E-mail provider ...
1
vote
1
answer
30
views
How to get MassTransit Mediator to publish notifications in background?
I'm trying to get MassTransit Mediator to publish notifications in a background process so that the system doesn't have to wait for all consumers to complete and it can return a response asap.
There ...
0
votes
0
answers
13
views
Run chrome in background while running audio
I have an audio clip playing on localhost:3000 on a node (js) server. I want this audio to keep playing even after i close the chrome tab. How can i go about this?
-1
votes
0
answers
34
views
How to perform fetch task every 10-15 seconds in background?
How to organize fetching requests in the background every 10 seconds, for example? Only for Android.
0
votes
0
answers
17
views
how to make faster to foreach, search then update more than 100k data?
i have console app for background job.
the app will do like this,
get data from database for the location we can call table A(have 100k data) and place to variable
then foreach data of location will ...
0
votes
1
answer
29
views
Presenting data to a user while app is in the background at the time selected by the user (Swift & IOS)
I have been working on this particular issue for some time now and so far have not been able to figure this out. I am working with this in Swift for IOS. Here is background on this issue:
The user ...
1
vote
2
answers
35
views
How to track user location when the app is killed using flutter?
I want to create a project that tracks the user's location when the app is closed or the app is running and then sends user data to Firebase. I chose Flutter to create this project. I'm new in flutter....
0
votes
1
answer
48
views
Long running task in Cloud Run with CPU always allocated
I know that since Oct-21 Cloud Run supports background jobs.
Anyone knows what happens with long-running background jobs in the following scenario?
CPU always allocated is set to true
min. number of ...
0
votes
1
answer
31
views
UWP Extended Foreground Session
So, I have made a few attempts to create an app in UWP, using C++/CX, and besides dreading the syntax, I had some fun.
I ran into troubles when I attempted to prevent the app from being suspended. ...
1
vote
1
answer
54
views
Visual Studio hub-related background tasks won't stop
When running Visual Studio 2022 (after upgrading from VS 2019), the four "rogue" hub-server background tasks listed below in yellow won't stop. What are they for and how do I stop them?
I'm ...
0
votes
1
answer
86
views
How to run function in background in Django view
I have Django project with one view. When i refresh page i want to call some function which is very complicated and take same time to execute. How and what is the best way to do it in backround?
...
0
votes
1
answer
28
views
BLE Beacon vs Peripheral - Which is better for mobile app background scanning?
I'm a firmware developer, and 2 of my clients both have similar needs: they are developing mobile apps that interface with my hardware and open their respective apps when an advertisement is received ...
0
votes
0
answers
20
views
restart kivy app to run in background on android?
I found many links to the question but i couldnt really follow the solutions to implement it correctly in my code, i have this in my main.py which runs the main app and other threads inside.
def ...
0
votes
0
answers
67
views
flutter_background_service not receiving updates
I'm using awesome_notifications and flutter_background_service in conjunction to update some app state when receiving data notifications from FirebaseMessaging. As noted in the awesome_notifications, ...
0
votes
0
answers
38
views
How to mute notifications for some time in flutter
I am using flutter_local_notifications to display a notification for every prayer. But in app there is feature to mute notifications for "2 Hours", "5 Hours", etc. Just like in ...
0
votes
1
answer
93
views
ABP Framework - To which layer belongs background worker
I searched the documentation without finding a clear answer to this question.
I want to create a background worker in ABP Framework (https://docs.abp.io/en/abp/latest/Background-Workers).
But I don't ...
1
vote
1
answer
46
views
Why is my react-native app terminating in the background while recording (iOS, RN 0.63.3, Expo-Av 9.2.3)
Hello
I'm having an issue in my React Native app where audio recordings are sometimes mysteriously terminated while the app is in the background.
This happens only in ~1/10 user sessions after ...
0
votes
0
answers
45
views
django async/background for long running task
I have a django app with an endpoint that kicks off a long running task. I want to do this in the background. I know I could do this with celery or django-q, but I wanted to try something simpler ...
0
votes
0
answers
36
views
Flutter - Update periodically home screen widget in Ios and Andorid
I made home screen widget using resources from https://medium.com/@ashishgarg1998/how-to-create-home-screen-app-widgets-in-flutter-ce3458f3638e but have issues to update this widget periodically. I ...
0
votes
0
answers
38
views
How to set priority of the backgroundLoading of an Image in JavaFX
I thought this would be a simple find but I’ve been struggling to find something simple that does what I’m looking for and I’ve been stuck on it for a few days. Basically, I have a ListView which ...
0
votes
0
answers
206
views
Flutter background service not working using android_alarm_manager_plus or flutter_background_fetch
I'm working on a Flutter app only for Android, and I want to register a background service.
I've tried exactly how it's being mentioned on the plugin page, but unfortunately, I cannot make it run ...
0
votes
0
answers
53
views
iOS BLE writeValue while app is in background
I have an app that needs to write a value to a peripheral every 60 seconds, which is triggered by a Timer.
This works as long as the app is in the foreground, but as soon as it is sent to the ...
3
votes
0
answers
62
views
Run an animation on background in Flutter
I need to run animation on the background. So that even if the user navigates to other pages the animation will keep on running. I achieved the animation(ken burns effect) with the following code:
...
0
votes
0
answers
36
views
running command in background in subprocesss and capturing the logs [duplicate]
I am running a command is background using nohup in subprocess python using below command, but I am not able to redirect the logs to a different file instead of nohup.out.
When below command is ran ...
-2
votes
1
answer
42
views
Java - Android - Pedometer Doesn't count steps when the app is running in the background
My problem is that my pedometer only counts the steps when I have the app open.
As soon as I leave the app, it stops counting.
The goal of the Android app is that the steps are counted as long as the ...
0
votes
0
answers
86
views
What is the best way to run a background process in a Dash app?
I have a Dash application that queries an API, based on a user search query, performs some calculations on the response, then displays the final results to the user on a Dash app. In order to provide ...
1
vote
1
answer
304
views
How to process a logic or job periodically for all users in a large scale?
I have a large set of users in my project like 50m.
I should create a playlist for each user every day, for doing this, I'm currently using this method:
I have a column in my users' table that holds ...
0
votes
0
answers
22
views
Timer widget on the background
I've publish my first app on the google play...It's a tool for homebrewers called Beerlendar made using flutter.
https://play.google.com/store/apps/details?id=com.paulofersi.beerlendar
I'm still ...
1
vote
0
answers
38
views
How to configure Workmanager Flutter iOS correctly?
I create a background fecth with workmanager flutter and following as the instruction on their documentation [here]https://github.com/fluttercommunity/flutter_workmanager/blob/main/IOS_SETUP.md. On ...
1
vote
1
answer
73
views
How to detect when app is not reopen from background on iOS in Delphi Firemonkey mobile app?
I am developing a Delphi mobile app on both Android and iOS platforms where I want to carry out some action when the app is first launched, but not open from the background.
I have tried using if ...
0
votes
1
answer
33
views
Service not opening activity while app in background
I have a broadcastReceiver opening a service when a time is reached.
If the app is open and running in foreground then the service is called and then calls an activity.
If the app is open but running ...
1
vote
5
answers
128
views
How to start another program and keep it running after Python script finishes?
My issue is similar to How to run Python's subprocess and leave it in background , however none of answers listed there worked for me.
I try to run a program, for example Slack or Discord (or ...
0
votes
1
answer
71
views
Run Google Analytics Request in a Chrome Extension Background Script
Here I have this code, which runs a request to google analytics (I checked, that part works in a popup script) and I would like it to send a daily "order" so to speak to let me know how many ...
0
votes
0
answers
18
views
About MongoDB Background Process
I am a windows 10 64 Bit user. I have recently installed MongoDB & MongoDB Compass. Whenever I start my system it automatically starts a background process name "MongoDB Database Server"....
0
votes
0
answers
53
views
Background process with Qt
I'm working on a daily planner project for my school.
and i wanna use background process to start processing when the app opened.
I googled something and i found QProcess class but i did't really ...
0
votes
0
answers
116
views
What's the best pattern for multiple background tasks in C# + kubernetes?
It seems to me that there must be a pattern on how to do this. It seems like a common (therefore solved) problem.
So, I have a long running task I need to do rarely on production (hours probably).
It'...
0
votes
1
answer
49
views
Asp.Net Core - Start background task and ensure only one are running
I would like to start a long running task from an API controller and return 200 when the task is started.
I want only one task running and if another request are coming in, the controller should check ...
0
votes
1
answer
135
views
How to prevent Powershell from killing its own background processes when spawned via SSH?
We have a Powershell script in C:\test\test.ps1. The script has the following content (nothing removed):
Start-Process -NoNewWindow powershell { sleep 30; }
sleep 10
When we open a command line ...
0
votes
0
answers
32
views
How would I be able to uniquely identify a contact in a contact store in a iOS device?
I need someway to uniquely identify a contact in contact store even if the contact is changed.
Is there a way to put code in iOS that is always watching in the background for the contact store to ...
0
votes
0
answers
19
views
How to run a large on demand sync on an ios device?
I have been looking at the options available to do a user driven on demand sync of a large data set (roughly 1gb) to a iOS device from a central server. The intention is that the user will go offline ...
0
votes
1
answer
88
views
How to keep a process running in the background? - Laravel
I'm using the php-imap package and I want to listen for incoming emails.
The way to achieve this with php-imap is to call an idle() function, like this:
$emailFolder->idle(function (Message $email){...
0
votes
0
answers
53
views
Python: How to call rest endpoint and not wait for it to finish (fire and forget)?
I have a data collector python script that is started each minute by cron, gets some data and puts it into the database.
At its end, data collector should post last row id to a processing rest ...
0
votes
1
answer
23
views
What does application's own process mean in android Job Scheduler
I was going through JobScheduler API documentation, it states "This is an API for scheduling various types of jobs against the framework that will be executed in your application's own process.&...
0
votes
2
answers
52
views
How to stop all background processes(running functions) by using Trap?
I have two long running functions which needs to be executed asynchronously. For simplicity, assume one function sends Mail to client every 10 seconds & other logs text file every two seconds.
I ...
0
votes
0
answers
72
views
How to keep track of time from foreground to background mode
In my app I have to keep track of app idle time so that when app goes into background current idle time should be saved as I have to call an api from background when app timeout period is exceeded.
...