isJobCancelled method
Checks if a job has been cancelled in Firestore.
Implementation
Future<bool> isJobCancelled(String buildJobId) async {
final response = await _apiService.getBuildJob(buildJobId);
if (response.isSuccessful) {
final job = response.body;
if (job == null) return false;
return job['status'] == 'CANCELLED';
}
throw HttpException(
'Failed to check job cancellation on server: ${response.statusCode} ${response.error}',
);
}