In 7.2.1.10, if you set a scheduled start time for a job that has dependencies and the dependencies are satisfied, the job will be released even if the scheduled time has not arrived. Is this something that has been fixed in the 8.x releases?
Hello Nathan,
I don’t think we have ever tested something like this, but I was able to reproduce this and have sent this off to the devs.
Good news everyone! We’ve slated this guy for Deadline fixes. It’s going to happen in 9.0 though because it’s a change in behaviour that we don’t want to surprise people.
Glad to hear it will be fixed, but it’s unfortunate that it will take that long.
Could it just be a Repository setting for behavior? “Wait for scheduled dependency [ ]”
I don’t think adding another repository option is the answer, since this is an actual bug.
We’re looking at trying this for Sim renders to reduce server load during the day. Is it possible to get around it in version 8 by adding a dependency script to check for the time?
Nick
Actually, yeah, that would work really well actually.
If you manage to cook it up, I’ll put it over in the Github code base. I forget dependency scripts are even a option most days.
Hi Edwin,
My colleague created a script that checks the time and returns values based on the dependencies documentation, but when we run it on the farm it doesn’t seem to release the tasks… I’ve included the script below. We’re not quite sure how best to debug it though or where the resulting information might go…
[code]from datetime import datetime, time
def check_time(start, stop):
now = datetime.now().time()
if start < stop:
return start <= now <= stop
else:
return now >= start or now <= stop
def main(job_id, task_ids=None):
if not task_ids:
release_job = check_time(time(11,30), time(8,00))
return release_job
else:
tasks_to_release = []
if check_time(time(11,30), time(8,00)):
tasks_to_release = task_ids
return tasks_to_release[/code]
Best way to debug I think would be to run it via the “Test dependencies” in the Dependency View panel. I also think that any print() statements in there should log to the Monitor’s Console panel.
FYI. After internal discussion, it looks like we will be fixing this in 8.0 shortly. Please keep an eye on the release notes as they come through.