Hello,
I tried to use event handle lately and it works like a charm, but I would like to know if it's possible to code new event types, like JOB_CREATED, or JOB_STARTED for example. In what part of cgru should I check that if I want to add these event types?
Regards,
How to add new event types
How to add new event types
Last edited by mcvertex on Tue Nov 03, 2020 9:10 am, edited 1 time in total.
Re: How to add new event types
Hi!
Events are build in Afanasy server code.
To add a new event, you should add it in the code and recompile the project.
But such events as JOB_CREATED and JOB_STARTED can be handled not by the server.
When artist submits a job it is JOB_CREATED - submission script perform event.
When the first job task starts it is JOB_STARTED - job first extra block can do it.
But it is not a big deal to teach (develop) server to emit new events.
For what you need such events?
Events are build in Afanasy server code.
To add a new event, you should add it in the code and recompile the project.
But such events as JOB_CREATED and JOB_STARTED can be handled not by the server.
When artist submits a job it is JOB_CREATED - submission script perform event.
When the first job task starts it is JOB_STARTED - job first extra block can do it.
But it is not a big deal to teach (develop) server to emit new events.
For what you need such events?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Re: How to add new event types
In fact the event I need is RENDER_DISCONNECT, but we run the version 2.3.1. We have planned to upgrade to the last version but because we have made a lot of customisations, the upgrade is planned in a few months (too much work right now). I just wanted to know if there was a simple way to just add this specific event now without upgrade to last version. If not it's not a big deal, we will wait
Re: How to add new event types
https://cgru.readthedocs.io/en/latest/a ... tml#events
May be RENDER_ZOMBIE?
https://github.com/CGRU/cgru/blob/maste ... .json#L129
It is already exists since the 3.x version.
May be RENDER_ZOMBIE?
https://github.com/CGRU/cgru/blob/maste ... .json#L129
It is already exists since the 3.x version.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Re: How to add new event types
RENDER_ZOMBIE will work I think, we will use this after the update so. thanks for your quick answers