Can't a block error terminate a job?

General discussions and questions.
Post Reply
4drawing95
Posts: 7
Joined: Fri Feb 02, 2024 9:20 am

Can't a block error terminate a job?

Post by 4drawing95 »

I'm using multiple commands in a job, chaining them into separate blocks. I already know this is possible with tasks. But the weird thing is that if there are 5 blocks and any of them get an error, my personal opinion is that the job should error out after a few attempts.
But it doesn't work that way: if the block that should precede it gets an error, the subsequent blocks still try to run.

And one more question, how the hell is this forum supposed to be searched? I've tried searching for the word block in combination with error and so on to find someone with the same question as me, but it doesn't work because it's a generic word. But isn't searching supposed to be done with generic words? Is the search function working correctly right now?
4drawing95
Posts: 7
Joined: Fri Feb 02, 2024 9:20 am

Re: Can't a block error terminate a job?

Post by 4drawing95 »

I have one more question. I'm trying to eventually submit a job and use afcmd to retrieve the block of the submitted job and pause it if I get an error. One more question I have here: I saw in the documentation that af_job_Id is set as an environment variable when sending the job, but when I actually print the environment variable, I see that af_job_Id is not registered as an environment variable.
User avatar
timurhai
Site Admin
Posts: 919
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Can't a block error terminate a job?

Post by timurhai »

Hello!
Sorry for a delay! I missed notifications.

Block should have a depend mask (regex) that should match blocks names to wait to complete.

Search? I am not so familiar with this forum engine. May if somebody could help.
But for now new forums are loosing popularity, people prefer messengers & messages in social networks and emails.

AF_JOB_ID, AF_BLOCK_ID, AF_TASK_ID are work fine.
Letters are capital. Or may be you are using old version?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply