public inbox for goredo-devel@lists.stargrave.org
Atom feed
* redo-stamp
@ 2025-03-31 17:58 Christian G. Warden
  2025-04-02  7:45 ` redo-stamp Sergey Matveev
  0 siblings, 1 reply; 5+ messages in thread
From: Christian G. Warden @ 2025-03-31 17:58 UTC (permalink / raw)
  To: goredo-devel

I'm exploring switching from apenwarr's redo to goredo, and found
that one of my common conventions doesn't work.

I frequently use redo for data pipelines.  This typically involves
retrieving some data from a remote resource.  Fetching lots of data
can be time consuming.  Working with data that's an hour or a day old
if often fine.

So the convention I follow in data.csv.do looks like this:
redo-ifchange date
... fetch data > $3

And date.do looks like this:
redo-always
date +%Y%m%d | redo-stamp

When I run `redo data.csv`, data is only fetched if I haven't already
fetched data today.

If I'm doing the same analysis with data from multiple remote sources,
I'll similarly have data.csv.do include `redo-ifchange user`, where
user.do looks like:
redo-always
force active | redo-stamp

So if I change my active user, data.csv will be out of date.

I can of course generate `date` and `user` files rather than use
redo-stamp, but is there any reason to intentionally not support this
functionality?  Any other suggestions?

Thanks,
Christian

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Multiple calls to redo-* for same target results in multiple .rec entries
@ 2021-10-27 17:18 goredo
  2021-10-31  8:21 ` Sergey Matveev
  0 siblings, 1 reply; 5+ messages in thread
From: goredo @ 2021-10-27 17:18 UTC (permalink / raw)
  To: goredo-devel

Hi,

Thanks for the quick response. :)

I just discovered that calling redo-ifchange / redo-ifcreate multiple times on the same target, multiple entries get created in the .rec file. Order doesn't matter, all four combinations have a similar effect.

At least multiple calls to the same type shouldn't be recorded twice, I guess. Not sure what recording an ifchange and ifcreate dependency simultaneously would actually mean...

Kind regards,
–Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-03 23:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-31 17:58 redo-stamp Christian G. Warden
2025-04-02  7:45 ` redo-stamp Sergey Matveev
2025-04-02 10:54   ` redo-stamp spacefrogg
2025-04-03 22:45     ` redo-stamp Andrew Chambers
  -- strict thread matches above, loose matches on Subject: below --
2021-10-27 17:18 Multiple calls to redo-* for same target results in multiple .rec entries goredo
2021-10-31  8:21 ` Sergey Matveev
2021-11-04 15:35   ` goredo
2021-11-09  9:13     ` Sergey Matveev
2021-11-09 13:43       ` goredo
2021-11-10 12:22         ` redo-stamp Sergey Matveev