Replies: 1 comment 1 reply
-
Its a bug with the timestamp method. Task does not actually check the generates items exist, rather, it cunningly 'globs" each generates item and only notices those files which exist, and the timestamp file itself. That means, if you delete a file, task will not notice and because the timestamp file, created when the source last changed, was considered for the check ... another cunning move ... it will appear that the task is up-to-date. The glob function needs to be reworked. If a glob (i.e. one of the generate items) does not find at least one match, then it should error. That will then trigger the task to run. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New Tasker here, this must be some kind of FAQ but I can't find an answer...
So I have a task which extracts the first 512 bytes of an 12 GB AlmaLinux ISO image (MBR) for later rebuilding the image with new files. Because the source is so big, I used
method: timestamp
to check if the source has changed.. but if I run the task, then remove the generated file and run again, the task is skipped as up-to-date.. which makes no sense as the missing generated file is definitely not up-to-date.Then if I remove the
method: timestamp
it is definitely taking the time to checksum the ISO and will run also if the generated file is missing.I must be fundamentally misunderstanding something here because the two methods operate so differently?
I discovered a workaround, that by adding a custom
status:
to check for the file it works:.. but this seems superfluous? Also the docs in the schema for
status
states:.. so I thought you can't combine them but apparently it works fine, doing both the timestamp check on sources and my custom status check on the generated file. Are the docs out of date here? For the checksum method this extra check is not necessary.
Using version 3.44.0 if that makes a difference. And yes this task is so short it doesn't matter if it runs always but that's not "clean" and I will surely run into this issue again very soon. And yes I have 30 years of
make
background...Beta Was this translation helpful? Give feedback.
All reactions