[prev in list] [next in list] [prev in thread] [next in thread] 

List:       systemd-devel
Subject:    Re: [systemd-devel] Dynamic .timer scheduling
From:       Andrei Borzenkov <arvidjaar () gmail ! com>
Date:       2020-01-29 18:03:58
Message-ID: 635f5d5c-0575-4b1f-aeca-552b2f824768 () gmail ! com
[Download RAW message or body]

28.01.2020 21:46, Johannes Ernst пишет:
> Is there a best practice for scheduling .timers based on what happened in a \
> previous run? 
> Pseudocode:
> 
> while( true ) :
> delta = runService();
> sleep( delta );
> 
> I can think of …
> 
> 1) run the job frequently, but skip the bulk of its execution most of the time \
> (e.g. decrementing a counter saved somewhere) 2) have the job modify the .timer \
> file at the end of each run (sounds … not so great) 

I can only think of creating transient timer with systemd-run
--on-unit-inactive=delta.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic