rich-notebook-79324
08/05/2020, 6:55 PMadorable-cat-7948
08/06/2020, 12:05 AMIf 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-56764
08/06/2020, 7:12 AMrich-notebook-79324
08/06/2020, 9:21 AMadorable-cat-7948
08/06/2020, 10:15 AMrich-notebook-79324
08/06/2020, 12:18 PM