View Issue Details

IDProjectCategoryView StatusLast Update
0007739Talerlibeufin-nexuspublic2023-11-03 14:32
ReporterMS Assigned ToMS Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionwon't fix 
Target Version0.9.4 
Summary0007739: Creating background tasks should be idempotent.
DescriptionNow it responds with 400, which is not even suitable for a name conflict.

The "POST ../schedule" call is responsible.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

MS

2023-03-10 13:56

reporter   ~0019951

Agreed that background tasks should be just overridden by the owner, without any idempotent behavior.

MS

2023-07-24 09:10

reporter   ~0020367

Last edited: 2023-07-24 09:11

This waits 0007890 to be solved and the delivery of NLnet task 5. The dependency is not technical but based on priority.

Christian Grothoff

2023-09-23 13:01

manager   ~0020525

Well, with new architecture we may not have background tasks configured via REST anymore anyway. Should we keep this open as a reminder that background tasks need to be re-done, or mark "won't fix"?

MS

2023-09-25 09:50

reporter   ~0020539

Was it agreed that Nexus will have in-Kotlin background tasks?

IIRC a designer has proposed to have CRON(8) managing Nexus repetitive tasks. That would for sure cut on complexity.

Christian Grothoff

2023-09-25 09:54

manager   ~0020540

Yes, I think for the new design we proposed for the "background" tasks to be (separate) commands that can be invoked "at will". That said, there could be 3 variants:
- one-shot: runs the repetitive task once, next time again via cron/systemd
- long-poller: runs the repetitive task repeatedly, internally uses long-polling/notifications to wake up on-demand so things still appear "instantly"
- sleep loop: runs the repetetive task in a while (1) { work; sleep; }-loop, so started only once to avoid high-cost of startup

Which one(s) is best may depend on the task, but modulo long-polling complexity begin implemented, they can probably be all done by the same command with minor command-line option variations.

MS

2023-11-03 14:32

reporter   ~0020624

Not using background tasks anymore.

Issue History

Date ModifiedUsernameFieldChange
2023-03-04 15:48MSNew Issue
2023-03-10 13:56MSNote Added: 0019951
2023-04-13 18:38Florian DoldCategorynexus => libeufin-nexus
2023-04-13 18:50Florian DoldProjectlibeufin => Taler
2023-04-17 09:45Florian DoldTarget Version => 0.9.3
2023-04-17 09:45Florian DoldAssigned To => MS
2023-04-17 09:45Florian DoldStatusnew => assigned
2023-07-24 09:10MSNote Added: 0020367
2023-07-24 09:11MSNote Edited: 0020367
2023-09-23 13:01Christian GrothoffTarget Version0.9.3 => 0.9.4
2023-09-23 13:01Christian GrothoffNote Added: 0020525
2023-09-25 09:50MSNote Added: 0020539
2023-09-25 09:54Christian GrothoffNote Added: 0020540
2023-11-03 14:32MSStatusassigned => closed
2023-11-03 14:32MSResolutionopen => won't fix
2023-11-03 14:32MSNote Added: 0020624