[haiku-bugs] Re: [Haiku] #14717: HaikuDepot Server doesn't get new packages

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 11 Dec 2018 22:43:44 -0000

#14717: HaikuDepot Server doesn't get new packages
--------------------------------+-----------------------
   Reporter:  CodeforEvolution  |      Owner:  kallisti5
       Type:  bug               |     Status:  assigned
   Priority:  normal            |  Milestone:
  Component:  Website           |    Version:
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:  14727
Has a Patch:  0                 |   Platform:  All
--------------------------------+-----------------------

Comment (by apl-haiku):

 Hello Alex; You do not need to setup {{{cron}}} tasks for each repository.
 You only need to setup the following cron tasks;

 {{{
 32 * * * * curl ...../__maintenance/hourly
 45 3 * * * curl ...../__maintenance/daily
 }}}

 In particular, the daily maintenance task scheduled with {{{cron}}} above
 will, amongst other things, refresh the data for all active repositories
 in the HDS system.

 As part of a given repository's presumably scripted (Python etc...)
 build/update process it is advisable but not necessary for the repository
 build script (note: not cron) to invoke a URL such as...

 {{{
 /__repository/.../import
 }}}

 ...when it (eg: Python script) finishes building/updating the repository.
 The documentation for this HDS endpoint are described at [1].  By having
 the repository build/update script do this, HDS will import the repository
 data faster without having to wait for periodic polls performed during the
 HDS daily maintenance task.

 I am happy to help anybody with questions about this on the HDS mailing
 list.

 I will take a look to see if I can setup task-scheduling inside HDS using
 Quartz scheduler, but am presently (slowly) busy with changes in the C++
 code of the desktop application.

 [1] https://depot.haiku-os.org/__docs/ch13.html#api-importrepositorydata

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14717#comment:8>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: