Job is running even if no register or run is called #1567
Replies: 5 comments 2 replies
-
I have no idea what you're doing. You have to give samples of some sort.
If you register a job, it remembers it until you unregister it. It is the entire cornerstone of how jobs work. If it didn't persist that information, the job would never run in the background.
Don't use it. Make your own! |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply Allan I know I didn't give you more info, I will try to create a sample app and see what happen. But tell me one thing only: are you saying that even if I stop debuggind the app, I comment every run or register command of the sincrojob and I rerun the app it will still run as the first time in background even if in this launch no run/register has been fired? I cannot find any unregister job documentation, I only find the Cancel method. Thank you for your help. The "drives me crazy" is was just a comment, you done a really big work man. thank you! |
Beta Was this translation helpful? Give feedback.
-
Hello, here is a sample app (https://github.com/AngeloLazzari/TestShinyJobMaui) , all is working like happen in my real app... I added here a quick one minute video to explain what happen... shiny.test.mp4thank you very much |
Beta Was this translation helpful? Give feedback.
-
ok, I will do it, thank you! |
Beta Was this translation helpful? Give feedback.
-
Here I am... sorry... this is the situation: I put the builder.services.AddJobs(); I commented all the Register of all the project, right now the project doesn't know about what Job i will register... I only pass the IJobManager in the view constructor like this: and the Job starts running ... I use Prism, ...I don't know if it has something in conflict with Shiny... I need just a little help to investigate where is the problem... Thank you very much |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thank you in advance for your help.
We are migrating a app from Xamarin to MAUI and following all your documentation we had the background job running as needed.
So we have our Ijob class, in MauiProgram we call the builder.services.AddJobs(); in the the first view of the app we call the register and we have the Job running every X time.... we are only testing the IOS app now.... good.
The problem is this one: for test purposes we want to do not have the job running, so we // all the run, or the register ...everything from the project, we only have the Job class in the project... and the job is still running on background....
So we investigated for hours with out any result.... is there something that "remember" the job, or scans all the Ijob file in the projects or something like that?
We still see in ouput the:
[0:] Shiny.Jobs.IJobManager: Information: Task Start
[0:] Shiny.Jobs.IJobManager: Information: Job Start
[0:] PARTITO IL JOB 12:26:38
[0:] ATTESA MESSAGGIO 12:26:38
[0:] ATTESA MESSAGGIO 12:26:38
[0:] FINITO IL JOB 12:26:39
[0:] Shiny.Jobs.IJobManager: Information: Job Success
[0:] Shiny.Jobs.IJobManager: Information: Task Success
This is driving me crazy...sorry
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions