(workflow_id: int, project_id: int)
| 5 | |
| 6 | |
| 7 | def remove_job_scheduling(workflow_id: int, project_id: int): |
| 8 | msg_data = { |
| 9 | 'workflow_id': workflow_id, |
| 10 | 'project_id': project_id, |
| 11 | 'action': 'remove', |
| 12 | 'cron_expression': '', |
| 13 | } |
| 14 | logger.info(f'Removing Task Schedule {msg_data}') |
| 15 | # Send message for batch processing on Rabbit |
| 16 | queueclient = QueueClient() |
| 17 | queueclient.send_message(message = msg_data, |
| 18 | routing_key = RoutingKeys.scheduler.value, |
| 19 | exchange = Exchanges.scheduler.value) |
| 20 | |
| 21 | |
| 22 | def add_job_scheduling(workflow_id: int, project_id: int, cron_expression: str): |
no test coverage detected