public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Lukas Wagner" <l.wagner@proxmox.com>
To: "Shannon Sterz" <s.sterz@proxmox.com>,
	"Lukas Wagner" <l.wagner@proxmox.com>
Cc: Proxmox Datacenter Manager development discussion
	<pdm-devel@lists.proxmox.com>
Subject: Re: [pdm-devel] [PATCH datacenter-manager v2 1/4] remote tasks: move implementation to server crate
Date: Mon, 29 Dec 2025 15:54:10 +0100	[thread overview]
Message-ID: <DFASBWNFQC54.2EI89Q361ACRT@proxmox.com> (raw)
In-Reply-To: <DF28PX4WU3VR.19HRZ31SKANFX@proxmox.com>

On Fri Dec 19, 2025 at 2:50 PM CET, Shannon Sterz wrote:
> On Thu Dec 18, 2025 at 3:20 PM CET, Lukas Wagner wrote:
>>  use server::{
>> -    connection,
>> -    parallel_fetcher::{NodeResults, ParallelFetcher},
>> -    pbs_client,
>> -    remote_tasks::{
>> -        self,
>> -        task_cache::{GetTasks, NodeFetchSuccessMap, State, TaskCache, TaskCacheItem},
>> -        KEEP_OLD_FILES, REMOTE_TASKS_DIR, ROTATE_AFTER,
>> -    },
>> +    remote_tasks::{self, refresh_task, REMOTE_TASKS_DIR},
>
> nit: could use module level imports here :)
>

Thanks, will be fixed for v2!

>>      task_utils,
>>  };

[...]

>>
>>
>>      loop {
>>          interval.tick().await;
>> -        if let Err(err) = do_tick(&mut task_state).await {
>> +        if let Err(err) = remote_tasks::refresh_task::handle_timer_tick(&mut task_state).await {
>
> nit: you already import `refresh_task` above. so drop `remote_tasks` in
> front here, should also enable you to drop the `self` import above.
>
>>              log::error!("error when fetching remote tasks: {err:#}");
>>          }
>>      }
>>  }

This as well :)


_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


  reply	other threads:[~2025-12-29 14:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-18 14:20 [pdm-devel] [PATCH datacenter-manager/proxmox-yew-comp v2 0/6] manual refresh button for remote task cache Lukas Wagner
2025-12-18 14:20 ` [pdm-devel] [PATCH proxmox-yew-comp v2 1/2] task list: add support for starting refresh tasks Lukas Wagner
2025-12-18 14:20 ` [pdm-devel] [PATCH proxmox-yew-comp v2 2/2] loadable component: don't trigger reload when starting a task Lukas Wagner
2025-12-18 14:20 ` [pdm-devel] [PATCH datacenter-manager v2 1/4] remote tasks: move implementation to server crate Lukas Wagner
2025-12-19 13:50   ` Shannon Sterz
2025-12-29 14:54     ` Lukas Wagner [this message]
2025-12-18 14:20 ` [pdm-devel] [PATCH datacenter-manager v2 2/4] remote tasks: implement `refresh_task_cache` for manual task fetching Lukas Wagner
2025-12-18 14:20 ` [pdm-devel] [PATCH datacenter-manager v2 3/4] api: add /remotes/tasks/refresh Lukas Wagner
2025-12-19 13:52   ` Shannon Sterz
2025-12-29 14:57     ` Lukas Wagner
2025-12-18 14:20 ` [pdm-devel] [PATCH datacenter-manager v2 4/4] ui: remote task view: set refresh_task_url property for task viewer Lukas Wagner
2025-12-19 13:53 ` [pdm-devel] [PATCH datacenter-manager/proxmox-yew-comp v2 0/6] manual refresh button for remote task cache Shannon Sterz
2025-12-29 15:31 ` [pdm-devel] superseded: " Lukas Wagner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DFASBWNFQC54.2EI89Q361ACRT@proxmox.com \
    --to=l.wagner@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    --cc=s.sterz@proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal