Greetings all.
Hope this is the correct place to post this, but I'm having an issue which I cannot see to find a good way to do.
I have the following scenario:
Job 1 -> Scheduled to run daily
Job 2 -> Scheduled to run last day of month
Job 3 -> Scheduled to run daily
Job 2 is dependant on Job 1
Job 3 is dependant on Job 1 and Job 2 if Job 2 needs to run.
I'm unable to find a good way to do this, since Job 2 only can get success when it's last day of month, which then means Job 3 will only run if it is last day of month.
I've had 1 idea on how to do this, but it seems overkill to me, the following structure is what I'm thinking:
Job 1 -> Scheduled to run daily
Job 3 -> Scheduled to run daily
Box 1 contains: (Box 1 will success if following condintion (s(Job3) or s(Job2)) and dependant on Job 1)
Job 2 -> Scheduled to run last day of month
Job 3 -> Scheduled to run when it's not last day of month -> Always sets itself to success (can't fail)
Job 3 is dependant on Box1 and Job1
So is there any better way to solve this? Hopefully without jil commands.