Project

General

Profile

Bug #8666

Indexer job runs only once

Added by dumbbell - almost 7 years ago. Updated almost 7 years ago.

Status:
Fixed
Priority:
Low
Category:
General
Target version:
Start date:
Due date:
% Done:

100%

Affected Version:
System:
bitness:
64-bit
hardware architecture:
amd64/x86

Description

The indexer job is first run from dt_init (source:src/common/darktable.c#L624). When the first run finishes, it reschedules itself (source:src/control/jobs/control_jobs.c#L306).


Here, the job is actually finished and just want to be called again later. Here are some solutions:
* Extend the job API to add a flag that allows a job to be rescheduled, even if it's currently running.
* Add a new function to explicitely tell the job is finished. The function, called from @dt_control_indexer_job_run@ for instance, would set/clear a flag allowing the next job to be added.

I don't know enough darktable architecture to make a decision and provide a patch. And I didn't explore all the possible solutions either. But I'm willing to help and test patches.

History

#1 Updated by Henrik Andersson almost 7 years ago

2a40c960edb98674a136feead14b07d56297f01f reverts the logics to
prevent same job to be pushed on queue, this is a left over from
somthing forgotten :)

#2 Updated by Henrik Andersson almost 7 years ago

  • Status changed from New to In Progress

#3 Updated by Henrik Andersson almost 7 years ago

  • Status changed from In Progress to Fixed

Also available in: Atom PDF