rich-notebook-7932408/05/2020, 6:55 PM
adorable-cat-794808/06/2020, 12:05 AM
If the job has to take decision based on complex logic then it can he handled in the job itself instead of doing it before enqueuing the job. But for simple conditionals, we can check them beforehand to avoid enqueuing of the job and immediately discarding.I personally think having extra jobs doesn’t cost if all it do is simply return. But having simple conditions inside job too, saves refactor and make code consistent. Plus, lower chances that someone will end up converting simple logic -> hard logic outside job in future.
victorious-energy-5676408/06/2020, 7:12 AM
rich-notebook-7932408/06/2020, 9:21 AM
adorable-cat-794808/06/2020, 10:15 AM
rich-notebook-7932408/06/2020, 12:18 PM